Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Adding the prefix Kilo !

    I'm selling prodacts that I want to be purchased in Kilos , So the box next to the prodact name should say 1,2... Kilos and at the end of the checkout procedure customer should see something like that :



    Qty. Item Name Total
    5 x Kilo e.g. metal

    What I have now the same info but without the prefix Kilo after the number of Kilos ! How can I place that there ?

  2. #2
    Join Date
    Jan 2009
    Location
    Ireland
    Posts
    431
    Plugin Contributions
    0

    Default Re: Adding the prefix Kilo !

    the kilo should be a sufix not prefix,
    you will find instructions here:

    https://www.zen-cart.com/tutorials/i...hp?article=204

    i entered kilo in the search of the FAQ

  3. #3
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Adding the prefix Kilo !

    Quote Originally Posted by Donal View Post
    the kilo should be a sufix not prefix,
    you will find instructions here:

    https://www.zen-cart.com/tutorials/i...hp?article=204

    i entered kilo in the search of the FAQ


    Thanks Donal for the correction but my question is how show the kg at the right side of the quantity box not change the lbs to kg?

  4. #4
    Join Date
    Jan 2009
    Location
    Ireland
    Posts
    431
    Plugin Contributions
    0

    Default Re: Adding the prefix Kilo !



    a link? to see what you mean

  5. #5
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Adding the prefix Kilo !

    Quote Originally Posted by Donal View Post


    a link? to see what you mean
    I pointed to the right of the product box where the kg should be located ..
    Attached Images Attached Images  

  6. #6
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Adding the prefix Kilo !

    Like this in tpl_product_info_display.php

    Code:
    <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>

  7. #7
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Adding the prefix Kilo !

    Quote Originally Posted by dw08gm View Post
    Like this in tpl_product_info_display.php

    Code:
    <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
    OK, But I have that line already in my tpl_product_info_display.php! Now how can I display the kg at that location ?

  8. #8
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Adding the prefix Kilo !

    Look again!!!

  9. #9
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Adding the prefix Kilo !

    look where?

  10. #10
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Adding the prefix Kilo !

    The bit that I highlighted in red is what puts the kg, or whatever you have it defined as, after the value.

    So wherever you want to include the defined, just add the bit that I highlighted in red.

    Cheers

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding prefix to database tables
    By RyanKent in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2011, 10:48 PM
  2. Attribute Prefix Price Adding Tax To Non Tax Product
    By Centec2b in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Aug 2009, 10:54 PM
  3. How to remove or add the prefix in subcategory text?
    By ttmb33 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 May 2009, 03:34 AM
  4. How do I Add a Prefix to the Order Number
    By Griff1324 in forum General Questions
    Replies: 2
    Last Post: 12 May 2008, 02:17 AM
  5. Adding order prefix 1.2.5d
    By inlikeflin in forum Managing Customers and Orders
    Replies: 1
    Last Post: 26 Feb 2007, 05:56 AM

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