Thursday, August 02, 2012

Virtuemart Different Solutions

There is text on top of the Add to Cart image buttons (and other submit buttons)?

Using a text-editor open the file /product_details/includes/addtocart_form.tpl.php
Old Line 38:
<input type="submit" class="" value="add-to-cart ?>" style="padding-top:3px;" title="" /> to
New Line 38:
<input type="submit" class="" value="" style="padding-top:3px;" title="" />

When I click on the Add to Cart button nothing happens?

The easiest solution is to turn off the Ajax cart function.
Admin > Site > Configuration > Use Ajax to add, update or delete products from the cart? No

The shipping method step sends me back to my frontpage?

This is a common problem with customized templates. A solution for this was provided by Iain of www.aspirems.com
Open Administrator/Components/com_virtuemart/html/checkout.index.php and edit Line 96 from this:
$basket_html .= '<form action="'. SECUREURL.basename($_SERVER['PHP_SELF']) .'" method="post" name="adminForm">
to this:
$basket_html .= '<form action="'. SECUREURL.basename($_SERVER['PHP_SELF']) .'?page=checkout.index&redirected=1&option=com_virtuemart" method="post" name="adminForm">
It fixes the issue, so then it works now irrelevant of the Template.

The theme.css file isn't loading or none of the graphics are showing and the theme doesn't look right?

This seems to be a file permission error. Make sure that the folders and files /components /components/com_virtuemart /components/com_virtuemart/fetchscript.php have file permissions of 755, not 777. This should correct the issue.

No comments: