News:

Support the VirtueMart project and become a member

Main Menu

Empty cart

Started by bkruiger, January 05, 2016, 12:02:05 PM

Previous topic - Next topic

bkruiger

I am running VM 3.0.12 on Joomla 3.4.8 and i can not add any products to my cart.
After "add to cart" the cart opens but the products are not added.

jenkinhill

Is usually a JavaScript problem related to a Joomla template issue. URL?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

bkruiger

#2
http://www.marnes.nl

Beez3 and my custom template have the issue. The protostar template does not have the issue.
After adding an item in protostar there is no working template in which I can update/delete items from the cart.

GJC Web Design

QuoteBeez3 and my custom template have the issue

so you should see JS errors in your console .. these need to be fixed
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bkruiger

I don't see any JS errors, or I am not looking in the right place...

error.php only shows a few login errors and com_virtuemart.log.php only shows some missing product images.
I can not find any other errors in the console/log files. The console it self is nog showing any errors.

jenkinhill

You have multiple JavaScript errors as shown using Firebug Console.

On the home page:

TypeError: $.mobile._registerInternalEvents is not a function
$.mobile._registerInternalEvents();

TypeError: jQuery(...).chosen is not a function
jQuery(this).chosen({enable_select_all: true,select_all_text : vm2string.select_...

TypeError: jQuery(...).off is not a function
jQuery(document).off("updateVirtueMartCartModule","body",Virtuemart.customUpdate...

TypeError: plus.off is not a function
plus

And on the cart page:

TypeError: $.mobile._registerInternalEvents is not a function
$.mobile._registerInternalEvents();

TypeError: jQuery(...).off is not a function
jQuery(document).off("updateVirtueMartCartModule","body",Virtuemart.customUpdate...

TypeError: el.off is not a function
el.off('click',Virtuemart.updFormS);

I suspect part of the problem is your Crapisteer template loading its own jQuery in addition to the VM version. It is an older version and probably screws VM:
<script src="/templates/marnes/jquery.js"></script>  - I would stop that one loading.

Make sure that in VM Config/Templates/Activate Css Styles & Javascripts that all boxes are selected except the last (Use external google jQuery library) and that "Display modal popup upon 'Add to cart'" is selected in Config/Checkout.

You would be better off using a proper Joomla/VM template such as from www.virtuemarttemplates.eu rather that Artisteer, which uses non-standard Joomla coding.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

bkruiger

Thank you for your quick responces :)

Not really the awnser i hoped for, but still thank you.
I will try to kill the artisteer jquery to, hopefully, get it to work. I am using Arstisteer for years and had no issues until now.

welrachid

just tested it now.
works fine when i press "bestellen" - adds to my cart and directs me to checkout
Best regards,
Wel

bkruiger

After taling to the owner of the shop we desided to use a template from the suggested website.
Adding items works again. Deleting items still does not work. You need to change the amount to zero and update the cart to delete an item. Still not the way it should be, but the issue this the thread is for is resolved.

GJC Web Design

Did you contact Spyros at http://www.virtuemarttemplates.eu/ about the delete problem?  He is very proactive..
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation