Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Free product doesn't show 'add to cart'

Free product doesn't show 'add to cart' 11 years 1 month ago #2964

Hi,

I want my customers to be able to 'buy' a free product but when I set the price to 0,00 or 0,001 the 'add to cart' button does not come up so the customer can't order the product. I disabled the 'call for price' option but still no 'add to cart' button.


what's wrong?


thanks
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #2974

I see that there is another topic which has the opposite problem, an unwanted add to card button when the product price is 0,00?
If it is a bug I would like to have it :-)

I hope to here from you.

Thanks!
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #2985

Hmmm - life is a strange thing - as you say it is the VM system that no price means no buy button -
as you see on your install..

Keep checking the other post - Big Admin will be online line later as we also have a 2nd case of button appearing with no price..
so something is up

Cheers,

John Admin
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3029

Hi senero,

I have finally fixed that bug and made it work in all situations, and now you want that bug ;))

I just sent you the new version PureMart v3.5
(you should have received two emails that include the download link, click the download link in the 2. email)

First, download it and apply it to your website.

Then, in order to get the "bug" back, open these 2 php files:

ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php
(default.php, defaultlist.php, flexv2.php, flexv2list.php or what ever you are currently using, there are 6 different category browse page layouts and you are using only one of them depends on what ever you chose from VM Configuration)

and

ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php
(default.php or flexv2.php. There are 2 different product details page layouts and you are using only one of them depends on what ever you chose from VM Configuration)

Where you see this command:
and (!empty($this->product->prices['salesPrice']))

Delete it.

For instance, change this line:
if (!VmConfig::get('use_as_catalog', 0) and (!empty($this->product->prices['salesPrice']))) {

with this:
if (!VmConfig::get('use_as_catalog', 0)) {



So the system won't check if the price is empty or not. In all situations, the "add to cart" button will be visible.

Regards.
Forum Support.
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3055

Oh man, you are so great! I am so happy, not be able to order free products was really a great issue for me.

Two questions. I also bought FashionMart a few months ago, do you have the same 'bug' ;-) for the fashionmart template? Thanks.

I have one problem after installing the new version Puremart v3.5, the Zoom function doesn't work anymore.
The 'click to enlarge' doesn't enlarge the picture and when you 'hover' the picture with your mouse you see the magnifier but the picture remains the same. Nothing happens, no errors.

I looked with firebug to see any errors, but firebug does not give any errors. I did not change the default settings in the plugin for the Zoom function.

What could be the problem?

thanks,
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3127

Hi,

Any update on the zoom function not working after upgrade to Puremartv3.5 and the fix for ordering free products in Fashionmart?


See my last question in this topic #3055

thanks!
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3130

Sorry - missed this one - urls please - crystal ball has flat batteries at the mo... ;P
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3176

Hi,

The Zoom function is working again! I upgraded to the new version of Puremartv3.5 on my local website.
As you asked for the url I upgraded the live website and there the zoom function works fine.

So this problem fixed itself for some reason, Thanks anyway.

There was still one question left from this topic. Can I have the fix for beeing able to sell free products (I want to see the add to cart button) for my recently bought fashionmart template, the same fix I got for the puremart template? (see th other reply below)

thanks!
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3179

It will be (I assume) the same fix as below..

Just search in ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php

for the string
(!empty($this->product->prices))

and remove as above..

Cheers

**************update****************

Just checked my copy of ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php

and there is no check for a price before the buy button - so button should show for no price..

Cheers
Last Edit: 11 years 1 month ago by John.
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3254

Hi John,

Your solution for the fashionmart template was not totally complete. Deleting the string
(!empty($this->product->prices)) was not enough. I had to do this also:

Find this expression:
number_format($this->product->prices, 0, ',', '.');

And change it to;
number_format($this->product->prices, 2, ',', '.');

I found this in antoher topic and it did the trick completely.
Problem solved, thanks!!
The topic has been locked.

Free product doesn't show 'add to cart' 11 years 1 month ago #3263

Excellent - topic marked as solved..
The topic has been locked.
Time to create page: 0.225 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo