News:

Support the VirtueMart project and become a member

Main Menu

Hiding Add to Cart Button for certain Shopper Groups

Started by tezza81, April 17, 2015, 02:36:20 AM

Previous topic - Next topic

tezza81

Hi,

I am using the VM 3.0.6.2 and would like to know how to remove the add to cart button for my shopper groups that do not show prices.  I have removed the button and prices for unregistered users but if someone registers and is therefore logged in in the Default Shopper Group they can still see the Add to Cart button even though I have set this group to display no prices..  I also have another Shopper Group that can see prices and therefore want the Add to Cart button to remain for this shopper group.  Can I do this in the Virtuemart backend at all?  Or do I need something more?  I am very new to this and php so could in no way write my own code..  Many thanks in advance  :)

tezza81

Quote from: tezza81 on April 17, 2015, 02:36:20 AM
Hi,

I am using the VM 3.0.6.2 and would like to know how to remove the add to cart button for my shopper groups that do not show prices.  I have removed the button and prices for unregistered users but if someone registers and is therefore logged in in the Default Shopper Group they can still see the Add to Cart button even though I have set this group to display no prices..  I also have another Shopper Group that can see prices and therefore want the Add to Cart button to remain for this shopper group.  Can I do this in the Virtuemart backend at all?  Or do I need something more?  I am very new to this and php so could in no way write my own code..  Many thanks in advance  :)
Can anybody help? Please  :)

GJC Web Design

IMHO you need a template over ride that will detect the shopper group and show/not show the add to cart
not possible with just config
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

tezza81

Thank you for your reply :)  I have been searching and trying all the overrides that people have been suggesting but none of them are working for me..  I have been adding to the addtocart.php file.. Not sure if this is correct?  Are you able to help at all with an override code? Or do you know where I could go to get someone to write that kind of override for me?  Many thanks! :)

GJC Web Design

You can email or PM me if this is a commercial proposition...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

Hi,
A think this have to be integrated in virtuemart, i ran in the same type of problem for the add to cart button or price display for Pro/Standard users or anonymous and registred users.