@@ -81,6 +81,7 @@ class ConfigHelper
81
81
public const CC_ANALYTICS_IS_SELECTOR = 'algoliasearch_cc_analytics/cc_analytics_group/is_selector ' ;
82
82
public const CC_CONVERSION_ANALYTICS_MODE = 'algoliasearch_cc_analytics/cc_analytics_group/conversion_analytics_mode ' ;
83
83
public const CC_ADD_TO_CART_SELECTOR = 'algoliasearch_cc_analytics/cc_analytics_group/add_to_cart_selector ' ;
84
+ public const COOKIE_LIFETIME = 'web/cookie/cookie_lifetime ' ;
84
85
85
86
public const GA_ENABLE = 'algoliasearch_analytics/analytics_group/enable ' ;
86
87
public const GA_DELAY = 'algoliasearch_analytics/analytics_group/delay ' ;
@@ -141,7 +142,7 @@ class ConfigHelper
141
142
protected const IS_LOOKING_SIMILAR_ENABLED_IN_PDP = 'algoliasearch_recommend/recommend/looking_similar/is_looking_similar_enabled_on_pdp ' ;
142
143
protected const IS_LOOKING_SIMILAR_ENABLED_IN_SHOPPING_CART = 'algoliasearch_recommend/recommend/looking_similar/is_looking_similar_enabled_on_cart_page ' ;
143
144
protected const LOOKING_SIMILAR_TITLE = 'algoliasearch_recommend/recommend/looking_similar/title ' ;
144
- public const LEGACY_USE_VIRTUAL_REPLICA_ENABLED = 'algoliasearch_instant/instant/use_virtual_replica ' ;
145
+ public const LEGACY_USE_VIRTUAL_REPLICA_ENABLED = 'algoliasearch_instant/instant/use_virtual_replica ' ;
145
146
protected const AUTOCOMPLETE_KEYBORAD_NAVIAGATION = 'algoliasearch_autocomplete/autocomplete/navigator ' ;
146
147
protected const FREQUENTLY_BOUGHT_TOGETHER_TITLE = 'algoliasearch_recommend/recommend/frequently_bought_together/title ' ;
147
148
protected const RELATED_PRODUCTS_TITLE = 'algoliasearch_recommend/recommend/related_product/title ' ;
@@ -1856,4 +1857,13 @@ public function isCookieRestrictionModeEnabled()
1856
1857
{
1857
1858
return (bool )$ this ->cookieHelper ->isCookieRestrictionModeEnabled ();
1858
1859
}
1860
+
1861
+ /**
1862
+ * @param $storeId
1863
+ * @return mixed
1864
+ */
1865
+ public function getCookieLifetime ($ storeId = null )
1866
+ {
1867
+ return $ this ->configInterface ->getValue (self ::COOKIE_LIFETIME , ScopeInterface::SCOPE_STORE , $ storeId );
1868
+ }
1859
1869
}
0 commit comments