X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Getting double Estimate Shipping Cost buttons in cart (https://forum.x-cart.com/showthread.php?t=72222)

jack68938 06-15-2015 07:36 AM

Re: Getting double Estimate Shipping Cost buttons in cart
 
I haven't changed anything on the shipping estimate shipping dialog. I found a temporary fix by removing the code in the file

var/run/skins/modules//RedSqui/GiftCertificates/Parts/shopping.cart.panel.box.tpl.php

When i removed this code, the shipping estimate shows correctly.

tony_sologubov 06-16-2015 04:53 AM

Re: Getting double Estimate Shipping Cost buttons in cart
 
Good, but this is probably not the best solution.

Could you please let me know whether you removed the redundant code
Code:

@ListChild (list="layout.main.center", weight="100")

as was suggested before?

Thank you.

Tony

jack68938 06-19-2015 04:12 AM

Re: Getting double Estimate Shipping Cost buttons in cart
 
Thanks for the help so far, I removed that line from

main.center.left.tpl
main.center.right.tpl
main.center.center.tpl
main.center.tpl

and the problem still exists.

jack68938 06-19-2015 04:58 AM

Re: Getting double Estimate Shipping Cost buttons in cart
 
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

tony_sologubov 06-23-2015 06:08 AM

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



All times are GMT -8. The time now is 05:01 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.