general advice

General ShopSite user discussion

Re: general advice

Postby ShopSite Lauren » Thu Nov 06, 2014 11:51 am

Is the name of the new template BasicProduct_2cf.sst, or is that the name of a different template?

It seems like that is the name of a different template, which doesn't have the subproduct format that I setup in the custom template, so it is breaking the template I setup.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: general advice

Postby charleshuff1953 » Thu Nov 06, 2014 12:15 pm

It was the product template that had the two lines of text for top and base. I incorporated that into this new template. and fixed the line where it calls itself...but the cart button is still not working? here is the product template: I have renamed it to BasicProduct_8cf.sst. If I could fix the cart button and align to the right like the other pages I think this will work nicely... Is that possible?

#BasicPage Product Template
#Copyright ShopSite inc. Design by Lauren
[-- DEFINE SUBPRODUCT --]
<div>
<span class="addanother" id="[-- VAR.SubproductCount --]" style="[-- IF VAR.SubproductCount 1 --]display: block;[-- ELSE --]display: none;[-- END_IF --] cursor: pointer; color: #[-- STORE.LinkColor --]; text-decoration: underline;">Add Another Top Plate</span>
<div style="display: none;">
<input class="checkbox" type="checkbox" name="itemnum" value="[-- PRODUCT.RecordNumber --]"><input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" value="Carefully type name or logo here" onFocus="value=''" size="25">[-- IF PRODUCT.DisplayPrice --] - [-- IF PRODUCT.SaleAmount --][-- IF PRODUCT.SaleOn --][-- PRODUCT.SaleAmount --][-- IF PRODUCT.AltPrice --] [-- PRODUCT.AltSaleAmount --][-- END_IF --] [-- STORE.OnSaleText --][-- ELSE --][-- PRODUCT.Price --][-- IF PRODUCT.AltPrice --] [-- PRODUCT.AltPrice --][-- END_IF --][-- END_IF --][-- ELSE --][-- PRODUCT.Price --][-- IF PRODUCT.AltPrice --] [-- PRODUCT.AltPrice --][-- END_IF --][-- END_IF --][-- END_IF --]
<br>&nbsp;
</div>
</div>
[-- END_DEFINE SUBPRODUCT --]
################################################################################
[-- DEFINE PRODUCT --][-- IF PRODUCT.UseMultiMenus  checked --]


Text to engrave on Top: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" id="[-- PRODUCT.RecordNumber --]:freeopt" value="Carefully type name or logo here" size="30"><br>
Text to engrave on Face: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" id="[-- PRODUCT.RecordNumber --]:freeopt" value="Carefully type name or logo here" size="30"><br>


[-- ELSE_IF PRODUCT.DisplayAddtoCart "All Pages" --]<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">
[-- END_IF --]
<script type="text/javascript">var $ = ss_jQuery, jQuery = ss_jQuery;</script>
<td [-- IF PRODUCT.ImageAlignment "left" --]class="pr_img"[-- ELSE --]class="product"[-- END_IF --][-- IF PRODUCT.ImageAlignment "center" --] colspan="2"[-- END_IF --]>
             [-- IF PRODUCT.ImageAlignment "right" --][-- ELSE --][-- IF PRODUCT.DisplayGraphic --][-- IF PRODUCT.Graphic --][-- IF PRODUCT.ImageAlignment "center" --]<center>[-- END_IF --][-- IF PRODUCT.DisplayMoreInformationPage --]<a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Graphic --]</a>[-- ELSE --][-- PRODUCT.Graphic --][-- END_IF --][-- IF PRODUCT.ImageAlignment "center" --]</center>[-- END_IF --][-- END_IF --][-- END_IF --][-- END_IF --]
                  [-- IF PRODUCT.ImageAlignment "left" --]</td><td class="product">[-- END_IF --]

             [-- IF PRODUCT.VariableName? --][-- IF PRODUCT.DisplayAddtoCart "All Pages" --][-- IF PRODUCT.DisplayMoreInformationPage --]<a href="[-- PRODUCT.MoreInfoURL --]" class="prod_name_vr_[-- PRODUCT.NameStyle --]_[-- PRODUCT.NameSize --]">[-- STORE.ProductName --]</a>[-- ELSE --]<span class="prod_name_vr_[-- PRODUCT.NameStyle --]_[-- PRODUCT.NameSize --]">[-- STORE.ProductName --]</span>[-- END_IF --] <input name="[--PRODUCT.RecordNumber--]:name" size="20" maxlength="100" value="" type="text">[-- END_IF --]
             [-- ELSE_IF PRODUCT.DisplayName --][-- IF PRODUCT.DisplayMoreInformationPage --]<a href="[-- PRODUCT.MoreInfoURL --]" class="prod_name_[-- PRODUCT.NameStyle --]_[-- PRODUCT.NameSize --]">[-- PRODUCT.Name --]</a>[-- ELSE --]<span class="prod_name_[-- PRODUCT.NameStyle --]_[-- PRODUCT.NameSize --]">[-- PRODUCT.Name --]</span>[-- END_IF --][-- END_IF --]

                  [-- IF REVIEWS --][-- IF Reviews_Count_Number LT 1 --]<span class="write-review">[-- REVIEWS_WRITE_FIRST --]</span>[-- ELSE --]<span class="reviews-brief">[-- REVIEWS_STARS --]</span>[-- END_IF --][-- END_IF --]

               <span class="prod_price_[-- PRODUCT.PriceStyle --]_[-- PRODUCT.PriceSize --]">[-- IF PRODUCT.SaleAmount --][-- IF PRODUCT.SaleOn --]<strike>[-- PRODUCT.Price --][-- IF PRODUCT.AltPrice --] [-- PRODUCT.AltPrice --][-- END_IF --]</strike>[-- PRODUCT.SaleAmount --][-- IF PRODUCT.AltPrice --] [-- PRODUCT.AltSaleAmount --][-- END_IF --][-- ELSE --][-- PRODUCT.Price --][-- IF PRODUCT.AltPrice --] [-- PRODUCT.AltPrice --][-- END_IF --][-- END_IF --][-- ELSE --][-- PRODUCT.Price --][-- IF PRODUCT.AltPrice --] [-- PRODUCT.AltPrice --][-- END_IF --][-- END_IF --]</span>

               [-- IF PRODUCT.ProductDescription --]<p class="prod_desc_[-- PRODUCT.DescriptionStyle --]_[-- PRODUCT.DescriptionSize --]">[-- PRODUCT.ProductDescription --]</p>[-- END_IF --]

               [-- IF PRODUCT.QuantityPricing --][-- PRODUCT.QuantityPricing --][-- END_IF --]
