Good morning,
We have determined that our update quantity in cart button does not work, here is the link: http://goo.gl/Y8vFC2.
I found some posts that spoke about js conflicts but could not find an issue using Chrome's console or firebug's debug.
Here are our versions
Joomla! 2.5.27
Virtuemart Installed version 2.0.26d
Gantry v4.1.17
When I look at the source code of the current virtuemart demo site, I notice that the checkout is a form :
NEW
<form action="/vm-frontpage/shopper/cart" method="post" class="inline">
<input type="hidden" name="option" value="com_virtuemart" />
<input type="text" title="Update Quantity In Cart" class="quantity" size="3" maxlength="4" name="quantity" value="12" />
<input type="hidden" name="view" value="cart" />
<input type="hidden" name="task" value="update" />
<input type="hidden" name="cart_virtuemart_product_id" value="1" />
<input type="submit" class="refresh-icon" name="update" title="Update Quantity In Cart" align="middle" value=" "/>
</form>
while my version is not:
OLD
<tr valign="top" class="sectiontableentry1">
<td align="left">
<span class="cart-images">
</span>
<a href="/index.php/products/kitchen-dining/glassware/tumbleweed-napkin-brown-on-teal-detail">Tumbleweed Napkin - Brown on Aqua</a>
</td>
<td align="left">109142068</td>
<td align="center">
</td>
<td align="right"> <script type="text/javascript">
function check1(obj) {
// use the modulus operator '%' to see if there is a remainder
remainder=obj.value % 1;
quantity=obj.value;
if (remainder != 0) {
alert('You can buy this product only in multiples of 1 pieces!!');
obj.value = quantity-remainder;
return false;
}
return true;
}
</script>
<!--<input type="text" title="Update Quantity In Cart" class="inputbox" size="3" maxlength="4" name="quantity" value="2" /> -->
<input type="text" onblur="check1(this);" onclick="check1(this);" onchange="check1(this);" onsubmit="check1(this);" title="Update Quantity In Cart" class="quantity-input js-recalculate" size="3" maxlength="4" name="quantity[77]" value="2">
<input type="submit" class="vmicon vm2-add_quantity_cart" name="update[77]" title="Update Quantity In Cart" align="middle" value="">
<a class="vmicon vm2-remove_from_cart" title="Delete Product From Cart" align="middle" href="/index.php/cart/delete?cart_virtuemart_product_id=77" rel="nofollow"> </a>
</td>
<td align="right"><span class="priceColor2"></span></td>
<td align="right"><span class="priceColor2"></span></td>
<td colspan="1" align="right">
<span class="line-through"></span><br><div class="PricesalesPrice" style="display : block;"><span class="PricesalesPrice">$8.40</span></div></td>
</tr>
Any assistance would greatly be appreciated.
The VM demo site uses the latest 2.6.10 version - which you should also be using - see http://virtuemart.net/news/latest-news/462-security-release-of-vm2-6-10-and-vm2-9-9b.
But test on a backup of the site first.
You can check if the cart update problem is caused by your Joomla template by switching to Beez and testing.