BB-Trace Theme changing how price is displayed
-
- Posts: 116
- Joined: Wed Aug 16, 2006 7:06 pm
- Location: Michigan
- Contact:
BB-Trace Theme changing how price is displayed
Hi, What I'm looking to do is to add Product Field 1 in front of or behind the display of the price on the more information page. I have found many include files for this theme, some regarding price (like BB-Price-TwoLine). I'm wondering which template file would be the best one to add this to? I'm trying to change the templates as little as possible so when there are updates they can easily be applied. Thanks!
Pam Laing
http://www.psldesigns.com
http://www.psldesigns.com
-
- Posts: 889
- Joined: Fri Aug 11, 2006 1:35 pm
- Location: Orem, UT
- Contact:
Re: BB-Trace Theme changing how price is displayed
I would suggest editing the more information code include file which is based on the product template you are using. So first, check which bb-product template you are using by going to Products > Edit Product Layout. The default for most themes using BB template files is the regular BB-Product.sst product template. If this is the product template you are using, then go to Merchandising > Custom Templates > Include Files, and make a copy of the BB-ProductPageContent.sst include file. Then make a copy of your copy and rename it the exact same name as the original (you can then get rid of your first copy...you don't need it anymore).
If you are using a different bb-product template, match the second half of the name with the include file with the same second half. For example, if you are using the BB-Product-2Columns.sst product template, then you will want to make a copy of the BB-ProductPageContent-2Columns.sst.
To modify the template, open the BB-ProductPageContent.sst include file (Edit), and near the top, maybe 10-15 lines in, you will see [-- INCLUDE VAR.PriceDisplay PROCESS --]. Simply add [-- IF PRODUCT.Field1 --]<span id="field1">[-- PRODUCT.Field1 --]</span>[-- END_IF --] above that line. Save changes. Then regenerate your store (Utilities > Publish > Regenerate).
If you are using a different bb-product template, match the second half of the name with the include file with the same second half. For example, if you are using the BB-Product-2Columns.sst product template, then you will want to make a copy of the BB-ProductPageContent-2Columns.sst.
To modify the template, open the BB-ProductPageContent.sst include file (Edit), and near the top, maybe 10-15 lines in, you will see [-- INCLUDE VAR.PriceDisplay PROCESS --]. Simply add [-- IF PRODUCT.Field1 --]<span id="field1">[-- PRODUCT.Field1 --]</span>[-- END_IF --] above that line. Save changes. Then regenerate your store (Utilities > Publish > Regenerate).
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
Contact me for help with any of your
custom ShopSite template questions.