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

Make "Specifications" the Default Tab

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-29-2016, 02:50 PM
 
2ndTracks 2ndTracks is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 68
 

Default Make "Specifications" the Default Tab

Does anyone know how I might go about making "Specifications" the default tab that opens on a product page? I always write my descriptions in the brief field and sell products that have lots of specs.

It would be nice if they were easily visible, especially because I don't put anything in the default description field.
__________________
Ben Johnson
X-Cart 5
Reply With Quote
  #2  
Old 02-29-2016, 04:38 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Make "Specifications" the Default Tab

Ben,
I'm sure this could be accomplished by creating a custom module, or adding on to your existing custom module. You would be able to use the move templates in lists function and adjust the order.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
qualiteam (03-01-2016)
  #3  
Old 03-01-2016, 01:03 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Make "Specifications" the Default Tab

Quote:
Originally Posted by 2ndTracks
Does anyone know how I might go about making "Specifications" the default tab that opens on a product page? I always write my descriptions in the brief field and sell products that have lots of specs.

It would be nice if they were easily visible, especially because I don't put anything in the default description field.
Hi.
Find the defineTabs() function in classes/XLite/View/Product/Details/Customer/Page/APage.php and swap the following lines of code
Code:
$this->defineDescriptionTab($list); $this->defineSpecificationTab($list);
That will do the trick.

But of course, I recommend you to create a module that would override the defineTabs() function with your own modified code, otherwise your change will be overwritten during an upgrade.
For more info on how to create a module check out developer docs
* http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following user thanks razortw for this useful post:
totaltec (03-02-2016)
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 02:36 AM.

   

 
X-Cart forums © 2001-2020