News:

Looking for documentation? Take a look on our wiki

Main Menu

Out of stock options

Started by spattergull, November 25, 2015, 08:23:11 AM

Previous topic - Next topic

spattergull

Joomla 2.5.24;  VM 3.0.12

I want the customer to see all products but only be able to order certain ones online.  It looks as if the is controllable via inventory (or is there another way?)

If I do it through inventory, how do I change the "Notify me" button to a message telling them to call for more information?

Thanks in advance for your help.




jenkinhill

Use stock control,  Action when a Product is Out of Stock = Displays 'Notify Me' instead of 'Add To Cart' button

Use template overrides to change the button function.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

spattergull

What do I change and where do I find it?  I figured out overnight that I just need to change the "notify me" button to a message, but I don't know where to find the code.

jenkinhill

If you are not already using overrides, the file which displays the notify is components/com_virtuemart/sublayouts/addtocartbar.php  around line number 80

Use the edited file as an override.  http://docs.virtuemart.net/tutorials/templating-layouts/199-sublayouts.html
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum