Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Location
    Israel
    Posts
    23
    Plugin Contributions
    0

    bug Custom domsetic flat rate shipping not picked up while ordering

    Hello,

    I've duplicated the default flat shipping module to offer cheaper domestic flat rate shipping, only in my domestic zone.

    All works fine, except that when a customer picks the radio button for my domestic_flat module (e.g picks in the store front "flat rate domestic shipping" on checkout_shipping page) - they arrive to the next page, checkout_payment, with the worldwide flat rate selected!

    This makes customers unable to select the domestic_flat shipping module option, so I am forced to use storepickup for that as a workaround, but than storepickup is not offered as the default in the shipping estimator even if it's the cheapest... (by design, so I understand).

    I am positively sure I wrote the domestic shipping module fine, as well as configured it. No debug messages are in the cache dir.

    Where can I look to understand the logic, why a shipping option other then the one selected in the storefront in applied ?

    I'm on Zen Cart 1.3.8a, PHP Version 5.2.8.

    You can try to create an account and simulate it in http://mineralz.biz

    Thanks for any hint!
    Last edited by elibaba; 19 Jan 2010 at 07:38 PM. Reason: typos

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Custom domsetic flat rate shipping not picked up while ordering

    If you took the Flat Rate flat.php shipping module and cloned it for Domestic Rate by copying the files:
    /includes/modules/shipping/flat.php
    /includes/languages/english/modules/shipping/flat.php

    to the files:
    /includes/modules/shipping/domestic_flat.php
    /includes/languages/english/modules/shipping/domestic_flat.php

    or to something like:
    /includes/modules/shipping/flat_domestic.php
    /includes/languages/english/modules/shipping/flat_domestic.php

    then you have an error ...

    You really want to use either:
    domesticflat
    flatdomestic

    the _ in the filename and where you changed FLAT to FLAT_DOMESTIC and flat to flat_domestic are causing a conflict ...
    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!]
    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!

  3. #3
    Join Date
    Apr 2009
    Location
    Israel
    Posts
    23
    Plugin Contributions
    0

    Default Re: Custom domsetic flat rate shipping not picked up while ordering

    Really ? the underscores aren't allowed in php file names ?

    I'm checking this right away!

    Thanks

  4. #4
    Join Date
    Apr 2009
    Location
    Israel
    Posts
    23
    Plugin Contributions
    0

    Default Re: Custom domsetic flat rate shipping not picked up while ordering

    Worked like a charm! you're great!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Custom domsetic flat rate shipping not picked up while ordering

    Underscores are fine in php filenames ... the problem is in tihs particular instance of the way the classes are written that the functions etc. will fail on the modules if you clone one such as flat.php to make flat_something.php the flat and flat_something will conflcked in one area or another in the module and make some pretty weird things happen ...
    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!]
    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!

 

 

Similar Threads

  1. v139d How Can I Set One Item to Use Flat Rate Shipping While The Others Don't?
    By Fretty in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 22 Apr 2014, 04:19 PM
  2. v139d Flat rate shipping for one item only, while the rest are variable. Is this possible?
    By Fretty in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 30 Mar 2012, 02:46 PM
  3. Custom UPS flat rate expedited shipping options
    By nextlevel05 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 24 Sep 2010, 08:47 PM
  4. Custom Shipping and Flat Rate Issues
    By gotalkaboutit in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 3 Jul 2008, 07:00 PM
  5. Need Help W/ Applying Certain Shipping Methods To Certain Items While Using Flat Rate
    By SennaNight in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jun 2008, 04:52 AM

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