Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Custom domsetic flat rate shipping not picked up while ordering

Custom domsetic flat rate shipping not picked up while ordering

Locked

Views: 774

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Jan 2010, 6:38 PM
#1
elibaba avatar

elibaba

New Zenner

Join Date:
Apr 2009
Location:
Israel
Posts:
23
Plugin Contributions:
0

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!:blink:

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! :blush:

19 Jan 2010, 7:46 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :eek:

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

19 Jan 2010, 9:32 PM
#3
elibaba avatar

elibaba

New Zenner

Join Date:
Apr 2009
Location:
Israel
Posts:
23
Plugin Contributions:
0

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 :cool:

19 Jan 2010, 9:42 PM
#4
elibaba avatar

elibaba

New Zenner

Join Date:
Apr 2009
Location:
Israel
Posts:
23
Plugin Contributions:
0

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

Worked like a charm! you're great!

20 Jan 2010, 2:19 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :smile: