View Single Post
  #1  
Old 07-29-2014, 04:35 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Remove Template From Lists Question

Tony, Everyone,
Hi!

I am seeking to better understand the removeTemplateFromLists function (or do we call that a method?)

I am using it in my module's, and it works for most templates that I try to remove. But one template on the product page: skins/default/en/product/details/parts/attributes_modify/body.tpl will not remove when I use this function(method?).

Here is my code:
Code:
\XLite\Core\Layout::getInstance()->removeTemplateFromLists('product/details/parts/attributes_modify/body.tpl');
And here is a video explaining in better detail:
http://youtu.be/rXSKz2Y1qXc

Please help me understand why this template cannot be removed from lists, and also what the right way to override this template with my module. I want to add a div container around the <ul>.

Thanks!
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote