WorkingOnClouds
Forum Replies Created
-
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?Ok, thanks for the repsonse ??
I will tell my client.Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?oh, my wrong.
Sorry, for the misunderstanding.
Is there any other solution?Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?No problem!
Maybe i`m not that good in coding, but for me its not working.In functions.php i pasted this, just before the last ?> :
if function free_shipping_checks($shipfree,$total) { global $wpdb; $country_code=$_POST['ship_country']; $country_table=$wpdb->prefix.'eshop_countries'; $ship_zone = $wpdb->get_var("SELECT zone FROM $country_table WHERE code='$country_code' limit 1"); // Netherlands is zone 1. if (($ship_zone == 1) && ($total >= 75)) { return true; } // UK/Europe is zone 2. /*if (($ship_zone == 2) && ($total >= 100)) { return true; }*/ return $shipfree; }
In cart-functions.php i pasted this:
// Check shipping country for free shipping - 60 for Ireland (zone 1) and 100 for UK/Europe (zone 2). add_filter('eshop_is_shipfree', free_shipping_checks, 10, 2); if (!function_exists('is_shipfree')) { function is_shipfree($total){ global $blog_id,$eshopoptions; $shipfree = false; $amt=$eshopoptions['discount_shipping']; if(isset($_SESSION['eshop_discount'.$blog_id]) && eshop_discount_codes_check()){ $chkcode=valid_eshop_discount_code($_SESSION['eshop_discount'.$blog_id]); if($chkcode && apply_eshop_discount_code('shipping')) $shipfree = true; } if($amt!='' && $amt <= $total) $shipfree = true; return apply_filters('eshop_is_shipfree',$shipfree, $total); } }
Am i doing well?
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?Thanks for your quick reply!!!
I will give it a try.Yes, a plugin would be nice. I think useful for lots of people.
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Offer free shipping by country/zone?Hi Daymobrew,
how did you solve this?
I need this for my client too.Where did you paste that code?
I tried to paste it in cart-functions.php
But my shopping cart went blank.Can you help me out?
Regards