product minimum in custom product template

General ShopSite user discussion

product minimum in custom product template

Postby psldesigns » Thu Jun 28, 2012 3:38 pm

Is there a tag for the product minimum? I want to show the minimum required in the product template and can't seem to find the tag. Maybe i'm just looking past it.

Thanks!
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan

Re: product minimum in custom product template

Postby Jim » Thu Jun 28, 2012 4:20 pm

I don't see the tags in the documentation so I'll let the doc team know and have them update the spec and cheatsheet.
the 3Column-Product.sst template has the following code to set the value of the Quantity box input form field
Code: Select all
 
[-- IF product.DisplayOrderQuantity? --]
  <span class="pr_qty">[-- STORE.Quantity --]: <input type=text size=2 name="[-- PRODUCT.RECORDNUMBER --]:qnty" value="[-- IF PRODUCT.MinimumQuantity "0" --]1[-- ELSE_IF PRODUCT.MinimumQuantity "" --]1[-- ELSE --][-- PRODUCT.MinimumQuantity --][-- END_IF --]"></span>
[-- END_IF --]


So the tag for the value of the Minimum Quantity is [-- PRODUCT.MinimumQuantity --] and it can be use in an if statement to compare the value to something like this [-- IF PRODUCT.MinimumQuantity "0" --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: product minimum in custom product template

Postby psldesigns » Thu Jun 28, 2012 6:55 pm

thanks Jim! I will give it a shot!
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan

Re: product minimum in custom product template

Postby Jim » Thu Jun 28, 2012 7:57 pm

I should have mentioned the [-- STORE.Quantity --] displays the text that is configured on the preferences > Store Text setting >... > Quantity field.

FYI Most of the text configured on the Store Text setting screens can be accessed using the [-- STORE.<Field> --] format.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 100 guests