VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: fkeller on October 01, 2022, 09:43:19 AM

Title: remove price on selected products
Post by: fkeller on October 01, 2022, 09:43:19 AM
Hi,

I try to remove the ordering-button on some selected products.
It should list the price, but only for reference.


cheers.
Flex


I have VM 4.0.6 10690
Title: Re: remove price on selected products
Post by: jenkinhill on October 01, 2022, 17:11:50 PM
I have used stock control with a small CSS override for this on a site which did not require stock control.

In Config/Shopfront set Action when a Product is Out of Stock to  "Displays 'Notify Me' instead of 'Add To Cart' button"

Add in the template custom.css file    .notify { display: none !important; }

Then if a product's stock is set to zero the add-to cart will not be displayed.  All other products should have stock, though. ( I set stock for all products to 10000 using phpMyAdmin )

You may need to use a different method if the shop already uses stock numbers.