[QUOTE=frank18;1260614]Assuming your minimum order value is $100
In the file includes/modules/shipping/localdelivery.php
insert
right after this linePHP Code:
// bof: show local delivery when cart total is $100 or more
if (!IS_ADMIN_FLAG) {
if ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() > 100) {
$this->enabled = true;
}
}
// eof: show local delivery when cart total is $100 or more
PHP Code:
$this->enabled = ((MODULE_SHIPPING_LOCALDELIVERY_STATUS == 'True') ? true : false);
Would there be a reason that this would not work in Version 1.5.5e. It is a clean install with just a couple plug ins added. The Local Delivery and Free Shipping work just as advertised, I am just trying to limit when Local delivery is available as an option. I pasted the code in just as described in this post and set the $ value to 250 the same as my free shipping option, but the local delivery option still shows up in delivery options no matter what the $ value of the order is.
Any help would be appreciated,
Thanks
I have my Free shipping option set at >=250 , I would also like to set the "Local Delivery" option to only be available for specific orders >=250. The local delivery is showing as an option for any order placed within my accepted local postal codes. It is working as designed, I am just trying to make it less available.
If you don't want localdelivery to show when the total in your cart is below a set amount then use this
That should do the trick for you.PHP Code:
// bof: hide local delivery when cart total is less than $250
if (!IS_ADMIN_FLAG) {
if ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() < 250) {
$this->enabled = false;
}
}
// eof: hide local delivery when cart total is less than $250
If you are logged in as a customer "Store Pickup" will show on "Your Shopping Cart Contents" page when customer Postcode is NOT allowed.
Have Local delivery set to... False, not using
Have Store Pickup Shipping set to... True
Pickup Locations ...Walk In
Postcodes Allowed ...79701,79703,79704,79705,79706,79707,79713,79714,79720,79739,79741,79756,79759 ,79761,79762,79763,79764,79765,79766,79776,79777,79778,79782
Shipping Cost... 1.80
Tax Class --none--
Tax Basis... Shipping
Shipping Zone --none--
Sort Order... 0
Is "Store Pickup" supposed to show as available on "Your Shopping Cart Contents" page when you are logged in as a customer and customer is outside the pickup area?
My shopping cart TEXAS is showing "Store Pickup (Walk In)" available for customer in AB Canada.
Once you click on the "Checkout Page" "Store Pickup (Walk In)" is not available as it should be.
Does anyone know how to fix?
Last edited by EZorb; 9 Sep 2017 at 01:46 AM.
The shipping estimator page has been left unchanged, so, yes it will show there even if an address way outside the defined local delivery (store pickup) range is selected in the dropdown.
If that is an issue, you would need to hack into a ZC core file, namely includes/modules/shipping_estimator.php .
It just makes your Plugin look a little strange to offer Store Pick when customer is too far away to pick up. Shouldn't the core be changed permanently? Didn't the original plugin also do this?
Anyway it does not cause this problem on the Checkout page, thank you for that.
Bookmarks