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