srkraag Posted December 10, 2014 Share Posted December 10, 2014 Hi, I need to modify my product.tpl on a multistore installation so that it displays a different button based on the shop ID.I want : -ADD TO CART button on shop 1 -ASK FOR A QUOTE on shop 2 I've tried playing around with $(shop_name); global context variable (ID_SHOP) and other. But all my tests failed so far.Any one have an idea on how to fix this please ? Link to comment Share on other sites More sharing options...
FullCircles Posted December 10, 2014 Share Posted December 10, 2014 Hmm, I thought it was more obvious than that, took me a bit of tracking down, but as far as I can see, it should be accessible using $cart->id_shop, if there isn't a cart set up yet, it looks to be getting auto generated anyway, so that should in theory always be accessible So would just need: {if isset($cart->id_shop) && $cart->id_shop == 1} {else} {/if} And so forth 1 Link to comment Share on other sites More sharing options...
srkraag Posted February 20, 2015 Author Share Posted February 20, 2015 TY Did not try until today, it works like a charm! 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