News:

Looking for documentation? Take a look on our wiki

Main Menu

my own add to cart button

Started by TempleClause, February 10, 2014, 19:42:49 PM

Previous topic - Next topic

TempleClause

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&amp;W 600"> <input
type="hidden" name="view" value="cart"> <input type="hidden"
name="virtuemart_product_id[]" value="127">
<noscript>&lt;input type="hidden" name="task" value="add"/&gt;</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