View Single Post
  #1  
Old 05-30-2018, 12:29 AM
 
Soptareanu @Alex Soptareanu @Alex is offline
 

Advanced Member
  
Join Date: Apr 2018
Posts: 39
 

Default Extend module's layout.

I want to change some logic from product\details\stock\body.twig layout.
For that task, I decorate \XLite\View\Product\Details\Customer\Stock class and I override the getDefaultTemplate() method.
PHP Code:
protected function getDefaultTemplate()
    {
        return 
'modules/XGhosty/Disponibility/product/details/stock/body.twig';
    } 
It works very fine. But still it is a problem. I have install Backorder Module. This module also extands product\details\stock\body.twig layout. If this module is active the runner goes to the layout found in QSL\Backorder... and ignore the implementation of my module. How can i deal with such situation ?!
__________________
Soptareanu Alex
Reply With Quote