![]() |
Making it work with DHL/Airborne + Taxes
I just downloaded the official "FastLane" version of this mod from BCSE and installed it in Xcart 4.1.8 Gold. It seems to work well for U.S. addresses, but I'm still having a couple of issues...
|
Re: Pre-Login Shipping Calculator
There was some discussion in this thread about taxes and non-US postal codes. Another glitch is still the fact that it does not seem to want to pull real-time rates for FedEx when you are using their new integrated method. Rates show fine when logged in, but the shipping calculator won't pull them.
|
Re: Pre-Login Shipping Calculator
I've managed to get the Free X-cart Shipping Estimator for Fastlane Checkout mod to calculate taxes on US orders for a specific state. Simply open /include/shipping_calculator.php
FIND: Code:
$config["General"]["default_zipcode"] = $zipcode_estimate; Code:
$config["General"]["default_state"] = "NY"; Presumably, at least for the time being, US stores only need to calculate tax on orders shipped to the state where the business is physically located, so if your store is in NY, the you simply need to set the default_state variable to "NY" and any zipcodes that are in your NY zone will get taxed, but zipcodes that are outside NY will not calculate taxes. Apparently, the zipcode is not enough to get x-cart to calculate taxes...it actually needs the state too. This will probably cause no end of frustration to international store owners. Also, you might want to add this to your /skin1/mods/Fast_Lane_Checkout/cart_subtotal.tpl file: Code:
{* normally this would only display if we have $config.Taxes.display_taxed_order_totals checked, but this totally screws up tax calculations on discounted products because it causes taxes to be applied before discounts rather than after discounts, so I'm just showing taxes here even if that setting is turned off *} I'm still working on a solution to getting this working with international shipping. If anyone out there has a working solution to DHL/Airborne that will let my users choose just their country and zipcode and get a realtime rate, I will pay a reasonable fee for the code. Meanwhile, I'll be living in my debugger and will update this thread if I find a solution. UPDATE: I was able to get international shipping estimates working with USPS and UPS. DHL is another story since you must supply a valid address to get a rate back from DHL. For anyone that is trying to get this working with DHL, here's some comments I just got from their XMLAPI support that might help: Quote:
I have also discovered that if you enable UPS realtime rates with this mod, it totally messes up the returned rates for USPS and other shippers -- they show up as blank. To fix this problem, I did the following, though I'm not sure if there's any implications on performance or functionality of the UPS realtime rates, but it seems to work for me so far..... OPEN: /xcart/shipping/shipping.php FIND: Code:
if ($config["Shipping"]["realtime_shipping"] == "Y" && $current_carrier == "UPS") { and change to Code:
If you don't comment that out, a bit of invalid SQL is added to queries for non-UPS shipping rates that keeps it from finding non-UPS rates when ithe /shipping/shipping.php file builds the actual $shipping array further down where it says: Code:
$query = "SELECT *, '$intershipper_rate[rate]' AS rate, '$intershipper_rate[warning]' AS warning, $ship_time_column FROM $sql_tbl[shipping] WHERE subcode='$intershipper_rate[methodid]' AND active='Y' $weight_condition ORDER BY orderby"; If anyone understands the implications of my tweaks on the UPS mod, please post info here. |
Re: Pre-Login Shipping Calculator
Hello,
I'm using 4.1.8 Gold (UNIX), and I have installed this mod, here: http://forum.x-cart.com/showpost.php?p=174133&postcount=197 I was wondering, however, if I could get this to work as a pop-up box that will list the available shipping options/prices to the customer, instead of only having this available on the checkout/view cart page. Do any of you have a solution for this? Here's a link to my site, where the calculator is in the category listing: http://www.valhallacomics.com/home.php |
Re: Pre-Login Shipping Calculator
Does someone know how I can take the code:
Code:
{if $not_logged_message eq "1"} and make the entry box come up in a pop-up box intead? |
Re: Pre-Login Shipping Calculator
Quote:
Check out the shipping calculator on http://www.bonobospants.com/store/ . I used the Highslide JS library to do it. You can probably view the source and the Highslide JS documentation and figure it out. If not, feel free to contact me and I will give you a quote to do it for you. |
Re: Pre-Login Shipping Calculator
i can not seem to get this mod to work on 4.1.9 anyone able to?
the mod has no errors, but i do not see the click for zip code |
Re: Pre-Login Shipping Calculator
This mod is excellent. Exactly what I needed, thanks! :mrgreen:
|
Re: Pre-Login Shipping Calculator
This mod works fine for me in 4.1.9, Balinor you can get fedex rates my adding this twice below
just under $ship_mods[] = "DHL"; add if ($fedex_mod == 'FEDEX_direct') $ship_mods[] = $fedex_mod; in the myshipper.php file |
Re: Pre-Login Shipping Calculator
Something funny i noticed is that for logged in customers they do not get the shipping estimate if they decide to update their cart with more products. Although anonymous customers do not have this problem.
Weird |
All times are GMT -8. The time now is 05:18 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.