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.