</td></tr>
<tr><td colspan="2" align="left">
<input name="[--PRODUCT.RecordNumber--]" type="hidden" name="itemnum">
               [-- Order_Option_Menu Column --]
[-- IF PRODUCT.OptionsBox --]
Text to engrave on Top: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" value="Carefully type name or logo here" onFocus="value=''" size="25"><br>
Text to engrave on Face: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" value="Carefully type name or logo here" onFocus="value=''" size="25"><br>
[-- END_IF --]
               [-- IF PRODUCT.DisplayOrderQuantity --]<span class="nobr">[-- STORE.Qty --] <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 --]
             <input type="hidden" name="itemnum" value="[-- PRODUCT.RecordNumber --]">
<br>
[-- IF PRODUCT.SubProduct --][-- VAR.SubproductCount 0 --]
             [-- LOOP SUBPRODUCTS --][-- VAR.SubproductCount INC --]
             [-- SUBPRODUCTS BasicProduct_8cf.sst --]
             [-- END_LOOP SUBPRODUCTS --]
[-- END_IF --]

<script type="text/javascript">
$(".addanother").each(function(){$(this).click(function() {
 var nexid = parseInt($(this).attr("id"))+1;
 $(this).hide();
 $(this).parent().children("div").show();
 $(this).parent().children("div").children(".checkbox").attr("checked","checked")
 $(this).parents("td").find("span#" + nexid).show();
});});
</script>
<br><br>
                 <input type="submit" value="Add To Cart">
<br><br>
              </div></form>
        <div class="clear"></div>
                  </td>
[-- END_DEFINE PRODUCT --]
################################################################################
[-- DEFINE PRODUCT_CROSS_SELL --][-- INCLUDE BasicPage-CrossSellDefine.sst PROCESS --][-- END_DEFINE PRODUCT_CROSS_SELL --]
[-- DEFINE MORE_INFO_PAGE --][-- INCLUDE BasicProduct-MoreInfoPage.sst PROCESS --][-- END_DEFINE MORE_INFO_PAGE --]
charleshuff1953
 
Posts: 14
Joined: Sun Jul 20, 2014 2:25 am

Re: general advice

Postby ShopSite Lauren » Thu Nov 06, 2014 12:34 pm

Change:
<td colspan="2" align="left">

To:
<td></td><td align="left">



and change:
[-- IF PRODUCT.UseMultiMenus checked --]


Text to engrave on Top: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" id="[-- PRODUCT.RecordNumber --]:freeopt" value="Carefully type name or logo here" size="30"><br>
Text to engrave on Face: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" id="[-- PRODUCT.RecordNumber --]:freeopt" value="Carefully type name or logo here" size="30"><br>


[-- ELSE_IF PRODUCT.DisplayAddtoCart "All Pages" --]<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">
[-- END_IF --]


To:
<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">
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: general advice

Postby charleshuff1953 » Thu Nov 06, 2014 1:25 pm

I did not remove the "freeopt" part(red), but rather added the form action just after it (the green text) and omg it is working now!!! I am still testing it, but it looks very good. I almost didn't try it because it seemed you were saying the two lines: Text to engrave on Top: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" id="[-- PRODUCT.RecordNumber --]:freeopt" value="Carefully type name or logo here" size="30"><br>
Text to engrave on Face: <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text" id="[-- PRODUCT.RecordNumber --]:freeopt" value="Carefully type name or logo here" size="30"><br> had to go... and I really needed them.

You are simply amazing!
charleshuff1953
 
Posts: 14
Joined: Sun Jul 20, 2014 2:25 am

Previous

Return to User Forum

Who is online

Users browsing this forum: Google [Bot] and 42 guests