Reputation: 1
I have a multi-store OC3 and I want to do some changes on the product template of a store without changing anything of others. I want to get store_id
in the product
page.
I tried in controller/product/product.php :
$data['store_id'] = $this->config->get('config_store-id');
and in the view /template/product
(just for testing):
<p>{{ store_id }}</p>
But nothing.
Anyone have a clue please!
Upvotes: 0
Views: 618
Reputation: 533
controller/product/product.php :
$data['store_id'] = $this->config->get('config_store_id');
view /template/product
<p>{{ store_id }}</p>
Upvotes: 1