How to track products at the sub-SKU level in ShopSite

Forum Forums Tutorials How to track products at the sub-SKU level in ShopSite

This topic contains 0 replies, has 1 voice, and was last updated by  Anonymous 20 years, 3 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #48478

    Anonymous
    Participant

    If you are utilizing custom templates in ShopSite and wish to track products at the sub-SKU level, this can be accomplished with some creative custom templates. You would first create sub-products for each option of a particular product. For example, if you were selling shirts, the main product would be the shirt, and the sub-products would be the small shirt, medium shirt, large shirt, etc. You would then have your custom product template insert all of these sub-products into a dropdown menu under the main product.

    Each time a customer purchases one of these items, your inventory will now be depleted appropriately, thereby allowing you to track products at the sub-SKU level. The downside to this approach is in the case where you have multiple ordering options, such as size and color. Since each combination is its own product rather than ordering option, you may have a large amount of sub-products to enter in.

    Here is an example of a custom product template that could be used to display sub-products in a dropdown menu, rather than using ordering options:

    [-- DEFINE SUBPRODUCT --]
    <!-- Below are the option lists for each product. Extra Product Field1 is used for the text to appear in the dropdown. -->
    <option value="[--PRODUCT.RECORDNUMBER--]">[-- PRODUCT.FIELD1 --] </option>
    [-- END_DEFINE SUBPRODUCT --]
    
    
    [--DEFINE PRODUCT--]
    <!--Format product as a two-cell table to put image beside text -->
    <table width="100%"><tr><td width="115" valign="middle">
    <div align="center"><a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Graphic --]</a></div>
    </td>
    <td valign="middle"><a href="[-- PRODUCT.MoreInfoURL --]"><b>[-- PRODUCT.Name --]</b></a>
    <br>
    <font size=1>[-- PRODUCT.ProductDescription --]</font><br>
    [--IF PRODUCT.SaleOn--]
    <strike>[-- PRODUCT.Price --]</strike>  <font color="#990000"><b>[-- PRODUCT.SaleAmount --]</b></font>
    [--Else--]
    <b>[-- PRODUCT.Price --]</b>
    [--End_If--]
    <br><font size=1>[-- PRODUCT.SKU --]  </font>
    </td></tr></table>
    [-- END_DEFINE PRODUCT--]
    
    
    [-- DEFINE MORE_INFO_PAGE--]
    <html>
    <head>
    <title>[-- PRODUCT.Name --]</title>
    </head>
    
    <body background="[-- MORE_INFO.BackgroundImage--]" text="[-- MORE_INFO.TextColor --]">
    
    
    [-- IF MORE_INFO.DisplayPageHeader --]
    [-- HEADER --]
    [-- END_IF --]
    <br>
    <h1>[-- PRODUCT.Name --]</h1>
    <p>[-- PRODUCT.MoreInformationGraphic --]
    <br>
    Product Number: [-- PRODUCT.SKU --]
    <p>
    [-- IF PRODUCT.SaleOn --]
    <strike>[-- PRODUCT.Price --]</strike>  
    <h1>[-- PRODUCT.SaleAmount --]  <font color="#990000">On Sale!</font></h1>
    [-- ELSE --]
    <h1>[-- PRODUCT.Price --]</h1>
    [-- END_IF --]
    <p>[-- PRODUCT.MoreInformationText --]</p>
    
    
    <table border="0" cellpadding="5" cellspacing="2" bgcolor="silver">
    <tr><td bgcolor="F5F5F5">
    <p><font color=990000><b>Please Select Size and Add To Cart<b></font></p>
    
    [-- IF product.subproduct --]
    <form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
    <input type=hidden name=storeid value=[--Store.id--]>
    <input type=hidden name=dbname value=products>
    <input type=hidden name=function value=add>
    <TABLE>
    <TR><TD>
    <SELECT name=itemnum>
    [-- LOOP SUBPRODUCTS  --]
    [-- SUBPRODUCTS --]
    [-- END_LOOP SUBPRODUCTS --]
    </SELECT></TD><TD>
    
    <input type="submit" name="Add to Cart" value="Add to Cart!" border="0">
    
    </TD></TR></TABLE>
    </form>
    </td></tr></table>
    
    [-- ELSE --]
    # Need to treat as regular product
    [-- END_IF --]
    
    <p>
    
    [--IF MORE_INFO.DisplayPageFooter--] [--FOOTER--] [--END_IF--]
    
    
    </body>
    </html>
    
    [-- END_DEFINE MORE_INFO_PAGE--]
    

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.