Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I set my oscommerce to acknowledge weight in KG and not lbs?


DABarton

Recommended Posts

Posted

Title says it all really, at the moment my books are costing significantly more in shipping charges than they should and I don't know how to change the weight options so it's in KG instead.

Posted
Title says it all really, at the moment my books are costing significantly more in shipping charges than they should and I don't know how to change the weight options so it's in KG instead.

You may have been set on the wrong foot by the information in the knowledge base (which refers to the version 3, in development) but osC does not know kilograms or pounds. It only knows units of weight. That could be grams, kilograms, pounds, cocoa nuts. It all depends on your shipping method(s). If these can use the weight in cocoa nuts than it will work but if your shipping method(s) needs kilograms you will have to use kilograms for your weights of products (or add code to your shipping method to converse the weight you use in the admin to the weight needed for the shipping method).

Posted
You may have been set on the wrong foot by the information in the knowledge base (which refers to the version 3, in development) but osC does not know kilograms or pounds. It only knows units of weight. That could be grams, kilograms, pounds, cocoa nuts. It all depends on your shipping method(s). If these can use the weight in cocoa nuts than it will work but if your shipping method(s) needs kilograms you will have to use kilograms for your weights of products (or add code to your shipping method to converse the weight you use in the admin to the weight needed for the shipping method).

 

Thanks, but I found out how to sort it now. :)

Posted
Thanks, but I found out how to sort it now. :)

That is what we like to read.

Posted

So do I, but prefer the solution to be posted as well, so people that use google can use the solution as well.

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

Posted
So do I, but prefer the solution to be posted as well, so people that use google can use the solution as well.

 

I found it by googling it and getting directed to a thread in ths forum.

 

Use file manager, go to: /includes/languages/english/modules/shipping/zones.php

 

Change: define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)');

 

to: define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'KG(s)');

 

And if you're going to use KG for your shipping then you need to go to Configuration - Modules - Shipping, install Zone rates and enter the correct information into the shipping table. For the UK it's: 1:2.00,2:3.50,3:5.00,4:6.50,5:8:00;6:9.50,20:11.00

Posted

Nice one Dan

 

You are on my list of posts I will always try to read!!!

 

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

Posted
Nice one Dan

 

You are on my list of posts I will always try to read!!!

 

G

 

Hehe, thanks. Expect irritable posts filled with sarcasm until I figure oscommerce out :P

Posted
I found it by googling it and getting directed to a thread in ths forum.

 

Use file manager, go to: /includes/languages/english/modules/shipping/zones.php

 

Change: define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)');

 

to: define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'KG(s)');

 

And if you're going to use KG for your shipping then you need to go to Configuration - Modules - Shipping, install Zone rates and enter the correct information into the shipping table. For the UK it's: 1:2.00,2:3.50,3:5.00,4:6.50,5:8:00;6:9.50,20:11.00

Using the osc filemanager has to be the riskiest way of editing a file.

 

Better to ftp it to your pc, make a copy, then edit, then ftp the edited file back to where it came from.

Posted
Using the osc filemanager has to be the riskiest way of editing a file.

 

Better to ftp it to your pc, make a copy, then edit, then ftp the edited file back to where it came from.

 

Hmmm... Yeah, that is probably a better option tbh, specially if you're editing something after your shop has gone live.

Posted

For a good beginners overview try

 

http://www.oscommerce.com/forums/index.php?sho...;hl=lindsayanng

 

For how to do things, the first 2 threads in

 

http://www.oscommerce.com/forums/index.php?showforum=1

 

not to mention the knowledgebase on

 

http://www.oscommerce.info/

 

(but that is for the "upcoming" release 3 not current ones)

 

(I deliberately didn't mention google)

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

Archived

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

×
×
  • Create New...