X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Removing a Module Template (https://forum.x-cart.com/showthread.php?t=72700)

ianwid 09-01-2015 05:59 AM

Removing a Module Template
 
I am trying to change an existing Module by creating my own, I'm not sure if it is possible but I am using the following code in my new module without success
When I rebuild the store it freezes on the first step.

Quote:

public static function runBuildCacheHandler()
{
parent::runBuildCacheHandler();

\XLite\Core\Layout::getInstance()->removeTemplateFromLists('modules/CDev/VAT/price.tpl');
}

I basically wanted to make a change to the price.tpl by removing the original and inserting my own, I haven't got as far as trying to insert my own yet as I couldn't remove the original.

Business 5.2.6

qualiteam 09-01-2015 07:48 AM

Re: Removing a Module Template
 
I think it will be much easier to achieve by creating a custom skin that can replace files from the original theme with your custom versions:
http://kb.x-cart.com/display/XDD/Basic+guide+to+theme+creation

Does this help?

ianwid 09-02-2015 01:59 AM

Re: Removing a Module Template
 
Thankyou for the answer, that sounds perfect,


All times are GMT -8. The time now is 03:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.