Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Changing Tabs Menu and Adding "Specifications"...?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-09-2006, 09:25 PM
  rkdiddy's Avatar 
rkdiddy rkdiddy is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 60
 

Default 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!!!
__________________
Stealth Cords - Discrete Power Cords for Automotive Enthusiasts
www.stealthcords.com
X-Cart version: 4.1.9
Reply With Quote
  #2  
Old 03-10-2006, 03:20 PM
 
Total Hosting Total Hosting is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 52
 

Default

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
__________________
Regards,

Peter Stoermer
http://www.TotalHosting.com for http://www.EmpowermentGroup.com
X-cart: 4.0.17
Reply With Quote
  #3  
Old 03-11-2006, 07:51 AM
  rkdiddy's Avatar 
rkdiddy rkdiddy is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 60
 

Default

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!
__________________
Stealth Cords - Discrete Power Cords for Automotive Enthusiasts
www.stealthcords.com
X-Cart version: 4.1.9
Reply With Quote
  #4  
Old 03-11-2006, 08:59 AM
 
Total Hosting Total Hosting is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 52
 

Default

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
__________________
Regards,

Peter Stoermer
http://www.TotalHosting.com for http://www.EmpowermentGroup.com
X-cart: 4.0.17
Reply With Quote
  #5  
Old 03-14-2006, 09:59 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Support Knowledge Base related article:
http://www.cart-lab.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticl eid=12
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #6  
Old 04-25-2006, 07:49 AM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default

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?
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #7  
Old 04-25-2006, 09:17 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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?
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #8  
Old 04-25-2006, 09:29 AM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default

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???
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #9  
Old 04-25-2006, 01:13 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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

Just use an OR logic operator.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #10  
Old 04-26-2006, 05:49 AM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default

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}
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:58 AM.

   

 
X-Cart forums © 2001-2020