View Single Post
  #19  
Old 07-08-2015, 03:56 AM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Add sidebar to product pages

Quote:
Originally Posted by ARW VISIONS
how do you do this in 5.2?

tries extending XLite/Core/layout.php

Broke the whole thing now stuck in redeploy, and why do I need to redeploy again????
In 5.2 it is still XLite/Core/Layout.php that you extend.

You need to do this

PHP Code:
namespace XLite\Module\YourDeveloperID\YourModuleID\Core;
 
abstract class 
Layout extends \XLite\Core\Layout implements \XLite\Base\IDecorator

 
protected function 
getSidebarFirstHiddenTargets()
{
return array(
'cart',
'checkout',
'checkoutPayment',
'checkoutSuccess',
);
}


Obviously YourDeveloperID\YourModuleID are replaced with your developer id and module id. Let me know if this helps. I did notice that you typed Layout.php as layout.php. make sure your file is capitalized correctly.
__________________
Ver 5.2.6
Reply With Quote