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 products to cart?

Started by comm3000, July 02, 2013, 03:09:23 AM

Previous topic - Next topic

comm3000

Installed from quickstart package. (LEO Bookstore)
no new products/categories
I just modified existing products and unpublished all unnecessary ones.
live site here: selfclearing.com
Paypal set up done
Shipping method - USPS (internal plug-in)

When I click on "add to cart" it will bring me to Cart but no product added, "no shipment selected", "no payment selected"

Where to dig?

jenkinhill

You had posted in a thread for an old version of VirtueMart. Hopefully you are using a more recent VM version, 2.0.20b

Add to cart is not working because you have multiple JavaScript issues with your Joomla template. The following is shown in IE10's debugger on a product details page:

SCRIPT5007: Object expected
dd8ab9e6bb65057e0385b305dad9eb76.js, line 12 character 2
HTML1527: DOCTYPE expected. The shortest valid doctype is "<!DOCTYPE html>".
about:blank, line 1 character 1
HTML1405: Invalid character: U+0000 NULL. Null characters should not be used.
about:blank, line 1 character 14
HTML1507: Unexpected character: U+0000 NULL. Null characters should not be used.
about:blank, line 1 character 14
HTML1524: Invalid DOCTYPE. The shortest valid doctype is "<!DOCTYPE html>".
samoochistka-detail, line 1 character 1
SCRIPT5007: Object expected
dd8ab9e6bb65057e0385b305dad9eb76.js, line 12 character 2
SCRIPT5007: Unable to set property 'addtocart_popup' of undefined or null reference
samoochistka-detail, line 30 character 1
HTML1516: Invalid nesting. A header tag such as "<h1>" or "<h2>" should not be placed within another header tag.
samoochistka-detail, line 131 character 30
HTML1509: Unmatched end tag.
samoochistka-detail, line 131 character 44
SCRIPT445: Object doesn't support this action
samoochistka-detail, line 336 character 7
HTML1423: Malformed start tag. Attributes should be separated by whitespace.
samoochistka-detail, line 462 character 46
HTML1409: Invalid attribute name character. Attribute names should not contain ("),('),(<), or (=).
samoochistka-detail, line 462 character 57
SCRIPT5007: Unable to get property 'assign' of undefined or null reference
samoochistka-detail, line 237 character 3

And on the cart page, Firebug in Firefox gives these JS issues:

TypeError: (intermediate value)(...) is not a function
[Break On This Error]    
effect:"fade"
index.php (line 340)
TypeError: LeoMegaMenu is not a constructor
[Break On This Error]    
effect:"fade"
index.php (line 340)
"CSS Usage: initializing extensions"
TypeError: SqueezeBox is undefined
[Break On This Error]
SqueezeBox.initialize({});


It looks like the conflicts/problems are with the MegaMenu, the fade effect and squeezebox.  It is just possible that this will help (but I suspect it wont):  http://forum.virtuemart.net/index.php?topic=111843.0

The no ship/payment selected is normal and should resolve once the template is fixed or changed.

http://forum.virtuemart.net/index.php?topic=108212.0
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