Virtuemart - No 'Quantity' or 'Add To Cart'

GK User
Sat Nov 15, 2014 6:20 pm
Hi, on my Virtuemart product detail page, the 'Quantity' box and 'Add To Cart' button aren't there when I'm using the Storefront template, but are there when I'm using Beez. Any thoughts?

http://www.gardenerspantry.ca/joomla25/ ... &Itemid=54

Thanks,
Phil

P.S. First time using Gavick template and very excited to try it out! (moving away from RocketTheme)
User avatar
Junior Boarder

GK User
Sat Nov 15, 2014 7:52 pm
Okay, I've solved this. I set my products to have a price of 0 and then I use custom fields to allow customers to choose their size and price. But when the default price is 0, your template doesn't show part of the virtuemart code, so I changed templates/gk_storefront/html/com_virtuemart/productdetails/default.php line 362 from this:

Code: Select all
if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices['salesPrice'])) {


...to this:

Code: Select all
if (!VmConfig::get('use_as_catalog', 0) and empty($this->product->prices['salesPrice'])) {


In short, I removed the ! from 'empty'.

Thanks, Phil
User avatar
Junior Boarder

teitbite
Wed Nov 19, 2014 2:43 pm
Hi

Price 0 equals showing "Ask for a price" message by default in VM, so I think what You did was the only good solution here. Thank You for shearing. Thread closed.
User avatar
Moderator


cron