Author Topic: Items Weight  (Read 2083 times)

0 Members and 1 Guest are viewing this topic.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Items Weight
« Reply #8 on: September 08, 2008, 12:44:22 PM »
In a case like this, where weight may be used by both the shipping and product display codes, I would rely on a single setting in the master language file.

David

timoz

  • Newbie
  • *
  • Offline Offline
  • Posts: 12
  • Karma: 0
  • TiMoz on a hot day
    • View Profile
    • SabayaStyle.com e-shop
Re: Items Weight
« Reply #7 on: September 07, 2008, 07:19:32 PM »
Thanks David in advance,

But where should we find it?

And where is the right code to be changed in a right way in your opinion?

You are one of the experts if not the most, your advisory is always needed.

 
Tamer Ragheb
TiMoz............................
Consider the environment. Please don't print unless you really need to.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Items Weight
« Reply #6 on: September 07, 2008, 12:51:41 PM »
This is, in my opinion, another case of developer illogic creating conflicts in the code without need.

As there is no weight unit measurement class in MS 2.2 or CRE Loaded, there can be ONLY one weight unit used in the cart without setting yourself or your client up for some very interesting and obscure shipping problems later on.

So - there should, ideally, be only ONE place for the weight units to be defined anywhere in the cart.

That said, it's also less labor, and wasted time is wasted money.

David

timoz

  • Newbie
  • *
  • Offline Offline
  • Posts: 12
  • Karma: 0
  • TiMoz on a hot day
    • View Profile
    • SabayaStyle.com e-shop
Re: Items Weight
« Reply #5 on: September 06, 2008, 04:50:59 PM »
Maybe due to version difference I couldn't find the code where you mentioned

BUT ... I found this code in this file:
shipping_estimator.php line 27 & 28 under includes/languages/english/modules/

Quote
  define('SHIPPING_METHOD_WEIGHT','Weight:');
  define('SHIPPING_METHOD_WEIGHT_UNIT','lbs');

I changed line 28 to be: 
Quote
  define('SHIPPING_METHOD_WEIGHT_UNIT','Kgms');
:D  ;D

Thank you Mark, your hint was great   ;)


Tamer Ragheb
TiMoz............................
Consider the environment. Please don't print unless you really need to.

CypherUK

  • Newbie
  • *
  • Offline Offline
  • Posts: 41
  • Karma: 2
    • View Profile
Re: Items Weight
« Reply #4 on: September 05, 2008, 11:27:21 AM »
For the Cart showing lbs, as david mentioned, Have a look in your includes/languages/english.php file.

around line 736 and you should see 2 lines as follows:

Quote
define('TEXT_CART_WEIGHT', ' lb ');
define('TEXT_CART_WEIGHTS', ' lbs ');

Changes these to:

Quote
define('TEXT_CART_WEIGHT', ' kg');
define('TEXT_CART_WEIGHTS', ' kgs ');

Upload your changes and that should solve your issue. Remember to make a back up of the original file first.

Mark
Mark :)

--------------------------------------

timoz

  • Newbie
  • *
  • Offline Offline
  • Posts: 12
  • Karma: 0
  • TiMoz on a hot day
    • View Profile
    • SabayaStyle.com e-shop
Re: Items Weight
« Reply #3 on: September 04, 2008, 04:31:40 PM »
I am trying to find the code but still failing heheh sometimes i feel that my IT abilities are fading to black.
However I will keep searching and tell you what i found!
 ;D  ;D
 
Tamer Ragheb
TiMoz............................
Consider the environment. Please don't print unless you really need to.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Items Weight
« Reply #2 on: August 14, 2008, 08:18:15 AM »
I would expect to find this in the master language file, as the weight label is not used in just the checkout process, but at times in product displays.

Should that fail to be the case, your best bet is always to look for a language file which has the same basename as the file generating the content you are looking at.  (much easier to determine if you don't use any URL modifiers btw).

David

timoz

  • Newbie
  • *
  • Offline Offline
  • Posts: 12
  • Karma: 0
  • TiMoz on a hot day
    • View Profile
    • SabayaStyle.com e-shop
Items Weight
« Reply #1 on: August 12, 2008, 03:06:32 PM »
Hi...  :)
* With every item information, weight is shown as a number without displaying any weight symbol beside it;
* on check out process the cart shows the weight of the products using the lbs..

I want to show "Kgms" beside the weight on each page, and, instead of "lbs" that is shown on check out. Where can i edit this in the cart php files?  ???
Tamer Ragheb
TiMoz............................
Consider the environment. Please don't print unless you really need to.