Modular Merchant: Shopping Cart Software

Shopping Cart Software Service

Advanced SearchAdvanced Search RegisterRegister ProfileProfile FAQFAQ MemberlistMemberlist Log inLog in
add a quantity to basket
Post new topic   Reply to topic
Modular Merchant Forum Index -> Web Design & Programming
Author Message

scottsdale




Joined: 11 Aug 2009
Posts: 3


PostPosted: Aug 20, 2009 11:55pm    Post subject: add a quantity to basket Reply with quote

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


PostPosted: Aug 21, 2009 03:08pm    Post subject: Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    Modular Merchant Forum Index -> Web Design & Programming All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group