nicolas wrote: Hi,
For the cart module, you can use such javascript:
window.hikashop.submitCartModule(this, 'hikashop_cart_<?php echo $module_id; ?>', 'cart');
Code with
getElementById in
/components/com_hikashop/views/product/tmpl/cart.php doesn't work at all. Id changes after every cart update.
<a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_<?php echo $product->cart_product_id;?>'); qty_field.value=parseInt(qty_field.value)+1;window.hikashop.submitCartModule(this, 'hikashop_cart_<?php echo $module_id; ?>', 'cart');">+</a>
Code with
getElementsByName display rotating dots, but nothig changes.
<a href="#" onclick="var qty_field = document.getElementsByName('item[<?php echo $product->cart_product_id;?>][cart_product_quantity]'); qty_field.value=parseInt(qty_field.value)+1;window.hikashop.submitCartModule(this, 'hikashop_cart_<?php echo $module_id; ?>', 'cart');">+</a>