Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Apr 2010
    Posts
    59
    Plugin Contributions
    0

    Default Weight Conversions: Moving Kgs to Lbs with english.php

    Hello Zen Community,

    I've seen a few threads in regards to this question already, so let me state what I know so far about this issue.

    Traditionally, to change the text string for weight conversions, one would go to their includes/languages/("templatename")/english.php file.

    In my english.php file, My code reads as the following:

    define('TEXT_PRODUCT_WEIGHT_UNIT','lbs');

    // Shipping
    define('TEXT_SHIPPING_WEIGHT','lbs');
    define('TEXT_SHIPPING_BOXES', 'Boxes');

    From what I understand, that's the correct file and line to edit to move my conversions from Kgs to Lbs.

    Yet, Zen Cart's shipping modules as well as the weight for each item on the site still shows in kilograms.

    What do I need to do to facilitate this transition further? The site is http://www.primevapor.com .

    Thanks for your time and patience!

    Sincerely,

    Jonah Youngblood

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    Yes these are all labels in DEFINE statements, so you just need to find them in the language files. Use the DEVELOPER TOOLKIT in admin >>> tools.

    Search for JUST the string you are looking for. And remember, you change only the define text between the two inverted commas... not the UPPER_CASE_CONSTANTS
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    and oh... You need to make sure you are editing the CORRECT file... If you are using a custom template, then the language file is likely to reside there, and NOT in the core path.

    so...

    /languages/english.php

    ... may already have an override in:

    /languages/YOUR_TEMPLATE/english.php
    20 years a Zencart User

  4. #4
    Join Date
    Apr 2010
    Posts
    59
    Plugin Contributions
    0

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    Thanks for your reply schoolboy.

    What you've stated is exactly what I found in the other threads related to this topic, but it does not work for me. I only have one primary english file. The other templates I've installed use the default english.php. So I'm fairly certain I have the right file. I've also changed the appropriate fields...and I used Dreamweaver the first time and tried it a second with the DEVELOPERS TOOL KIT. Each failed.

    Any other ideas?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    Zen Cart doesn't deal with weight units in any way other than to display the units that you've defined. It's just text.

    So, either you're editing the wrong files or you're using an addon that does things different from the way Zen Cart operates out-of-the-box.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Apr 2010
    Posts
    59
    Plugin Contributions
    0

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    Thanks Dr. Byte,


    Rgr that, Zen Cart alone just reads numbers and not the actual unit of measurement. However, my USPS module does read these items as Kilograms and its hiking up the cost of shipping rates as a result.

    That is telling me that somewhere, something is reading this unit as a Kilogram and not a static number.

    I'm using the default USPS module that comes with ZenCart...

    Any other suggestions or is this tree tapped out?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    So this is really a USPS question?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Apr 2010
    Posts
    59
    Plugin Contributions
    0

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    It could be both, its why I asked in the first place.

    For some reason, my site isn't updating file changes from these few lines on english.php

    I've thoroughly gone over all other files in related directories and I cannot locate any other (english.php), nor can my Developer Tools on Zen.

    Its just as likely to be a Zen problem as it is USPS...so any and all would help.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    The Weight you enter is assumed by USPS and UPS to be pounds ... there are no conversions for this from kg to pounds ...

    Unless you write your own converter ... if you enter in 3 on the weight, then that is 3lbs ...

    Also note there are Shipping/Packaging settings and Maximum Weight is in pounds ... The Tare Rates calculate pounds ...

    You can change the text from lbs to kgs but it is just text ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Apr 2010
    Posts
    59
    Plugin Contributions
    0

    Default Re: Weight Conversions: Moving Kgs to Lbs with english.php

    Thanks Ajeh, let me look into your suggestions and I'll reply back as soon as there's something new to report.

    Jonah

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Changing weight from lbs to kgs
    By mighty midget in forum General Questions
    Replies: 4
    Last Post: 25 Jan 2012, 02:09 AM
  2. weight in Kgs should be Lbs in new store
    By Makoshark in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 24 Apr 2010, 12:15 AM
  3. changing the weight of products from lbs to kgs
    By silkvixen in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 22 Feb 2010, 03:25 AM
  4. Zone Rates Problem with weight lbs to kgs
    By bookwise in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 11 Mar 2009, 04:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg