Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Don't display weight


jen_jl

Recommended Posts

Posted

How do I disable showing the weight in two areas?

 

1. In the shipping module at checkout.

 

Shipping Method

United Parcel Service (1 x 33.55lbs)

Ground $14.04

 

2. In the buyer's email confirmation

 

United Parcel Service (1 x 13.2lbs) (Ground): $11.96

 

I would prefer it to say: United Parcel Service (Ground): $11.96

 

 

Does anyone have any ideas?

 

Thanks

Posted

look around your php files for shipping, the actual weight 'lbs' is just text, I found the text (cant remember where) and changed it to 'items'. Then in the admin pannel, go to shipping and set tare weight to 0, remove any percentage from heavy orders and set each products weight to 1 - this way you display how many items are going, instead of the weight - using the same weight calculator.

 

g

Posted

i had to do a similar thing for zones. i did the following:

 

catalog>incudes>languages>modules>shipping

 

opened zones.php and changes this under MODULE_SHIPPIN_ZONES_UNITS' (4th line down in code.).

 

Released under the GNU General Public License

*/

 

define('MODULE_SHIPPING_ZONES_TEXT_TITLE', '');

define('MODULE_SHIPPING_ZONES_TEXT_DESCRIPTION', 'Zone Based Rates');

define('MODULE_SHIPPING_ZONES_TEXT_WAY', 'Shipping to');

define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lbs');

define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No shipping available to the selected country');

define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');

?>

 

and removed the 'lbs' so the code looks like this:

 

Released under the GNU General Public License

*/

 

define('MODULE_SHIPPING_ZONES_TEXT_TITLE', '');

define('MODULE_SHIPPING_ZONES_TEXT_DESCRIPTION', 'Zone Based Rates');

define('MODULE_SHIPPING_ZONES_TEXT_WAY', 'Shipping to');

define('MODULE_SHIPPING_ZONES_TEXT_UNITS', '');

define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No shipping available to the selected country');

define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');

?>

 

it removed the 'lbs' notation only. i still get the amount of the weight. working on masking that.

 

hope that helps. i'm a newbie, but learning more everyday.

marty hafner

Posted

Thanks for the responses, but I don't think these are the solutions that I am looking for.

 

I guess I don't understand what gary.duncan is trying to say, because it sounds like all the products weight will be 1lb. I would loose money on shipping that way.

 

What martyjoe posted is almost there, except that change will result in

(1 x 15)(Ground) $12.98

 

I want to completely get rid of the (1x15lbs) or even (1x15)

 

 

 

Does anyone have any other suggestions?

 

Thanks!

 

Jennifer

  • 2 years later...
Posted
I am still looking for a solution to this.....

any ideas?

Thanks!

 

 

edit this line in the zones module in .../includes/shipping as follows:

(comment out after "...ZONES_TEXT_UNITS" and add ";"

 

 

$zones_table = split("[:,]" , $zones_cost);

$size = sizeof($zones_table);

for ($i=0; $i<$size; $i+=2) {

if ($shipping_weight <= $zones_table[$i]) {

$shipping = $zones_table[$i+1];

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

break;

}

}

Archived

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

×
×
  • Create New...