Results 1 to 10 of 11

Hybrid View

  1. #1
    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"; ?>

  2. #2
    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 ?

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

    Default Re: Adding the prefix Kilo !

    Look again!!!

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

    Default Re: Adding the prefix Kilo !

    look where?

  5. #5
    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

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

    Default Re: Adding the prefix Kilo !

    Do you mean that part . TEXT_PRODUCT_WEIGHT_UNIT . ?

 

 

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