Hi,
I want to create my own add to cart button. So i threw away all the things I think I don't need. But it's not working yet.
Here is what I have:
<form method="post" class="product js-recalculate"
action="<?php echo JRoute::_ ('index.php'); ?>">
<input placeholder="Anzahl" name="quantity[]" type="number"
data-clear-btn="false" name="number-1" id="number-1" value="1">
<button type="submit"
class="ui-btn ui-shadow ui-btn-icon-left ui-icon-shop">Button</button>
<input type="hidden" class="pname" value="B&W 600"> <input
type="hidden" name="view" value="cart"> <input type="hidden"
name="virtuemart_product_id[]" value="127">
<noscript><input type="hidden" name="task" value="add"/></noscript>
<input type="hidden" name="option" value="com_virtuemart">
</form>
What am I missing?
Or could someone give me the most minimalistic default_addtocart.php that works?
Thanks a lot