@Ezorb
Larry, if you need to get this working, open includes/modules/shipping_estimator.php and find (around line 139):
now BACKUP!PHP Code:
$shipping_modules = new shipping;
$quotes = $shipping_modules->quote();
Change that to
I tested this and it works fine on the shopping cart page.PHP Code:
$shipping_modules = new shipping;
// bof show/hide Store Pickup or Local Delivery Only module (PDP) -- frank18 20170909
$check_delivery_postcode = $order->delivery['postcode'];
// shorten UK / Canada postcodes to use first part only
$check_delivery_postcode = zen_get_UKPostcodeFirstPart($check_delivery_postcode);
// now check db for allowed postcodes and enable / disable relevant shipping modules
if (!in_array($check_delivery_postcode,explode(",", MODULE_SHIPPING_LOCALDELIVERY_POSTCODE))) {
$localdelivery = false;
}
if (!in_array($check_delivery_postcode,explode(",", MODULE_SHIPPING_STOREPICKUP_POSTCODE))) {
$storepickup = false;
}
// eof show/hide Store Pickup or Local Delivery Only module (PDP) -- frank18 20170909
$quotes = $shipping_modules->quote();
Cheers / Frank
Thanks Larry, forgot to mention that.
So, to clarify, open includes/modules/shipping_estimator.php, make the changes as per above and save the modified file to includes/modules/YOUR_TEMPLATE/shipping_estimator.php
This way you override the core file without making changes to that core file.
I have submitted version 1.5.0 for approval. It contains the changes suggested in posts #112 and #114 of this thread. Also removed the manual sql install file and added its content to includes/modules/shipping/localdelivery.php.
PDP 1.5.0 is now available for download from https://www.zen-cart.com/downloads.php?do=file&id=1702
Is this module dead?
I have downloaded it and it says that it is built around a module called "Local Delivery" which MUST be installed for it to work, but I can't find a "Local Delivery" module anywhere and the last post in this support thread was almost two years ago.
If this module can no longer be made to work because the dependency cannot be satisfied, then is there anything in the current version or currently working modules that would give the capability of "Local Delivery" and NOT "Shipping"? My business is a cottage-food business and is not allowed to ship, but IS allowed to deliver, so I cannot use any shipping options the way things are currently configured.
Thanks.
Hi, I have just done a fresh install of zc version 1.5.6 and using the new bootstrap template. Does anyone know if this PDP works on this version?
I really need to set specific products to local delivery as seperate shipping rates applies to these products that are local delivery only. Any help appreciated.
Bookmarks