X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to add a .tpl to a tab? (https://forum.x-cart.com/showthread.php?t=44237)

Doctored Locks 12-14-2008 10:02 AM

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

Doctored Locks 12-14-2008 11:41 AM

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.