Results 1 to 10 of 54

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    Sri_lanka
    Posts
    26
    Plugin Contributions
    0

    Default Re: Changing Weight from Pounds to Kilos

    i am using zencart 1.3.8a.
    i want to use the attribute "weight" field to another code,that is something like item code which includes numbers and letters.how can this done.

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

    Default Re: Changing Weight from Pounds to Kilos

    From the products table the products_weight field and from the products_attributes table the products_attributes_weight field are used all throughout the code and would not make an idea choice of fields to use ...

    What is your ultimate goal that you are trying to accomplish?
    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!

  3. #3
    Join Date
    Feb 2010
    Location
    Sri_lanka
    Posts
    26
    Plugin Contributions
    0

    Default Re: Changing Weight from Pounds to Kilos

    hi,
    without changing weight feild i managed to add new feild called "itemcode" under admin->attributer controller.which is a text feild(FTRTGF145).its adding to database corectly in insert and update .now i wont to display that item code in the web like attribute price......

    any idea....
    Last edited by Dilani_Ruwanmali; 23 Apr 2010 at 10:31 AM.

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

    Default Re: Changing Weight from Pounds to Kilos

    What is the name of the table and the field that you added?

    Where are you trying to display the data that is in this field ... "in the web" is a little too vague for me ...
    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!

  5. #5
    Join Date
    Feb 2010
    Location
    Sri_lanka
    Posts
    26
    Plugin Contributions
    0

    Default Re: Changing Weight from Pounds to Kilos

    ajah,
    table: product attributes
    feild:add a new feild call item_code

    like attribute prce and weight,it shoud disply
    eg:
    plz choose the metress
    * double layer mettress($253)(itemcode).
    *thrible layer ($350)(itemcode)
    item code should be there.
    i have tried to use weight feild without doing any changes ,just type item code inthe weight.but it wont display on the web until it starts with numeric.if i typed something like GHFH123 it will saved in the data base but not showing up.if i type the code 1FGHDGH132 it will shown up.by doing substr(1fgdhgfh12) its possible to display the correct code in the web.but the database and enetering value carrying numeric in front......

    any idea
    thanks for the quick responce.

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

    Default Re: Changing Weight from Pounds to Kilos

    Change in the file:
    /includes/modules/attributes.php

    around line 164 to read:
    Code:
                        $products_options_display_price .= $price_onetime;
                        $products_options_display_price .= $products_options->fields['item_code'];
    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!

  7. #7
    Join Date
    Feb 2010
    Location
    Sri_lanka
    Posts
    26
    Plugin Contributions
    0

    Default Re: Changing Weight from Pounds to Kilos

    yepiiiiiiiiiii it works......................millian thanaks ajeh.................................

  8. #8
    Join Date
    Feb 2010
    Location
    Sri_lanka
    Posts
    26
    Plugin Contributions
    0

    Default Re: Changing Weight from Pounds to Kilos

    is there any way to display the item code on shoping cart page and orderdetails page

 

 

Similar Threads

  1. Changing weight from pounds to grams & kgs
    By Jasper122 in forum Addon Shipping Modules
    Replies: 6
    Last Post: 23 Aug 2011, 09:29 AM
  2. Change displayed weight from lbs to kilos, or tons, etc?
    By worldmaker in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 1 Jun 2011, 04:58 PM
  3. Weight change from kgs to pounds
    By Dale Dugas in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 19 Dec 2009, 11:28 PM
  4. Display pounds as kilos
    By 8th-heaven in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Jun 2008, 10:01 PM
  5. Display pounds as kilos
    By 8th-heaven in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Jun 2008, 09:19 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