Hi All,
I've created a custom product template that uses subproducts and have run
into a problem. The documentation I've found is too high-level and my
hosting vendor Verio is unwilling\unable to help. What I have found through
looking at sample source is the concept of super. Super is the actual
product id of the main product and then itemnum is the subproduct id. What
I cannot find is the value to set for the super field within a subproduct.
Here is the troublesome code:
[-- DEFINE SUBPRODUCT --]
<FORM action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post
ID="Form1">
<input type=hidden name=storeid value=[-- STORE_ID --] ID="Hidden1">
<input type=hidden name=dbname value=products ID="Hidden2">
<input type=hidden name=function value=add ID="Hidden3">
<input type=hidden name=itemnum value=[-- PRODUCT.RECORDNUMBER --]
ID="Hidden4">
<input type=hidden name=super value=[-- PRODUCT.RECORDNUMBER --]
ID="Hidden9">
<tr>
<td class="prddesc">[-- PRODUCT.ProductDescription --]</td>
<td class="prddesc">[--IF PRODUCT.SaleOn--] <strike>[--
PRODUCT.Price --]</strike> <b>
[-- PRODUCT.SaleAmount --] <font color="red">On Sale!</font></b>
[--Else--]
<b>[-- PRODUCT.Price --]</b>
[--End_If--]</td>
<td align="center"><input type=text style="FONT-SIZE: 8pt" size=2
name="[-- PRODUCT.RECORDNUMBER --]:qnty" ID="Text1"></td>
<td><input type=image src="[--
OUTPUT_DIRECTORY_URL --]/media/add_to_cart.gif" width=83 height=20
alt="add_to_cart.gif" hspace=0 vspace=3 border=0 align=right name="Add to
Cart" alt="Add to Cart" ID="Image2"></td>
</tr>
</form>
[-- END_DEFINE SUBPRODUCT --]
In this scenario when a product is ordered both itemnum and super are set to
the same value so in the shopping cart you would see something like
Large:Large.
The predefined templates shopsite uses works great so I'm sure there is just
another [-- field --] that is not documented. Something like
Product.Parentnumber or something.
I've also tried to pass in a parameter from the [-- DEFINE PRODUCT --]
section thinking I could assign it to the Parent product number and then
when it creates the subproducts I could use that to assign the super value.
I was also unable to get that to work.
Sorry for the long post, my site is ready to go except for this one item and
it's a showstopper.
Thanks in advance for the help.
Scott