Jump to content

disable add-to-cart button for specific customers


Recommended Posts

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 office
customers tab
groups tab

after 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

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

  • 1 month later...
  • 1 year later...
  • 8 months later...

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

you can attach customer to new group, then for this group turn off option:

Q3Qoh44.png

 

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 by TJMare (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...