scottsdale
Joined: 11 Aug 2009
Posts: 3
|
Posted: Aug 20, 2009 11:55pm Post subject: add a quantity to basket |
|
|
Hi,
I am trying to find a way to have the "quantity" and "add to basket" quickcode tags work together so I can have a customer specify the quantity they would like to add to the basket?
I am using the following code and it visually appears correct but it does not add any product the basket.
{PRODUCT-QUANTITY-FIELD}
<input name="pid" type="hidden" id="pid" value="<?=$_REQUEST['pid']?>" />
<input name="add_to_basket" type="submit" alt="Add to Cart" class="standard-button" id="add_to_basket" value="Add to Cart" /> |
|
bavery261

Modular Merchant: Development
Joined: 08 Oct 2008
Posts: 19
|
Posted: Aug 21, 2009 03:08pm Post subject: |
|
|
Hello,
| Quote: | I am trying to find a way to have the "quantity" and "add to basket" quickcode tags work together so I can have a customer specify the quantity they would like to add to the basket?
I am using the following code and it visually appears correct but it does not add any product the basket. |
That is pretty standard on the all of the product details template pages included with each free design package (Navigation Menu > Design > Get Design Packages).
| Quote: | {PRODUCT-QUANTITY-FIELD}
<input name="pid" type="hidden" id="pid" value="<?=$_REQUEST['pid']?>" />
<input name="add_to_basket" type="submit" alt="Add to Cart" class="standard-button" id="add_to_basket" value="Add to Cart" /> |
The code must also be inside an HTML form. For example:
| Code: |
<form action="{FORM-ACTION}" method="post" name="product_form" id="product_form">
{PRODUCT-QUANTITY-FIELD}
<input name="pid" type="hidden" id="pid" value="<?=$_REQUEST['pid']?>" />
<input name="add_to_basket" type="submit" alt="Add to Cart" class="standard-button" id="add_to_basket" value="Add to Cart" />
</form> |
Also, keep in mind that {PRODUCT-XXXXXXXX} QuickCode tags are only designed to work on the product details page. They won't work on other store template pages.
I hope this helps point you in the right direction. If you have any related questions, let us know. |
|