View Single Post
  #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