View Single Post
  #15  
Old 06-23-2015, 06:08 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Getting double Estimate Shipping Cost buttons in cart

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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote