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

TOPIC: Shopping cart empty after pressing 'add to cart'

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3489

Hi,

Suddenly (it worked before) I have the problem that, when I select a (child) product and press ' add to cart', nothing happens. The shopping cart remains empty and I'm rederected to an emtpy shopping cart.
I did not install anything new which can cause a conflict.

With firebug I see the following error:

TypeError: selectBox is null
[Afbreken op deze fout]

selectBox.removeAttribute('onchange');

As far as I an see it only happens with child products. I get the same error ordering a normal product but that product gets in the basket.

I installed jquery easy, disabled Joomla SEF and disabled Virtuemart SEO, just to be sure. What is wrong?

thanks!

I will send the url by email
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3490

Hi,

I just tested my problem by removing the puremart template and then the problem is over. So the default virtuemart template works fine, as soon as I put back the puremart template the problem starts again.

Hoping to hear from you soon.
thanks!
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3500

First - to help you we need urls..
2nd - if it was working and then stopped - that means something you did- code change, installed a module etc etc stopped it
code can't rewrite itself.....

What changes did u make before it stopped?

Cheers
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3506

Hi John,

I allready mailed you the urls yesterday (see This email address is being protected from spambots. You need JavaScript enabled to view it. or This email address is being protected from spambots. You need JavaScript enabled to view it.)

I had to think for a moment for the things that could have changed and ofcourse... I installled the new version of puremart, thats it!
Otherwise I did not change a thing (exept for adding articles ofcourse)

hope to hear from you soon.
Thanks!
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3515

Hmmm -- odd..

I don't see any errors - JS or otherwise - can you try disabling Puremart to test if still broken?

You can temporarily disable PureMart by changing the name of this folder from:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart
to
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart2

and set any over-rides back to default

does seem to be only child products..
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3525

Hi,

I disabled the template and then it works fine! This started when I upgraded to the latest puremart version. I have 2 other problems, one of the is still an open topic:
'Quantity buttons out of alignment - topic #3246' In that topic you found out it's a javascipt error.

On the same site I also have my social buttons not working, they are just not there.

These 2 problems I also have recently.

Perhaps it has got something to do with each other.
Can I, to try, deinstall the Puremart template and go back to the old one? Do I have to do something specal for that? I have to deinstall it because it is al plugin at the moment.
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3526

Hi Jose,

have sent everything on to the boss - he will take this over - so please wait till he replies - he has your details etc

Thanks for your patience,

Cheers
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3544

Hi,

AJAX update for "Generic Child Product" has recently added to PureMArt. (in the last version).
Normally, Virtuemart handles this changing by refreshing the entire page (instead of using AJAX).

This module (mod_pwebfblikebox) and its JS file (/media/mod_pwebfblikebox/js/mootools.likebox.js) sounds suspicious to me in your website. Can you temporally disable this module and see it solves this issue?

If not; Just for now; You can disable the AJAX update when the attribute is changed. Using AJAX update is nice, but of course it is not a mandatory and since it is a new thing with PureMArt. I will probably improve that function later on though,

To disable the AJAX update for "generic child variant" custom field, open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php

And find this line (in 29th line)
JHTML::script("productUpdater.js", $FlexiblePATH);

and commented out that line, like that:
// JHTML::script("productUpdater.js", $FlexiblePATH);

Then it should start working just fine.
About the quantity misalignment issue, open this CSS file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/assets/css/flexibleVM2Global.css

To the bottom, add this CSS rule:
span.quantity-controls input.quantity-plus {
float:left;
}
span.quantity-controls input.quantity-minus {
float:left;
}

The misalignment problem in the quantity boxes will be fixed.

Regards.
Last Edit: 11 years 1 month ago by Support.
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3555

Hi,

Your solutions work! The mod_pwwebfblikebox did not cause it, I temporarilly disabeled it and the problem was still there.
After I disabled the AJAX update for 'generic child variant' the problem was over ! Very happy :-)

I also had a problem with not showing the soclal icons buttons and they work now too!! So that problem is over too.

The quantity button misalignment issue is solved too after adding the CSS rules as you described.

Topic solved, thank you very much!
The topic has been locked.

Shopping cart empty after pressing 'add to cart' 11 years 1 month ago #3563

Excellent - topic closed
The topic has been locked.
Time to create page: 0.576 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