In that example, we first run the routine of removing template from the view list:
Code:
\XLite\Core\Layout::getInstance()->removeTemplateFromLists('product/details/parts/common.add-button.tpl');
and then we create a new template, which must contain @ListChild directive.
In your case, you are overriding template by custom skin, @ListChild directive must be omitted. See here:
http://kb.x-cart.com/display/XDD/Basic+guide+to+theme+creation
Quote:
Important note: if you override templates that contain @ListChild directives, do not keep this directive in the overriding template. Otherwise X-Cart will include this template twice.
|
Hopefully, it helps.
Tony
Quote:
Originally Posted by jack68938
I am still a bit confused.
Here it says:
I have removed license-related comments, although I kept assignment to view list in place. If we omit @ListChild directive, then X-Cart will not know where to put HTML code produced by this template.
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes
Adding new templates and widgets
|