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?