Override com_easystore/sppagebuilder and com_easystore/layouts - Forum | JoomShaper
Staff replied EasyStore

Override com_easystore/sppagebuilder and com_easystore/layouts

Asked by sitte 1 year ago Last activity 1 year ago

Hello. I created new custom addon for easystore but for now I have to keep it in components/com_easystore directory because I cannot find proper folder in template to override it. Can You help me and point where can I put override for files:

/components/com_easystore/sppagebuilder/list/features/site.php

/components/com_easystore/layouts/features.php

1 reply

Toufiq Senior Staff

Hi there,

Thank you for reaching out. Please follow the instruction first.

Go to the file & add this code

components/com_easystore/src/Helper/EasyStoreHelper.php

Find out this code

 public static function loadLayout($layoutFile, $displayData = [])
    {
        return LayoutHelper::render($layoutFile, $displayData, JPATH_ROOT . '/components/com_easystore/layouts');
    }

And replace with this code

 public static function loadLayout($layoutFile, $displayData = [])
 {
    return LayoutHelper::render($layoutFile, $displayData);
 }

https://prnt.sc/ehlQVIn2wmvo

Best regards,

Toufiqur Rahman (Team Lead, Support)

Log in to reply.