rsimonsen Posted July 6, 2011 Share Posted July 6, 2011 Is it possible to hide 'add-to-cart'-button for a group of customers, and show it for other groups?This is because i wish to use the webshop as POS in my store as well. Link to comment Share on other sites More sharing options...
shokinro Posted July 6, 2011 Share Posted July 6, 2011 for customer that has not registration, we have no idea the customer belongs which group.for registered customer, you can do that. you can registered customer in different customer groups.You can manage customer groups at back officecustomers tabgroups tabafter that, you check if the customer (logged in) belongs to group A, then show cart,otherwise, then hide the cart button.You also need to hide "add to cart" button too. Link to comment Share on other sites More sharing options...
rsimonsen Posted July 6, 2011 Author Share Posted July 6, 2011 I cant seem to find where to go to check "if the customer (logged in) belongs to group A, then show cart,otherwise, then hide the cart button."Some of my products are not for sale on website, but only in store. I wish to disable add-to-cart button for these products for all customers, exept my own, which I will use as buyer for customers in my store. Link to comment Share on other sites More sharing options...
keweli Posted August 16, 2011 Share Posted August 16, 2011 I'm also wondering what condition to put inside if statements for example to check what group. Any smarty variable that is already assigned? Link to comment Share on other sites More sharing options...
cybert11 Posted February 20, 2013 Share Posted February 20, 2013 has anyone figured this out yet? Link to comment Share on other sites More sharing options...
TJMare Posted November 8, 2013 Share Posted November 8, 2013 This question hasn't been answered. I saw another post ( http://www.prestashop.com/forums/topic/85872-solved-hide-add-to-cart-button-until-logged-in/ ) but this doesn't work for 1.5 - Unless I'm missing something - For B2B shops that only want to display retail prices with no add-to-cart ability unless they are wholesale customers. Can anyone help with this? Link to comment Share on other sites More sharing options...
vekia Posted November 8, 2013 Share Posted November 8, 2013 you can attach customer to new group, then for this group turn off option: Link to comment Share on other sites More sharing options...
TJMare Posted November 8, 2013 Share Posted November 8, 2013 (edited) you can attach customer to new group, then for this group turn off option: Thanks but I want to show the retail prices, but not allow them to add to cart - just want them to find their "nearest" retailer to purchase from them directly. I am playing with this: (in Presta 1.5xx) product.tpl I hope it works: {if $logged}<p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block"> <span></span> <input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /> </p{/if} So far so good for testing. Edited November 8, 2013 by TJMare (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts