View Single Post
  #2  
Old 07-29-2014, 05:42 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Remove Template From Lists Question

More Info: The class that assigns this template is XLite\View\Product\AttributeValues

There is a function "getDefaultTemplate" contained in this class, which specifies the template directory to be used.

I have created a class in my module: XLite\Module\Baby\RFQ\View\Product\AttributeValues

with the followng code:
Code:
namespace XLite\Module\Baby\RFQ\View\Product; /** * Product attribute values */ class AttributeValues extends \XLite\View\Product\AttributeValues implements \XLite\Base\IDecorator { /** * Return widget default template * * @return string */ protected function getDefaultTemplate() { return 'modules/Baby/RFQ/product/details/parts/attributes_modify/body.tpl'; } }

I have also created the template "skins/default/en/modules/Baby/RFQ/product/details/parts/attributes_modify/body.tpl"

This appears to be working, X-cart is now using my template. So this resolves the problem, but the question remains. Why does removeTemplateFromLists not work, and is this the correct way to overcome this issue?
__________________
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