News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Add to cart issues - what's the actual solution?

Started by stuclark, January 06, 2012, 18:30:11 PM

Previous topic - Next topic

Denniz0229

so... after reading this whole topic and a lot of other stuff via google I still haven't found a solution.

my website is running VM 2.0.18a and joomla 2.5.8 (website: www.novosmoke.nl)

everything worked perfect, until i made some adjustments to some products, by simply adding child products and making card variants for them.
after that i can't add anything to the cart, and also i am getting this error.
QuoteWarning: Invalid argument supplied for foreach() in /public/sites/www.novosmoke.nl/plugins/vmcustom/stockable/stockable.php on line 229

pretty weird that it happened after adding some products. also, the problem only appears in firefox.
and since alot of my customers do use firefox its a pretty nasty problem.

any help would be greatly appreciated.

jjk

Do you have a link to a product where errors happen? I just tried to add a few of your child products to the cart using Firefox 20 and all of them were placed into the cart correcty without any errors showing up.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

WSS

Hi,

When your ready... Can I have some help with this issues too?
I click 'add to cart' the new cart screen opens however there is no products.

VM-2.0.20b
JL- 2.5.6
PHP- 5.2.17
www.windsurfnsnow.com
anything else?


jenkinhill

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

greaves

Hello, I also have a problem with the add to cart button, is there a conflict between those files :
  <script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/media/system/js/core.js" type="text/javascript"></script>
  <script src="/media/system/js/modal.js" type="text/javascript"></script>
  <script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></script>
  <script src="https://ajax.aspnetcdn.com/ajax/jquery.migrate/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
  <script src="/plugins/system/jqueryeasy/jquerynoconflict.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.min.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
  <script src="/plugins/system/jsntplframework/assets/joomlashine/js/noconflict.js" type="text/javascript"></script>
  <script src="/plugins/system/jsntplframework/assets/joomlashine/js/utils.js" type="text/javascript"></script>
  <script src="/templates/jsn_nuru_free/js/jsn_template.js" type="text/javascript"></script>
  <script src="http://tw.mixew.com/modules/mod_virtuemart_quickcart/assets/jquery.mCustomScrollbar.js" type="text/javascript"></script>
  <script src="http://tw.mixew.com/modules/mod_virtuemart_quickcart/assets/jlscript.js" type="text/javascript"></script>

Thx in advance

greaves

update : It seems to be cause by the quickcart extension, I'll keep you posted

Which JS file does the add to cart button use ?

Milbo

atm jquery1.6, but we have now a version running up to jquery1.10

btw I read in another thread this solution, maybe it helps also here

Quote from: Muszti on January 24, 2014, 15:11:24 PM
For me it was the same problem: add to cart button fancybox did not work.
tried my page with http://www.hermex.hu, then tried http://hermex.hu
One of them was working well with the add to cart popup, other didn't.

It turned out that in configuration php it was a setting for live site either one link with www or without it.

I just cleared out that setting in configuration.php like this:
public $live_site = '';

And now both way of domain name works correctly.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

foo

Can someone check and tell me if the add to cart button works on IE8 and IE9 for this website please? http://forfarfurnitureuk.co.uk/index.php/bedroom-furniture/view/productdetails/virtuemart_product_id/10/virtuemart_category_id/23

I don't want to waste time with virtuemart if I can't get the cart to work on IE

I have it working on Firefox and Chrome. To get it to work on FireFox I had to install JQuery Easy Plugin. With it set to JQuery enabled version 1.4 and subversion 4 (1.4.1).

I am using Joomla! 2.5.17 and Virtuemart 2.0.26d

PHP Built On    Linux lin197.gridhost.co.uk 2.6.32.21-grsec #6 SMP Fri May 20 17:37:06 BST 2011 x86_64
Database Version    5.5.28-29.1
Database Collation    utf8_general_ci
PHP Version    5.3.28
Web Server    Apache
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 2.5.17 Stable [ Ember ] 18-December-2013 14:30 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0

Milbo

You have a wrong impression.

The add to cart button works completly normal. The thread is now almost a year old and within this year only 2 people posted that they have a problem with it.

One time
Quote from: greaves on January 23, 2014, 19:43:38 PM
update : It seems to be cause by the quickcart extension, I'll keep you posted

Which JS file does the add to cart button use ?

in your case it will be similar, somehow connected to your template. We cannot prevent that a bad template destroys the features of VM. You may read in our template FAQ http://forum.virtuemart.net/index.php?board=137.0

I will unsticky this post now, because the thread was active almost a year ago and within this year only 2 people posted that they have a problem with it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

GJC Web Design

As this is something that happens only "sometimes" on your site it must be something "on" your site

If it was a VM bug it would have been reported / noticed 100's of times

On yours I notice there is constant posting from Yandex
you also have google & counterrambling - what ever this is  - but at least unobstrusive Gets

as addto cart is Ajax posts etc maybe this amount of traffic is interfering?

try for a period of time with this traffic hogging switched off?  - just an idea..

[attachment cleanup by admin]
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

borro

#190
Thank you for idea
Quote from: GJC Web Design on May 17, 2014, 13:25:25 PM
try for a period of time with this traffic hogging switched off?  - just an idea..
I tried. I deleted them all (Yandex, Google and Rambler counter). Mistake was repeated again, it was still there. It's something else makes all priceses of a products in cart having the cost of a product which I was trying to add the last. But what is it?.. I've noticed that it usually happens when you trying to add something into a cart right after the loading some page with a products. May be some scripts have not enough time to be loaded from a server to make adding operation correct. In other words may be some scripts which influence the cart cann't be downloaded in time. What do you think?
It seems that in a holidays no such mistakes can be detected. May be it depends on hosting capacity. Here is the site
Wish you happiness!

borro

#191
After upgrade to VM 2.6.2 the problem of the same costs of all products in a cart has gone. But still sometimes the click on add-to-cart button right after a new category is opened redirects to a cart view. I can't find an multiple jquery loading at site. Please confirm or deny my vision by checking one typical page. So what could be the reason of such rare redirections?
Wish you happiness!