damian5000 Posted September 8, 2013 Share Posted September 8, 2013 (edited) I understand I can manually remove it. But why would it even display in catalog mode? Why not have 'if catalog mode then don't show the button'? The software is amazing, but this seems a no-brainer. Edited September 8, 2013 by damian5000 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 8, 2013 Share Posted September 8, 2013 by default this button should disappear. It works like you said. so here are several possibilities: you use non default theme which isn't supporting this feature this may be also related to shop "cache" issue, in this case you will have to recompile the theme / clear shop cache 1 Link to comment Share on other sites More sharing options...
damian5000 Posted September 8, 2013 Author Share Posted September 8, 2013 Using vanilla 1.5.5.0 . I cleared smarty cache and set it to force recompile, but the button still shows. Any other ideas? Link to comment Share on other sites More sharing options...
vekia Posted September 8, 2013 Share Posted September 8, 2013 well i don't know any vanilla theme so i suppose that problem is related to template. you should check code of this button, i think that problem is there 1 Link to comment Share on other sites More sharing options...
damian5000 Posted September 8, 2013 Author Share Posted September 8, 2013 (edited) well i don't know any vanilla theme so i suppose that problem is related to template. you should check code of this button, i think that problem is there Sorry... Vanilla = 'unchanged' . I mean default, unchanged 1.5.5.0 . I'm using the default theme / templates..... Edited September 8, 2013 by damian5000 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 8, 2013 Share Posted September 8, 2013 it is odd...our private shop modules manipulate catalog mode by session, so I've certainly seen this before. Most custom themes do not display the button, the default does. themes/yourtheme/product.tpl find this {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} <span class="exclusive"> <span></span> {l s='Add to cart'} </span> {else} <p id="add_to_cart" class="buttons_bottom_block"> <span></span> <input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /> </p> {/if} and change it to {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} {else} <p id="add_to_cart" class="buttons_bottom_block"> <span></span> <input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /> </p> {/if} 1 Link to comment Share on other sites More sharing options...
damian5000 Posted September 8, 2013 Author Share Posted September 8, 2013 (edited) Okay, thanks. This fixed it. Looks dynamic as well because when switching off catalog mode, an add to cart button shows. Excellent. Still not sure why default theme without modifying shows add to cart in catalog mode, but functionally it's good now, so I won't worry about why. Thanks again. Edited September 8, 2013 by damian5000 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 8, 2013 Share Posted September 8, 2013 Okay, thanks. This fixed it. Looks dynamic as well because when switching off catalog mode, an add to cart button shows. Excellent. Still not sure why default theme without modifying shows add to cart in catalog mode, but functionally it's good now, so I won't worry about why. Thanks again. you are welcome...and if you ever need a catalog mode switch by session, check out my private shop modules. Link to comment Share on other sites More sharing options...
Neekko Posted January 16, 2014 Share Posted January 16, 2014 Thank you very much : so you're a real Patron ! I was looking for a solution since a long time. It works with default theme switching on catalog mode. Link to comment Share on other sites More sharing options...
Recommended Posts