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

Tab question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-11-2010, 04:28 PM
 
Sandy Cummins Sandy Cummins is offline
 

Advanced Member
  
Join Date: Jan 2007
Location: Australia
Posts: 92
 

Default Re: 4.4 template review

I have been trying to modify my 4.4 version and I am not a professional, just been doing it myself for the past few years. Anyway, I was wondering where the information for product tabs go. I would like to add another on the product pages but am not sure where that is and if I can just add one.

Any help would be appreciated (I know html but still use font tags and am a complete noob for CSS.
__________________
--
Sandy Cummins
XCart Pro 4.1.5 [linux]
Reply With Quote
  #2  
Old 10-11-2010, 04:36 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Tab question

Going to move this to its own thread. Good question though, as I was just starting to look into that myself. Will let you know when I figure it out!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-11-2010, 05:13 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Tab question

Product tabs are defined in "include/product_tabs.php" so you can add one there, just copy/paste one of the if statement and modify to fit. Shame this is hard coded like this though. An area in admin to add user-defined tabs should be a standard future
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 10-11-2010, 06:18 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Tab question

I can't believe this is not in the admin area - looks like yet another half-finished module
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-11-2010, 07:17 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Tab question

Yep it is just that. I will probably turn it into a module with adding user-defined and xcart defined modules on/off for the tabs when I get a minute
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 10-18-2010, 10:15 PM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: Tab question

any ideas on how to display the product description in the first tab? I've spent forever trying to do this.
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #7  
Old 10-19-2010, 03:16 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Tab question

You will have to add one tab as first and assign the description to it. So changes to both the php and template file
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 10-19-2010, 05:21 AM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: Tab question

I'm so used to my Cart-Lab add-on tabs from my 4yr old site. This newer version throws me. I got the tab to show up but not quite sure where or how to display the code into it. On my previous tab I simply placed {$product.fulldescr|default:$product.descr}, or something like that into it I believe and it showed the information. But that was on an actual .tpl file not within the .php file.

is there a template file for the tabs?
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #9  
Old 10-19-2010, 05:36 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Tab question

Yes there is a template file. Now you may not need to even edit the php file but then you have to manually add the tab in the template file. At the end all goes into the template file.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 10-19-2010, 05:44 AM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: Tab question

any idea what template file that is. I'm looking through the product_details.tpl and don't see it called up anywhere on it. Tried webmaster mode and doesn't show any .tpl for it.
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
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 03:04 PM.

   

 
X-Cart forums © 2001-2020