Make your own product tab
Posted: Tue Sep 15, 2009 1:55 pm
Ok, let's say you want to add a new tab "Buy Instructions" with instructions how to use your web shop if someone doesn't know how...
Open: templates/[your_template_name]/Panels/ProductsTabs.html
Find:
Add after:
Open: javascript/product.js
Find:
Add after:
Open: language/en/front_language.ini
Add:
Make new: templates/[your_template_name]/Panels/ProductBuyInstructions.html
Open: templates/[your_template_name]/product.html
Find:
Add after:
And that is it...
Open: templates/[your_template_name]/Panels/ProductsTabs.html
Find:
Code: Select all
lang.OtherProducts = '%%LNG_OtherProducts%%';
Code: Select all
lang.BuyInstructions = '%%LNG_BuyInstructions%%';
Open: javascript/product.js
Find:
Code: Select all
TabNames['ProductVendorsOtherProducts'] = lang.OtherProducts;
Code: Select all
TabNames['ProductBuyInstructions'] = lang.BuyInstructions;
Open: language/en/front_language.ini
Add:
Code: Select all
BuyInstructions = "Buy Instructions"
Make new: templates/[your_template_name]/Panels/ProductBuyInstructions.html
Code: Select all
<div class="Block Moveable Panel ProductBuyInstructions" id="ProductBuyInstructions" style="display: %%GLOBAL_HideCustomFields%%">
<h3>%%LNG_BuyInstructions%%</h3>
<dl class="ProductDetailsGrid">
Here u write the content of page!
</dl>
<hr style="%%GLOBAL_HideSectionSeparator%%" class="Clear" />
</div>
Open: templates/[your_template_name]/product.html
Find:
Code: Select all
%%Panel.ProductReviews%%
Code: Select all
%%Panel.ProductBuyInstructions%%
And that is it...
