Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 54
  1. #41
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Weight from Pounds to Kilos

    You need to edit the order.php class file ...
    /includes/classes/order.php

    First follow where the table references for:
    TABLE_PRODUCTS_ATTRIBUTES

    are and add your new field references there ...

    Next follow where the table references for:
    TABLE_ORDERS_PRODUCTS_ATTRIBUTES

    and add your new field references ...

    Then, you need to do the same, similar thing in the Admin order.php class:
    /admin/includes/classes/order.php

    It takes a bit of sorting out, but should help you get this information from the
    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!

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

    Default Re: Changing Weight from Pounds to Kilos

    hi ajah,
    thanks for the instructions.
    i have changed the files you mention already.in checkout page

    Qty. Item Name Total
    1 x President Orthopaedic Divan Guest Bed £249.99

    * add mettress?($450): Yes (item code)


    this display part is from tpl_checkout_split.php
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0 ) {echo '<ul class="cartAttribsList">'; for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
    echo '<li>' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br($order->products[$i]['attributes'][$j]['value']).'</li>';

    i tried to add . $order->products[$i]['attributes'][$j]['itemcode'] . but it wont disply.

    and i want to know from which file the order_attributes inserted to date base.then i can edit it to add the item_code .

    is that ok.....................ohhhhhhhhhhh

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

    Default Re: Changing Weight from Pounds to Kilos

    You have to follow the code in the whole order.php to manage a field that needs to go from the products_attributes table to the orders_products_attributes table ...

    Try a search on:
    prefix

    to see where the fields are used ...

    You have to extract the field from the products_attributes table to add it to the orders_products_attributes table ...

    And while this is a vague search, try a search on:
    $attributes

    to also follow the pattern ...

    Think about what fields/data are currently being stored in both tables ...
    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!

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

    Default Re: Changing Weight from Pounds to Kilos

    order.zip
    please checkthis, i think theres no prob with this.

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

    Default Re: Changing Weight from Pounds to Kilos

    i think before the extraction i want to knoe from where the order products attributes are add to the table.from which file the order_product_attributes table get updated?i mean inserting.....

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

    Default Re: Changing Weight from Pounds to Kilos

    If you have the field added a new field to the products_attributes table and to the orders_products_attributes table ...

    And you want to get the data from the products_attributes table to the orders_products_attributes table during the completion of an Order ...

    You do your work in the:
    /includes/classes/order.php
    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. #47
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Weight from Pounds to Kilos

    What version of Zen Cart are you working in?

    This order.php for the class looks like something from 2005 ...
    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!

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

    Default Re: Changing Weight from Pounds to Kilos

    i am using 1.3.7.1 version.to check whether the order products adding to the attributes table is it necessary the payment to be done???

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

    Default Re: Changing Weight from Pounds to Kilos

    You cannot just mix and match versions of files ...

    You said earlier you were using v1.3.8 ... but you now are using a v1.3.7.1 order.php file ...

    You need to decide if you want the new field that is in the Catalog to show on the Order in the Admin ...

    If you need this information in the Admin on the Order for the Attributes then you need to customize the order.php class file to add the information from the products_attributes table to the orders_products_attributes table ...

    If you do not need this in the Order of the Admin then you don't have to do anything with that field ...
    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. #50
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Weight from Pounds to Kilos

    Also, note that the file:
    tpl_checkout_split.php

    is not part of Zen Cart so you must be using some sort of Add On ... so it makes it very hard to determine what you need help with beyond this ...
    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!

 

 
Page 5 of 6 FirstFirst ... 3456 LastLast

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