Display of Quantity Tag

General ShopSite user discussion

Display of Quantity Tag

Postby shaoen01 » Thu Oct 25, 2007 1:22 am

I am trying to find out if it is possible to manually insert in the order quantity box using a specific tag maybe? Thanks
shaoen01
 
Posts: 68
Joined: Sat Jun 16, 2007 10:00 pm

Postby Jim » Thu Oct 25, 2007 6:53 am

In your custom template you can use the following to determine if your product has the quantity field enabled and output the appropriate html for the input box. Note that this must be inside a form submit with the add to cart
Code: Select all
#if a Quantity is required generate the quantity box
[-- IF product.DisplayOrderQuantity? --]
  &nbsp;Quantity <input type=text size=2 name="[-- PRODUCT.RECORDNUMBER --]:qnty"
value="1">
[-- END_IF --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby shaoen01 » Fri Oct 26, 2007 10:09 am

Jim wrote:Note that this must be inside a form submit with the add to cart
--> What do you mean by this exactly?

Can't i just put it inside the normal product template?
shaoen01
 
Posts: 68
Joined: Sat Jun 16, 2007 10:00 pm

Postby Jim » Fri Oct 26, 2007 1:47 pm

You can put it in the product template but the template must be using a form submit for the add to cart and not just a <a href ...) Check some of the ShopSite provided templates or the help for the exact format you would need.
For the over all template spec go here
http://www.shopsite.com/help/8.3/en-US/ ... .spec.html

and for the product specific help go here.
http://www.shopsite.com/help/9.0/en-US/ ... oduct.html

Look at the [-- PRODUCT.OptionsBox --] section for an example of how a form submit is done. (although that doesn't contain the specific quantity field parameters you would need to add them)
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby shaoen01 » Fri Oct 26, 2007 2:24 pm

Hi Jim,

Thanks for the links, but i don't think my template is using the <form> tags.
shaoen01
 
Posts: 68
Joined: Sat Jun 16, 2007 10:00 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 108 guests

cron