VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: xbass540 on August 29, 2016, 13:27:36 PM

Title: console error on add to cart button
Post by: xbass540 on August 29, 2016, 13:27:36 PM
hi,
i have a 2.5.18 joomla installation with virtue mart. I have bought a template for the joomla that styles the e-shops as well. The site has been working a s a gallery but now my customer asked me for e-shop functionality so i enabled the e-shop but when i click add to cart button i get the console error

GET http://keysiamo.gr/index.php?option=com_virtuemart&nosef=1&view=cart&task=a...anufacturer_id%3D4%26virtuemart_category_id%255B%255D%3D14&_=1472469007208 500 (Internal Server Error)send @ jquery.js:2ajax @ jquery.js:2p.(anonymous function) @ jquery.js:2getJSON @ jquery.js:2sendtocart @ vmprices.js:60(anonymous function) @ vmprices.js:26dispatch @ jquery.js:2h @ jquery.js:2

and nothing happens.

I remember making some changes in the past to the core files but now i cant figure out what was these after all these years.

I tried to rewrite the joomla files on top of the existing ones, in order to replace any corrupted files with the good ones, with no success.

I think that the problem is a damaged file but i cant find out which one.

thanks!
Title: Re: console error on add to cart button
Post by: GJC Web Design on August 29, 2016, 17:45:39 PM
could be an out of date template.. try witht he std. VM template files

otherwise cart handling is in the FE helper/cart.php and controllers/cart.php mainly

you could also just paste the ajax url and find the 500 error by the std methods