Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Removing a Module Template

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-01-2015, 05:59 AM
 
ianwid ianwid is offline
 

Newbie
  
Join Date: Dec 2012
Posts: 6
 

Default 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
Reply With Quote
  #2  
Old 09-01-2015, 07:48 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
ianwid (09-02-2015)
  #3  
Old 09-02-2015, 01:59 AM
 
ianwid ianwid is offline
 

Newbie
  
Join Date: Dec 2012
Posts: 6
 

Default Re: Removing a Module Template

Thankyou for the answer, that sounds perfect,
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:46 AM.

   

 
X-Cart forums © 2001-2020