Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Shipping Weight


ThoroughWeb

Recommended Posts

Posted

Hi folks,

 

I need to remove the (* lbs) from the "what's in my cart" and "shipping confirmation" pages and anywhere else it might show up. We don't need weight to determine shipping costs and therefore all of our products are set up with no weight defined. It looks a bit odd to have (0 lbs) showing up on these pages.

 

If you can point me to where to remove this code, I'd be very grateful.

 

Thanks

Posted

there is no weight unit in osc ms2. The weight value is usually implemented along with a unit only for the shipping modules where the carrier needs the weight unit to return a quote. Other than that is up to your interpretation. So if you assume lbs make sure the shipping module is configured for lbs.

Posted
may i know what value should i put if i want to show the product weight?

Just put it to a value above 1 - the number you choose deternimes in what order the information will display - e.g. if you set 'Display Product Price' to 1 and 'Display Product Weight' to 2, it will show:

 

PRICE, followed by

WEIGHT

 

~Barbara~

Posted
there is no weight unit in osc ms2. The weight value is usually implemented along with a unit only for the shipping modules where the carrier needs the weight unit to return a quote. Other than that is up to your interpretation. So if you assume lbs make sure the shipping module is configured for lbs.

 

i don't know how to explain to you vger.

i have try to open all the php that related to shipping... but i can't even find any "lb" or "lb(s)" word...

i'm so confusing to php page linking...since i am a lightyear to php

 

before this i just learnt asp.net, java, vb, c...

when u come to php... everything is new to me...i have to configure most of the code...

that's why i suspect that the "lb(s)" will be somewhere in php...

but i can't find it...

can you help me...

 

i just show you this print screen is it ok.

for my purpose, i would like to change the lb(s) word to KG...

if it cannot make changes i just want invisible the weight and left the zone rate charges money...

 

help1mm.jpg

 

yours reply would be appreciated

 

smith

****

Hello World! ^.^ I'm a Internet naive. Browse my working profile

Malaysia Web Services - OPerion Website Marketing System

Posted
Just put it to a value above 1 - the number you choose deternimes in what order the information will display - e.g. if you set 'Display Product Price' to 1 and 'Display Product Weight' to 2, it will show:

 

PRICE, followed by

WEIGHT

 

~Barbara~

 

bobsi18, i have try to set the display product value to 1 or 2 or 3...i can't show any thing... evern i put 2500 also get nothing... is it need to restart anything?...

 

but... if i put display product price to 2500...the price location will switch with 'buy now'...

 

i really need to show out the weight for each product to customer... why i can't did it?...

 

smith...

****

Hello World! ^.^ I'm a Internet naive. Browse my working profile

Malaysia Web Services - OPerion Website Marketing System

Posted
i don't know how to explain to you vger.

i have try to open all the php that related to shipping... but i can't even find any "lb" or "lb(s)" word...

 

smith, the reference to "lb(s)" that you're getting is coming from the shipping module's language definition file.

 

For example, includes/languages/english/modules/shipping/zones.php, change

 

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

 

to whatever you like, e.g:-

 

define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'Kg(s)');

Posted
smith, the reference to "lb(s)" that you're getting is coming from the shipping module's language definition file.

 

For example, includes/languages/english/modules/shipping/zones.php, change

 

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

 

to whatever you like, e.g:-

 

define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'Kg(s)');

 

thank you veru much, i have solve it finally...

haihz... me this noobie spent whole to search for it... but can't get anything...

 

Marc, can you simply tell me how do you know that measurement unit code locate in zones.php

i have some programming knowlegde but i'm still lightyear to open source... that's why... i felt i'm so useless in Internet... and open source...

 

no matter how, i should say thank you to you

 

smith

****

Hello World! ^.^ I'm a Internet naive. Browse my working profile

Malaysia Web Services - OPerion Website Marketing System

Posted
Marc, can you simply tell me how do you know that measurement unit code locate in zones.php

 

Fairly simple, really - I just did a search for files containing the term "lb(s)" and it only found that file :)

Posted
bobsi18, i have try to set the display product value to 1 or 2 or 3...i can't show any thing... evern i put 2500 also get nothing... is it need to restart anything?...

 

but... if i put display product price to 2500...the price location will switch with 'buy now'...

 

i really need to show out the weight for each product to customer... why i can't did it?...

 

smith...

Hi smith...

I'm sorry, I don't know what could be the problem - i just tried it again and it works... Maybe someone else knows?

 

~Barbara~

Posted

but how did you search it, do ftp programs provide a search box in their software, could you please tell how did you search files.

Posted
but how did you search it, do ftp programs provide a search box in their software, could you please tell how did you search files.

 

I have a copy of my whole store downloaded to my PC, and did a search there. Windows search sucks for text included in files, I use the search facility in EditPlus (the editor I use for php files) as it's far better.

Posted
where from it can be downloaded? is it free

 

www.editpus.com, it's not free but I think you can get a time limited trial version.

 

There are other good editors available, some free, but I use EditPlus.

Posted

thanks for your suggestion. can you tell me one more thing. the logo that is seen when installing oscommerce by default is linked to the shop (catalog) itself. i want to change it to suppose www.mydomain.com curently my shop name shop.mydomain.com (example) so where is the file from i can change the link, also i want to change the links of the navbar which shows where we currently are, where is file. can you give me some info.

Posted
thanks for your suggestion. can you tell me one more thing. the logo that is seen when installing oscommerce by default is linked to the shop (catalog) itself. i want to change it to suppose www.mydomain.com curently my shop name shop.mydomain.com (example) so where is the file from i can change the link, also i want to change the links of the navbar which shows where we currently are, where is file. can you give me some info.

 

Look in includes/header.php to change these things. The part which shows where you currently are is called the breadcrumb, and I think that's in index.php, and maybe some others.

 

May I suggest using the search on these forums before asking a question, you will usually find that someone else has already asked it and got an answer.

Archived

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

×
×
  • Create New...