VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: KlingstedtBrothers on March 28, 2013, 20:30:59 PM

Title: Add to Cart button not working.
Post by: KlingstedtBrothers on March 28, 2013, 20:30:59 PM
Joomla: 2.5.9
VM: 2.0.20b
Template: Custom (hand coded by me)
Link: http://www.herkytheclown.com/component/virtuemart/magic/thumb-tip-detail?Itemid=0

The add to cart button is not working for me.  I coded the template myself so it's possible I may not have included something I should have.  Any help would be appreciated.

Thanks!
Title: Re: Add to Cart button not working.
Post by: jenkinhill on March 28, 2013, 23:55:53 PM
I get these errors on trying add to cart:

HTML1524: Invalid DOCTYPE. The shortest valid doctype is "<!DOCTYPE html>".
thumb-tip-detail, line 1 character 1
SEC7118: XMLHttpRequest for http://herkytheclown.com/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&quantity%3D1%26quantity%255B%255D%3D1%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D1&_=1364511162580 required Cross Origin Resource Sharing (CORS).
thumb-tip-detail
SEC7120: Origin http://www.herkytheclown.com not found in Access-Control-Allow-Origin header.
thumb-tip-detail
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
thumb-tip-detail

And no, I don't know what they mean. Simple check is to test with Beez20 template. If VM add to cart works it rules out VM and server issues, just leaving your template.