diff --git a/Model/Config/Source/ListOptions.php b/Model/Config/Source/ListOptions.php index 6d57ae63..248ad3c2 100644 --- a/Model/Config/Source/ListOptions.php +++ b/Model/Config/Source/ListOptions.php @@ -53,7 +53,7 @@ public function toOptionArray() }, $result['lists']); $default_value = [ - self::LABEL => 'Select a list...', + self::LABEL => __('Select a list...'), self::VALUE => 0 ]; array_unshift($options, $default_value); diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 1f1a02b9..aae34791 100755 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -26,7 +26,7 @@ validate-url - + Magento\Config\Model\Config\Source\Yesno Log file is located under the standard log directory for your Magento app install. By default this will be {magento-root-directory}/var/log/klaviyo.log @@ -46,7 +46,7 @@ Klaviyo\Reclaim\Model\Config\Source\ListOptions Klaviyo\Reclaim\Block\System\Config\Form\Field\Newsletter - + Klaviyo\Reclaim\Model\Config\Source\Radiobtn NOTE: There is a separate Magento opt-in setting for this list that can also send opt-in emails @@ -60,7 +60,7 @@ Klaviyo_Reclaim::klaviyo_reclaim - + Magento\Config\Model\Config\Source\Yesno Adds a checkbox to the checkout page for email opt in @@ -91,7 +91,7 @@ - + Magento\Config\Model\Config\Source\Yesno Set up SMS in Klaviyo]]> @@ -153,7 +153,7 @@ Magento\Config\Model\Config\Backend\Encrypted - + Magento\Config\Model\Config\Source\Yesno This will remove deleted products from the Klaviyo catalog. diff --git a/view/frontend/layout/catalog_product_view.xml b/view/frontend/layout/catalog_product_view.xml index 52ba5b05..cba079a3 100644 --- a/view/frontend/layout/catalog_product_view.xml +++ b/view/frontend/layout/catalog_product_view.xml @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/view/frontend/layout/default.xml b/view/frontend/layout/default.xml index 3a24151e..1417e870 100644 --- a/view/frontend/layout/default.xml +++ b/view/frontend/layout/default.xml @@ -1,7 +1,7 @@ - + diff --git a/view/frontend/templates/analytics/initialize.phtml b/view/frontend/templates/analytics/initialize.phtml index df842dba..90877186 100644 --- a/view/frontend/templates/analytics/initialize.phtml +++ b/view/frontend/templates/analytics/initialize.phtml @@ -1,5 +1,5 @@ -getPublicApiKey(); ?> -isKlaviyoEnabled() && $klaviyoKey ): ?> +getPublicApiKey(); ?> +isKlaviyoEnabled() && $klaviyoKey ): ?> diff --git a/view/frontend/templates/checkout/cart.phtml b/view/frontend/templates/checkout/cart.phtml index b3373396..8af7e623 100644 --- a/view/frontend/templates/checkout/cart.phtml +++ b/view/frontend/templates/checkout/cart.phtml @@ -1,4 +1,4 @@ -isKlaviyoEnabled() && $this->getPublicApiKey() ): ?> +isKlaviyoEnabled() && $block->getPublicApiKey() ): ?>