44 */
55
66declare (strict_types=1 );
7+
78namespace Aligent \PrerenderIo \Helper ;
89
910use Magento \Framework \App \Config \ScopeConfigInterface ;
@@ -13,6 +14,7 @@ class Config
1314{
1415 private const XML_PATH_RECACHE_ENABLED = 'system/prerender_io/enabled ' ;
1516 private const XML_PATH_PRERENDER_TOKEN = 'system/prerender_io/token ' ;
17+ private const XML_PATH_PRERENDER_USE_PRODUCT_CANONICAL_URL = 'system/prerender_io/use_product_canonical_url ' ;
1618
1719 /** @var ScopeConfigInterface */
1820 private ScopeConfigInterface $ scopeConfig ;
@@ -36,7 +38,7 @@ public function isRecacheEnabled(?int $storeId = null): bool
3638 {
3739 return $ this ->scopeConfig ->isSetFlag (
3840 self ::XML_PATH_RECACHE_ENABLED ,
39- ScopeInterface::SCOPE_STORE ,
41+ ScopeInterface::SCOPE_STORES ,
4042 $ storeId
4143 );
4244 }
@@ -51,7 +53,7 @@ public function getToken(?int $storeId = null): ?string
5153 {
5254 return $ this ->scopeConfig ->getValue (
5355 self ::XML_PATH_PRERENDER_TOKEN ,
54- ScopeInterface::SCOPE_STORE ,
56+ ScopeInterface::SCOPE_STORES ,
5557 $ storeId
5658 );
5759 }
@@ -66,7 +68,7 @@ public function isUseProductCanonicalUrlEnabled(?int $storeId = null): bool
6668 {
6769 return $ this ->scopeConfig ->isSetFlag (
6870 self ::XML_PATH_PRERENDER_USE_PRODUCT_CANONICAL_URL ,
69- ScopeInterface::SCOPE_STORE ,
71+ ScopeInterface::SCOPE_STORES ,
7072 $ storeId
7173 );
7274 }
0 commit comments