@@ -47,6 +47,7 @@ class Algolia_Algoliasearch_Helper_Config extends Mage_Core_Helper_Abstract
4747 const INDEX_PRODUCT_COUNT = 'algoliasearch/categories/index_product_count ' ;
4848 const CATEGORY_CUSTOM_RANKING = 'algoliasearch/categories/custom_ranking_category_attributes ' ;
4949 const SHOW_CATS_NOT_INCLUDED_IN_NAVIGATION = 'algoliasearch/categories/show_cats_not_included_in_navigation ' ;
50+ const INDEX_EMPTY_CATEGORIES = 'algoliasearch/categories/index_empty_categories ' ;
5051
5152 const IS_ACTIVE = 'algoliasearch/queue/active ' ;
5253 const NUMBER_OF_ELEMENT_BY_PAGE = 'algoliasearch/queue/number_of_element_by_page ' ;
@@ -59,10 +60,15 @@ class Algolia_Algoliasearch_Helper_Config extends Mage_Core_Helper_Abstract
5960 const XML_PATH_IMAGE_HEIGHT = 'algoliasearch/image/height ' ;
6061 const XML_PATH_IMAGE_TYPE = 'algoliasearch/image/type ' ;
6162
62- const ENABLE_ANALYTICS = 'algoliasearch/analytics/enable_analytics ' ;
63- const ANALYTICS_DELAY = 'algoliasearch/analytics/delay ' ;
64- const ANALYTICS_TRIGGER_ON_UI_INTERACTION = 'algoliasearch/analytics/trigger_on_ui_interaction ' ;
65- const ANALYTICS_PUSH_INITIAL_SEARCH = 'algoliasearch/analytics/push_initial_search ' ;
63+ const GA_ENABLE = 'algoliasearch/analytics/enable ' ;
64+ const GA_DELAY = 'algoliasearch/analytics/delay ' ;
65+ const GA_TRIGGER_ON_UI_INTERACTION = 'algoliasearch/analytics/trigger_on_ui_interaction ' ;
66+ const GA_PUSH_INITIAL_SEARCH = 'algoliasearch/analytics/push_initial_search ' ;
67+
68+ const CC_ANALYTICS_ENABLE = 'algoliasearch/cc_analytics/enable ' ;
69+ const CC_ANALYTICS_IS_SELECTOR = 'algoliasearch/cc_analytics/is_selector ' ;
70+ const CC_CONVERSION_ANALYTICS_MODE = 'algoliasearch/cc_analytics/conversion_analytics_mode ' ;
71+ const CC_ADD_TO_CART_SELECTOR = 'algoliasearch/cc_analytics/add_to_cart_selector ' ;
6672
6773 const ENABLE_SYNONYMS = 'algoliasearch/synonyms/enable_synonyms ' ;
6874 const SYNONYMS = 'algoliasearch/synonyms/synonyms ' ;
@@ -113,6 +119,11 @@ public function showCatsNotIncludedInNavigation($storeId = null)
113119 return Mage::getStoreConfigFlag (self ::SHOW_CATS_NOT_INCLUDED_IN_NAVIGATION , $ storeId );
114120 }
115121
122+ public function shouldIndexEmptyCategories ($ storeId = null )
123+ {
124+ return Mage::getStoreConfigFlag (self ::INDEX_EMPTY_CATEGORIES , $ storeId );
125+ }
126+
116127 public function isDefaultSelector ($ storeId = null )
117128 {
118129 return '.algolia-search-input ' === $ this ->getAutocompleteSelector ($ storeId );
@@ -465,6 +476,7 @@ public function getAttributesToRetrieve($group_id)
465476 $ attributes [] = 'price. ' .$ currency .'.default_formated ' ;
466477 $ attributes [] = 'price. ' .$ currency .'.group_ ' .$ group_id ;
467478 $ attributes [] = 'price. ' .$ currency .'.group_ ' .$ group_id .'_formated ' ;
479+ $ attributes [] = 'price. ' .$ currency .'.group_ ' .$ group_id .'_original_formated ' ;
468480 $ attributes [] = 'price. ' .$ currency .'.special_from_date ' ;
469481 $ attributes [] = 'price. ' .$ currency .'.special_to_date ' ;
470482 }
@@ -588,22 +600,42 @@ public function getExtensionVersion()
588600
589601 public function isEnabledAnalytics ($ storeId = null )
590602 {
591- return Mage::getStoreConfigFlag (self ::ENABLE_ANALYTICS , $ storeId );
603+ return Mage::getStoreConfigFlag (self ::GA_ENABLE , $ storeId );
592604 }
593605
594606 public function getAnalyticsDelay ($ storeId = null )
595607 {
596- return (int ) Mage::getStoreConfig (self ::ANALYTICS_DELAY , $ storeId );
608+ return (int ) Mage::getStoreConfig (self ::GA_DELAY , $ storeId );
597609 }
598610
599611 public function getTriggerOnUIInteraction ($ storeId = null )
600612 {
601- return Mage::getStoreConfigFlag (self ::ANALYTICS_TRIGGER_ON_UI_INTERACTION , $ storeId );
613+ return Mage::getStoreConfigFlag (self ::GA_TRIGGER_ON_UI_INTERACTION , $ storeId );
602614 }
603615
604616 public function getPushInitialSearch ($ storeId = null )
605617 {
606- return Mage::getStoreConfigFlag (self ::ANALYTICS_PUSH_INITIAL_SEARCH , $ storeId );
618+ return Mage::getStoreConfigFlag (self ::GA_PUSH_INITIAL_SEARCH , $ storeId );
619+ }
620+
621+ public function isClickConversionAnalyticsEnabled ($ storeId = null )
622+ {
623+ return Mage::getStoreConfigFlag (self ::CC_ANALYTICS_ENABLE , $ storeId );
624+ }
625+
626+ public function getClickConversionAnalyticsISSelector ($ storeId = null )
627+ {
628+ return Mage::getStoreConfig (self ::CC_ANALYTICS_IS_SELECTOR , $ storeId );
629+ }
630+
631+ public function getConversionAnalyticsMode ($ storeId = null )
632+ {
633+ return Mage::getStoreConfig (self ::CC_CONVERSION_ANALYTICS_MODE , $ storeId );
634+ }
635+
636+ public function getConversionAnalyticsAddToCartSelector ($ storeId = null )
637+ {
638+ return Mage::getStoreConfig (self ::CC_ADD_TO_CART_SELECTOR , $ storeId );
607639 }
608640
609641 public function isEnabledSynonyms ($ storeId = null )
0 commit comments