File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030use Ps_Googleanalytics ;
3131use RecursiveArrayIterator ;
3232use RecursiveIteratorIterator ;
33+ use Shop ;
3334use Tools ;
3435
3536class HookDisplayFooter implements HookInterface
@@ -77,7 +78,7 @@ public function run()
7778 {
7879 item_id: " ' . $ gacart ['id ' ] . '",
7980 item_name: " ' . $ gacart ['name ' ] . '",
80- affiliation: "Google Merchandise Store ",
81+ affiliation: " ' . (Shop:: isFeatureActive () ? $ this -> context -> shop -> name : Configuration:: get ( ' PS_SHOP_NAME ' )) . ' ",
8182 currency: " ' . $ this ->context ->currency ->iso_code . '",
8283 index: ' . $ key . ',
8384 item_brand: " ' . $ gacart ['brand ' ] . '",
@@ -101,7 +102,7 @@ public function run()
101102 {
102103 item_id: " ' . $ gacart ['id ' ] . '",
103104 item_name: " ' . $ gacart ['name ' ] . '",
104- affiliation: "Google Merchandise Store ",
105+ affiliation: " ' . (Shop:: isFeatureActive () ? $ this -> context -> shop -> name : Configuration:: get ( ' PS_SHOP_NAME ' )) . ' ",
105106 currency: " ' . $ this ->context ->currency ->iso_code . '",
106107 index: ' . $ key . ',
107108 item_brand: " ' . $ gacart ['brand ' ] . '",
You can’t perform that action at this time.
0 commit comments