Hi there!
I've very new to Zen Cart, and am currently struggling with what I hoped was a simple thing. I would like to offer free post and packaging within in my post code in the UK (Pre-fix LS29). Can anyone suggest a simple way of doing this?
Hi there!
I've very new to Zen Cart, and am currently struggling with what I hoped was a simple thing. I would like to offer free post and packaging within in my post code in the UK (Pre-fix LS29). Can anyone suggest a simple way of doing this?
You could customize the Free Shipping Options freeoptions by setting the Total >= 0 ...
Then customize the code for:
/includes/modules/shipping/freeoptions.php
by adding the code in RED to it:
Code:// disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false); } // bof: free shipping for 1 zipcode if (!IS_ADMIN_FLAG) { $this->enabled = false; $free_ship_postcodes = array('LS29'); $customer_postcode = $order->delivery['postcode']; $check4digitcode = substr($customer_postcode, 0, 4); $valid_digits = in_array($check4digitcode, $free_ship_postcodes); if ($valid_digits) $this->enabled = true; } // eof: free shipping for 1 zipcode if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREEOPTIONS_ZONE > 0) ) {
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Bookmarks