Display "Product Extra Fields" for each product

General ShopSite user discussion

Display "Product Extra Fields" for each product

Postby dzamara » Mon May 28, 2012 8:43 am

how can I display my fields defined and loaded in "Product Extra Fields" in all of our products?
we have extra fields like ( brand , categories , sub-cat , manufacture)
dzamara
 
Posts: 6
Joined: Sat Oct 23, 2010 8:26 pm

Re: Display "Product Extra Fields" for each product

Postby Jim » Mon May 28, 2012 9:03 pm

You need to edit the product template and add the tags for the extra fields where you want the text to display. The tag would be like the following. The x would be replaced with the field number 1 to 25.
Code: Select all
[-- STORE.ProductFieldx --] : [-- PRODUCT.Fieldx --]

The first tag, [-- STORE.ProductFieldx --], displays the text that you have defined for the extra field name on Preferences > Extra Fields. And the second tag, [-- PRODUCT.Fieldx --], displays the actual content of the field that you configured for the product on Products > Edit Product Info.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Display "Product Extra Fields" for each product

Postby dzamara » Mon May 28, 2012 10:45 pm

thx Jim I found it under "More Info Pages" but I do not see it under regular page, do I need to add them?
3Column Product and More Info Template
...
</form>
[-- IF PRODUCT.MoreInformationText --]
<h1>[-- STORE.466 --]</h1>
<p>[-- PRODUCT.MoreInformationText --]</p>
[-- ELSE_IF VAR.ExtraProductFields "yes" --]
<h1>[-- STORE.466 --]</h1>
[-- END_IF --]
[-- IF VAR.ExtraProductFields "yes" --]
[-- IF PRODUCT.Weight "0" --][-- ELSE --]<p><b>Weight:</b> [-- PRODUCT.Weight --] lbs</p>[-- END_IF --]
[-- IF PRODUCT.Brand --]<p><b>Brand:</b> [-- PRODUCT.Brand --]</p>[-- END_IF --]
[-- IF PRODUCT.Field1 --]<p><b>[-- STORE.ProductField1 --]:</b> [-- PRODUCT.Field1 --]</p>[-- END_IF --]
[-- IF PRODUCT.Field2 --]<p><b>[-- STORE.ProductField2 --]:</b> [-- PRODUCT.Field2 --]</p>[-- END_IF --]
[-- IF PRODUCT.Field3 --]<p><b>[-- STORE.ProductField3 --]:</b> [-- PRODUCT.Field3 --]</p>[-- END_IF --]
...
dzamara
 
Posts: 6
Joined: Sat Oct 23, 2010 8:26 pm

Re: Display "Product Extra Fields" for each product

Postby Jim » Tue May 29, 2012 7:18 am

Quite often the product, on a page with other products, doesn't have all of the details displayed. The moreinfo page is designed to show more details about the product, of the extra fields would only be included on the moreinfo page. If you would like them to be displayed on the regular pages as well as the moreinfo page simply add them to the [-- define product --] section of the template. The code would be the same as is given in the more info section of the template.
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: No registered users and 109 guests