VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: spattergull on November 25, 2015, 08:23:11 AM

Title: Out of stock options
Post by: spattergull on November 25, 2015, 08:23:11 AM
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.



Title: Re: Out of stock options
Post by: jenkinhill on November 25, 2015, 10:37:16 AM
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.
Title: Re: Out of stock options
Post by: spattergull on November 25, 2015, 21:33:08 PM
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.
Title: Re: Out of stock options
Post by: jenkinhill on November 25, 2015, 23:33:47 PM
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