Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zone rates - wrong formula?


JorgeTeixeira

Recommended Posts

Hello.

 

I am trying to program "zone rates" module for some couple of days and I am facing some issues.

 

At first, I thought it was strange that if I set, for example, 50:1 200:4, for that unit range, the system would charge the double ($2, $8) everytime.

 

Now I realize that it is working by ranges, but some sort of correlation inside of ranges (sorry, but I can't describe it better). For instance, taking the previous example, if I had a product of 150 units, the system charges $3!!! (50 x 3).

 

Anyone had this problem?

 

I didn't make any change in this files, except the shipping module where I changed to "3" - I want to use 3 different zones.

 

Thanks

Link to comment
Share on other sites

check again how the zone rates should look are you maybe missing a comma there

 

Example

 

Geo Zone 1 Shipping Table 1

01:3.00,50:3.00,100:3.0,101:3.75,151:5.00, etc ......1500:45.00

Regards

Joli

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

No, burt is referring to

 

admin > Configuration > Shipping/Packaging > Enter the Maximum Package Weight you will ship

 

Just for a test, change the '50' to something astronomic like 999999. Your 110 kg order is being split over 3 packages, because

 

100 < 110 < 150

 

And because of your '50:0.60' the charge is $0.60 each, which is where the $1.80 comes from.

Link to comment
Share on other sites

Chris, you are the boss! :D

 

I can't believe how much time I spent just because of that setting.

 

 

I did a quick test now and everything looks great. I will make a few more tests later, but it looks fine now! :)

 

Thanks everyone! :thumbsup:

Link to comment
Share on other sites

Now the module is working fine. o:)

 

Two last questions about it... when a costumer checkouts and choose the shipping method he sees "zone rate" and below "XPTO LB(s)".

 

I would like to know where can I change both names. Is it on the languages files in:

 

- define('MODULE_SHIPPING_ZONES_TEXT_TITLE', 'Zone Rates');

 

- define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)');

 

If so, can I change without problem to "registered mail" and "Kg" without any problem?

Link to comment
Share on other sites

Actually, I still have one more question! :D

 

After selecting the shipping more, there is the following message and the price.

 

Shipping to AD : 40.5 g(s) €1.20

 

Where can I change the color of the font and the background?

 

I am not finding anything about this part in the css file.

 

Thanks.

Link to comment
Share on other sites

The data is passed out from zones.php, on the version I am looking at the code is on line 142.

 

$shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_ZONES_TEXT_UNITS;

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Have a look in the zones.php file to find the div or other wrapper that can be used to specify which font/background to be used.

 

Then once you know that youcan either edit the relevant section in the css or add new sections.

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...