![]() |
How to add a .tpl to a tab?
Can anyone tell me how to add a .tpl (its a form for price matching) into a tab? We have the extended tabs mod installed.
Thanks in advance!! -Melinda |
Re: How to add a .tpl to a tab?
I got it working now, but just in case anyone else was wondering:
STEP 1: in admin area you need to run this SQL-query on Patch page: insert into xcart_product_tabs values (100, 'New Tab', '', 'Y', 'A', 4); If you want to create more tabs with TPL use SQL-queries in this format: NOTE: parameter #5 must be unique (S, D, U, R, C latters already are used). insert into xcart_product_tabs values (101, 'New Tab2', '', 'Y', 'B', 4); STEP 2: in skin1/modules/xCartMod_Tabs/product_tabs.tpl find this line: {elseif $tab.type eq "D"} and put right before it this code: {elseif $tab.type eq "A"} <p /> {include file="modules/Detailed_Product_Images/product_images.tpl" } NOTE: "A" - is unique modifier, modules/Detailed_Product_Images/product_images.tpl - any required TPL-file |
All times are GMT -8. The time now is 11:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.