You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Is there a way to add a declared value to the shipping cost of a package? Most of our products are pretty pricey and it's beneficial for both parties to have insurance on them.
Offline
You could likely mod {private}/apps/ecom/ECOM_Ship/ext/fedex.php to get the declared value into the rate submission. I'm not sure what the syntax would be, but FedEx I'm sure has documented it on their site.
Offline
I'm trying to grab the documentation for shipping rates from FedEx and I see two options available- Rates and Rates Available Services. Any idea which of the two I should be looking at?
Offline
Here's a custom script that uses FedEx and adds $10 to every service:
<?php $info = $this->globals('ecom.customship'); $custom = array(); $upcharge = 10; $delinfo = array('stateprov' => $info['stateprov'], 'country' => $info['country'], 'postalcode' => $info['postalcode'], 'rescom' => $info['rescom'], 'shipstateprov' => $info['shipstateprov'], 'shipcountry' => $info['shipcountry'], 'shipzip' => $info['shipzip'], 'shipmethods' => 'FEDEX', 'shiptype' => 'R'); $result = $this->include_namespace('ecom','shiprealtime',array('delinfo' => $delinfo, 'packages' => $info['packages'])); foreach ($result as $num => $service) { $custom[$service['name']] = $service['amount'] + $upcharge; } // End of foreach statement. $this->globals('ecom.customship_response',$custom); ?>
Offline
Correct. Set this up as a custom shipping method, assign all products to use custom shipping and select the new script as a custom shipping script, then test after deleting all items from your cart and adding items with the new parameters.
Offline
Hmm tried it again and it's still giving me the default $40 amount I set for when the shipping doesn't calculate correctly.
I have the shipping method set to that on two of the products (it was quicker than popping the entire prod table into excel and mass-changing it) and neither one is calculating at all. Just defaulting to $40.
Cleared my shopping cart and all that.
Offline
Have you set up your FedEx connection? Are you sure it's accurate and working? Ie. - test using FedEx as a realtime method without the custom shipping script.
Offline
Please open a ticket here with a reference to this forum post and I'll take a look at it:
https://kryptronic.com/cms-dynform/TECHTICKET.html
Offline
The Fedex upcharge script in the 8/13/13 post works for me.
Can you tell me how to modify it so that, instead of adding a set amount ($10 in your example), it adds a certain percentage of the product value, for example 2% of the item subtotal?
TIA,
Nathan
Offline