News:

Looking for documentation? Take a look on our wiki

Main Menu

how to disable "add to cart" for no registered users?

Started by owegen, September 14, 2016, 23:11:49 PM

Previous topic - Next topic

owegen

hi everyone,

how is it possible to disable the "add to cart" for no registered users?

I have Virtuemart 3.0.16 and Joomla 3.6.2

Many thanks for you help

Raphael

anant_maks

One thing I am doing right now is removing 'Add to cart' using javascript via any check in a new system plugin. Though I want it to be handled via some php function like - plgVmOnDisplayProductFEVM3. Please suggest if someone has any better solution
Anant Garg

GJC Web Design

just detect if there is a userid .. if so display the add to cart

the code is on the forum here somewhere
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

anant_maks

Anant Garg