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)
-   -   Changing Tabs Menu and Adding "Specifications"...? (https://forum.x-cart.com/showthread.php?t=20423)

rkdiddy 03-09-2006 09:25 PM

Changing Tabs Menu and Adding "Specifications"...?
 
I would like to add a Specifications tab to my "Tabs Menu". I'm ok with replacing one of the current tabs to do this.

Basically what I'm looking for is to have a table (1) column Specifications and (1) column Features inside (1) tab. I'm not really sure where to even start. Can someone please help!!! :?

Total Hosting 03-10-2006 03:20 PM

Check out cart lab's product tabs module.

http://www.cart-lab.com/Tabbed-Product-Menu-p-39.html#

Works great and is very reasonably priced.

HTH

rkdiddy 03-11-2006 07:51 AM

Thank you for the response. I should have clarified. I do have cart-lab's tabs. I figured out how to add an additional tab and change tab names etc.

What I now need help with is making a template that includes a table with one colum specifications and one column details.

So I'm looking for:

1. How do I make a template with two columns (i.e. what code do I use)?

2. What code is used to call this from my products?

Thanks!

Total Hosting 03-11-2006 08:59 AM

I just embedded mine right in the cart labs template, instead of putting the content in it's own template and then calling that. Then I wrapped a conditional to show it if the product was in a specific category (since that's what I needed).

The Readme file is pretty easy to follow.

New Tab
Code:

{if $product.categoryid == 26}[*]Guarantee{/if}
New Tab Content
Code:

<DIV id="guarantee" style="display:none;">
{capture name=dialog}



<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="DialogTitle" background="/xcart/skin1/images/dialog_bg_n.gif" height="15" valign="bottom">Event Satisfaction Guarantee</td>
</tr>

<tr><td class="DialogBorder"><table border="0" cellpadding="10" cellspacing="1" width="100%">
<tbody><tr><td class="DialogBox">
<h2>Money Back Guarantee</h2>
[img]images/guaranteed1.jpg[/img]Here's the deal. 

 ...

</td></tr>
</tbody></table></td></tr>

</tbody></table>
{/capture}
{include file="cartlab-tabs-dialog.tpl" title="Money Back Guarantee" content=$smarty.capture.dialog extra="width=100%"}
</DIV>

Just don't forget to add the new tab to the tabs.js array (again, it's in the readme).

Here is how I implemented it:
http://www.empowermentgroup.com/xcart/product.php?productid=16134&cat=26

Hope that helps

B00MER 03-14-2006 09:59 PM

Support Knowledge Base related article:
:arrow: http://www.cart-lab.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticl eid=12

SMDStudios 04-25-2006 07:49 AM

I have an issue that I need the tab to show up on multiple subcategories not just 1 main category. How would I structure the if statement?

B00MER 04-25-2006 09:17 AM

Quote:

Originally Posted by SMDStudios
I have an issue that I need the tab to show up on multiple subcategories not just 1 main category. How would I structure the if statement?


I don't quite understand the question? :?:

SMDStudios 04-25-2006 09:29 AM

Sorry,

The following code will only show a particular tab in one category.

Code:

{if $product.categoryid == 18}[*]Guarantee{/if}

In the cart I am currently working on I have a category with several subcategories that I need a particular tab to only show in.

So I need this tab to show in cat id 19, 20, and 21.

Hope this clears things up???

B00MER 04-25-2006 01:13 PM

Code:

{If $product.categoryid eq 18 or $product.categoryid eq 19 or $product.categoryid eq 20}

Just use an OR logic operator.

SMDStudios 04-26-2006 05:49 AM

Any idea why I would be getting the following error?

Fatal error: Smarty error: [in cartlab-tabs.tpl line 30]: syntax error: unrecognized tag 'If' (Smarty_Compiler.class.php, line 580) in /home/acsystem/public_html/Smarty-2.6.9/Smarty.class.php on line 1088


Code:

{If $product.categoryid == 19 or $product.categoryid == 20 or $product.categoryid == 21}[*]Condenser Details{/if}
{If $product.categoryid == 19 or $product.categoryid == 20 or $product.categoryid == 21}[*]Air Handler Details{/if}



All times are GMT -8. The time now is 07:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.