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

JUst getting started ... Tabs questions

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-24-2015, 01:33 AM
 
rowdybunny rowdybunny is offline
 

Advanced Member
  
Join Date: Aug 2014
Posts: 67
 

Default JUst getting started ... Tabs questions

Hello to All!

I just installed X-Cart today and I have some questions about tabs. First I see how I can reorder the tabs I created, but reviews and description are also in the tabs, how can I move reviews to the bottom.

Next how can I remove the sku# from the description.

Thanks,
Jennifer
__________________
X-Cart 5.2 & 5.3.3.3
Reply With Quote
  #2  
Old 08-12-2015, 11:33 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: JUst getting started ... Tabs questions

Hello Jennifer,

The "Reviews" tab is added by Reviews module and you can't control the position of the tab in the back-end. However, it is possible through a custom module.

What you are to do is to decorate the \XLite\View\Product\Details\Customer\Page\APage::g etTabs() method from your custom module as follows:
PHP Code:
protected function getTabs()
    {
        
$new = !isset($this->tabs);

        
$tabs parent::getTabs();

        if (
$new) {
            
// Move the Reviews tab to the end of the array to make it appear as the last tab
            
$reviews $this->tabs['Reviews'];
            unset(
$this->tabs['Reviews']);
            
$this->tabs['Reviews'] = $reviews;
        }

        return 
$tabs;
    } 

As for the sku# - please could you clarify what you mean?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 08-14-2015, 08:33 PM
 
rowdybunny rowdybunny is offline
 

Advanced Member
  
Join Date: Aug 2014
Posts: 67
 

Default Re: JUst getting started ... Tabs questions

Hi Alex,

Thanks for the reply. Are there more directions on how to create this custom module. As I would also like to remove the specifications tab completely. I checked my file structure andI do not have an XLite directory.

As for the sku, when you click on the details tab, it shows the product sku number. I wanted that removed as the cart I am currently working on does not use sku #'s. But I figured out how to do that through webmaster mode.

Thanks,
Jennifer
__________________
X-Cart 5.2 & 5.3.3.3
Reply With Quote
  #4  
Old 08-19-2015, 09:51 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: JUst getting started ... Tabs questions

Hello Jennifer,

Yes, sure, here is the documentation for developers where you can read about creating custom modules for X-Cart 5:
http://kb.x-cart.com/

"XLite" is the base of the PHP class name, you should start looking into the "classes" directory to find the directories and the actual PHP script that declares the class itself.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (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 01:36 PM.

   

 
X-Cart forums © 2001-2020