richta2 Posted August 12, 2016 Share Posted August 12, 2016 I have two stores and I want do link on product (same) from first to second shop in theme template.Is there any solution?Anything like <a href="{$link->getProductLink($shop_id->2)}>Why? First web is catalog and second is e-shop. Link to comment Share on other sites More sharing options...
vekia Posted August 12, 2016 Share Posted August 12, 2016 list of available params: public function getProductLink($product, $alias = null, $category = null, $ean13 = null, $id_lang = null, $id_shop = null, $ipa = 0, $force_routes = false, $relative_protocol = false, $add_anchor = false) as you can see, there is id_shop param :-) so you can define the id of the shop. Link to comment Share on other sites More sharing options...
richta2 Posted August 12, 2016 Author Share Posted August 12, 2016 I am not programator, this solution doesn't work, can you help me please? {$link->getProductLink($product,$id_shop='1')|escape:'html':'UTF-8'} Link to comment Share on other sites More sharing options...
vekia Posted August 12, 2016 Share Posted August 12, 2016 id_shop is sixth param in the getProductLink function, so the code should be: {$link->getProductLink($product,null,null,null,null,1)|escape:'html':'UTF-8'} where 1 is an ID of the shop Link to comment Share on other sites More sharing options...
richta2 Posted August 12, 2016 Author Share Posted August 12, 2016 IT works! Thank you 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now