Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Getting double Estimate Shipping Cost buttons in cart

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 06-15-2015, 07:36 AM
 
jack68938 jack68938 is offline
 

Advanced Member
  
Join Date: May 2015
Posts: 42
 

Default 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.
__________________
xCart 5.2.16
Reply With Quote
  #12  
Old 06-16-2015, 04:53 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

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
__________________
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
  #13  
Old 06-19-2015, 04:12 AM
 
jack68938 jack68938 is offline
 

Advanced Member
  
Join Date: May 2015
Posts: 42
 

Default 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.
__________________
xCart 5.2.16
Reply With Quote
  #14  
Old 06-19-2015, 04:58 AM
 
jack68938 jack68938 is offline
 

Advanced Member
  
Join Date: May 2015
Posts: 42
 

Default 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
__________________
xCart 5.2.16
Reply With Quote
  #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

The following user thanks tony_sologubov for this useful post:
skit (06-23-2015)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:57 AM.

   

 
X-Cart forums © 2001-2020