I'm about to make a "add to basket" with the possibility to enter how many of one product you want to put in it. But it fails when you use custom urls "Side navn med ID
parameter (/Sidenavn.aspx?ID=Side ID)"
If I use one of the other custom urls it works, but I have to use the "Side navn med ID
parameter (/Sidenavn.aspx?ID=Side ID)" because it's on an existing solution.
My code:
<div class="ProductListAddToCart">
<a href="javascript:document.getElementById('<!--@Ecom:Product.ID-->').submit();"><!--@Translate(addtobasket, "Læg i kurv", global)--></a>
</div>
<div class="ProductListQuantity">
<form name="<!--@Ecom:Product.ID-->" id="<!--@Ecom:Product.ID-->" method="get">
<input type="hidden" name="CartCmd" id="CartCmd" value="add" />
<input type="hidden" name="ProductID" id="ProductID" value="<!--@Ecom:Product.ID-->" />
<input type="hidden" name="VariantID" id="VariantID" value="" />
<input type="hidden" name="UnitID" id="UnitID" value="" />
<input type="text" name="Quantity" id="Quantity" value="1" size="1" maxlength="2" />
</form>
</div>