开发者 |
HITShipo
hitstacks Shipi aarsiv |
---|---|
更新时间 | 2024年12月16日 19:58 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv3 or later License |
Trusted shipping costs obtained directly from FedEx, with different variants or types of services available. In case your products do not have dimensions or weight, the module allows you to set dimensions and weight of customized products to calculate the shipping costs. Option to add an impact or adjustment to the shipping costs displayed by the carrier before showing it to the customer. Improve the shopping experience by allowing you to show estimated delivery times. Simple configuration focused on obtaining accurate and adjusted shipping costs for your business model. At the moment, no type of contract with the provider is required to make use of this module. No override files are required for proper functionality of the module.Our Guarantees
add_filter('hitstacks_fedex_shipping_cost_conversion','fedex_shipping_cost_conversion',10,1); function fedex_shipping_cost_conversion($ship_cost){ return $ship_cost+1000; }
function fedex_shipping_cost_conversion($ship_cost, $pack_weight = 0, $to_country = '', $rate_code = ''){ $sample_flat_rates = array("GB"=>array( //Use ISO 3166-1 alpha-2 as country code "weight_from" => 10, "weight_upto" => 30, "rate" => 2000, "rate_code" => "INTERNATIONAL_FIRST", //You can add fedex service type here. Get this from Fedex Dev docs - Appendix -> Service Types ), "US"=>array( "weight_from" => 10, "weight_upto" => 30, "rate" => 5000, ), ); if(!empty($to_country) && !empty($sample_flat_rates)){ if(isset($sample_flat_rates[$to_country]) && ($pack_weight >= $sample_flat_rates[$to_country]['weight_from']) && ($pack_weight <= $sample_flat_rates[$to_country]['weight_upto'])){ $flat_rate = $sample_flat_rates[$to_country]['rate']; return $flat_rate; }else{ return $ship_cost; } }else{ return $ship_cost; } } add_filter('hitstacks_fedex_shipping_cost_conversion','fedex_shipping_cost_conversion',10,4);
add_filter('hitshipo_fedex_default_rate_service', 'hitshipo_fedex_default_rate_service_fun', 10, 3); function hitshipo_fedex_default_rate_service_fun($default="no", $service_code="", $dest_country=""){ if(($dest_country=="CA") && ($service_code=="FEDEX_INTERNATIONAL_PRIORITY")){ $default = "yes"; } return $default; }(Note: Flat rate filter example code will set flat rate for all fedex carriers. Have to add code to check and alter rate for specific carrier. While copy paste the code from worpress plugin page may throw error "Undefined constant". It can be fixed by replacing backtick (`) to apostrophe (') inside add_filter()) About FedEx FedEx Corporation is an American multinational courier delivery services company headquartered in Memphis, Tennessee. The name "FedEx" is a syllabic abbreviation of the name of the company's original air division, Federal Express, which was used from 1973 until 2000. About Shipi We are Web Development Company in France. We are planning for High Quality WordPress, Woocommerce, Edd Downloads Plugins. We are launched on 4th Nov 2018. What a2Z Plugins Group Tell to Customers?
"Make Your Shop With Smile"
[Added] Given new options to tracking API details.4.7.10, 4.7.11
[Added] New currency added.4.7.9
[clear] New Wordpress version tested.4.7.8
[clear] Removed some unusual fields now.4.7.7
[Imporvement] Handled virtual products have to be skipped.4.7.6
[Bug Fix] currency conversion issue solved. now this will take a order currecy and convert to the fedex currency.4.7.5
[New] If company name is not found, then we sent full name as company name. Previouslly, we sent the first name alone.4.7.4
[New] Handled the discount as handling cost.4.7.3
[Bug Fix] Order total is change while invoice.4.7.2
[New] Improvement on Shipping label generation UI.4.7.1
[New] ship price and Order product info fetching ability improved.4.7.0
[New] Tracking UI Modified