Page 12 of 12 FirstFirst ... 2101112
Results 111 to 118 of 118
  1. #111
    Join Date
    Apr 2006
    Location
    Midland TX
    Posts
    428
    Plugin Contributions
    0

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    Quote Originally Posted by frank18 View Post
    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).
    I think the ZenCart Core Gods should ask you if they could replace the original with your plugin that is now a very useful plugin. Thank goodness we have started to moved from the green-cart to a very professional looking responsive shopping cart. Just my two cents.

  2. #112
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    @Ezorb

    Larry, if you need to get this working, open includes/modules/shipping_estimator.php and find (around line 139):

    PHP Code:
      $shipping_modules = new shipping
      
    $quotes $shipping_modules->quote(); 
    now BACKUP!

    Change that to

    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(); 
    I tested this and it works fine on the shopping cart page.

    Cheers / Frank

  3. #113
    Join Date
    Apr 2006
    Location
    Midland TX
    Posts
    428
    Plugin Contributions
    0

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    Quote Originally Posted by frank18 View Post
    @Ezorb

    Larry, if you need to get this working, open includes/modules/shipping_estimator.php and find (around line 139):

    PHP Code:
      $shipping_modules = new shipping
      
    $quotes $shipping_modules->quote(); 
    now BACKUP!

    Change that to

    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(); 
    I tested this and it works fine on the shopping cart page.

    Cheers / Frank
    Works Great Frank. Thank you very much for taking the time.

    To all installing Franks fix don't forget to install in My Custom Template folder.

    Larry

  4. #114
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    Quote Originally Posted by EZorb View Post
    Works Great Frank. Thank you very much for taking the time.

    To all installing Franks fix don't forget to install in My Custom Template folder.

    Larry
    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.

  5. #115
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    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.

  6. #116
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    PDP 1.5.0 is now available for download from https://www.zen-cart.com/downloads.php?do=file&id=1702

  7. #117
    Join Date
    Jul 2019
    Location
    Florida
    Posts
    13
    Plugin Contributions
    0

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    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.

  8. #118
    Join Date
    Jun 2007
    Location
    Australia
    Posts
    60
    Plugin Contributions
    0

    Default Re: Product Delivery by Postcode (PDP) - [Support]

    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.

 

 
Page 12 of 12 FirstFirst ... 2101112

Similar Threads

  1. Order Delivery Date Support Thread
    By mrmeech in forum Managing Customers and Orders
    Replies: 534
    Last Post: 16 Jul 2021, 12:36 AM
  2. v151 Store Pickup by Delivery Postcode
    By frank18 in forum Addon Shipping Modules
    Replies: 5
    Last Post: 24 Jun 2013, 10:27 AM
  3. v150 Delivery Charge by Australian Postcode
    By melbflor in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 7 Apr 2012, 07:43 AM
  4. Delivery postcode
    By evil turinp in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 8 Nov 2010, 08:26 PM
  5. Wanted - Local Delivery by Postcode
    By Ryk in forum Addon Shipping Modules
    Replies: 18
    Last Post: 19 May 2010, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR