View Single Post
  #242  
Old 09-26-2007, 09:15 AM
 
jillsybte jillsybte is offline
 

eXpert
  
Join Date: Jun 2006
Location: New York, USA
Posts: 389
 

Default Re: Pre-Login Shipping Calculator

I was looking over the source code of the full cart.php page after the shipping calculator has been utilized. I noticed that the value for the radio button corresponding to the shipping methods not common to all cart items was given a value of "". So I went to the shipping_estimator.tpl and placed the following line:

Quote:
{if $shipping[ship_num].shippingid ne ""}

right after the line:

Quote:
{section name=ship_num loop=$shipping}

Then I entered the closing {/if} tag just before the {sectionelse} tag.

That way, the invalid shipping methods don't even show up. I tested and it works.

Also, this is just my personal preference, but I moved the include shipping_estimator.tpl line in skin1/customer/main/cart.tpl. I placed it after the Fast_Lane_Checkout/cart_subtotal.tpl line instead of before as was stated in the shipping calculator readme file. I was afraid that customers would think the displayed subtotal includes the shipping charges displayed when it really doesn't. Having the subtotal displayed first with the calculated shipping charges below should lessen the chance for confusion.

I hope this helps others having the same problem as I was. Thanks to BCS for making these great mods.

Jill
__________________
X-Cart Gold 4.1.8 (Live)
BCSE Shipping Estimator for FLC Mod
BCSE Shipping Methods per Product Mod
BCSE Customer Review Management Mod
BCSE Catalog Order Form Mod
X-Cart Gold 4.5.2 (Building/Testing)
USA
Reply With Quote