Re: Product Delivery by Postcode (PDP) - [Support]
Quote:
Originally Posted by
ewaite
..... 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. ...
Sorry, don't quite understand what you mean, can you elaborate please.
Re: Product Delivery by Postcode (PDP) - [Support]
[QUOTE=frank18;1260614]Assuming your minimum order value is $100
In the file includes/modules/shipping/localdelivery.php
insert
PHP 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
right after this line
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
Re: Product Delivery by Postcode (PDP) - [Support]
[QUOTE=ewaite;1334955]
Quote:
Originally Posted by
frank18
Assuming your minimum order value is $100
In the file includes/modules/shipping/localdelivery.php
insert
PHP 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
right after this line
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
It will show up if the total in your cart is more than $100. Or - in your case - more than $250.
Re: Product Delivery by Postcode (PDP) - [Support]
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.
Re: Product Delivery by Postcode (PDP) - [Support]
Quote:
Originally Posted by
ewaite
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
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
That should do the trick for you.
Re: Product Delivery by Postcode (PDP) - [Support]
Quote:
Originally Posted by
frank18
If you don't want localdelivery to show when the total in your cart is below a set amount then use this
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
That should do the trick for you.
That fixed it thanks frank18,
I tried changing that to false but I think I left the out the space.
Re: Product Delivery by Postcode (PDP) - [Support]
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?
Re: Product Delivery by Postcode (PDP) - [Support]
Quote:
Originally Posted by
EZorb
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?
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 .
Re: Product Delivery by Postcode (PDP) - [Support]
Quote:
Originally Posted by
frank18
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.
Re: Product Delivery by Postcode (PDP) - [Support]
Quote:
Originally Posted by
EZorb
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.
Could also be done in includes/templates/YOUR_TEMPLATE/templates/tpl_modules_shipping_estimator.php which is not a core file. Need to look into that if/when I get some spare time (scarce these days).