Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Attribute Name Text In Bold In Admin

    Hi,
    Currently the attribute option name and the info entered by the customer are the same font/size making it difficult to read and process information, i would appreciate if anyone can help me adjust the styling for the names so that it will be easily distinguished when looking at an order in admin

    TIA

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Attribute Name Text In Bold In Admin

    Would help a little to identify on which page(s) to apply this change.

    The html involved is an opening <b> and closing </b>. And would be prepend and follow the applicable option name/value most likely by being quoted followed by a period or period followed by being quoted.
    Code:
    '<b>' . $optionName . '</b>'
    where $optionName is the variable (whatever it may actually be) that is to be bolded.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Attribute Name Text In Bold In Admin

    Thanks

    Its in orders.php

    So i changed this:
    PHP Code:
    //<!-- Begin Zen Cart v1.5 Modified Core Code //-->
              
    echo '<br /><nobr><small>&nbsp;<i><b> - ' $order->products[$i]['attributes'][$j]['option'] . ': ' nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
    //<!-- End Zen Cart v1.5 Modified Core Code //-->
              
    if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true$order->info['currency'], $order->info['currency_value']) . ')';
              if (
    $order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') echo TEXT_INFO_ATTRIBUTE_FREE;
              echo 
    '</i></b></small></nobr>';
            }
          } 
    The outcome was that both the name and value became bold

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Attribute Name Text In Bold In Admin

    Quote Originally Posted by ShopVille View Post
    Thanks

    Its in orders.php

    So i changed this:
    PHP Code:
    //<!-- Begin Zen Cart v1.5 Modified Core Code //-->
              
    echo '<br /><nobr><small>&nbsp;<i><b> - ' $order->products[$i]['attributes'][$j]['option'] . ': ' nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
    //<!-- End Zen Cart v1.5 Modified Core Code //-->
              
    if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true$order->info['currency'], $order->info['currency_value']) . ')';
              if (
    $order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') echo TEXT_INFO_ATTRIBUTE_FREE;
              echo 
    '</i></b></small></nobr>';
            }
          } 
    The outcome was that both the name and value became bold
    If only want the attribute name to be Bolded, then:
    Code:
    //<!-- Begin Zen Cart v1.5 Modified Core Code //-->
               echo '<br /><nobr><small>&nbsp;<i><b> - ' . $order->products[$i]['attributes'][$j]['option'] . '</b>:   ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
     //<!-- End Zen Cart v1.5 Modified Core Code //-->
               if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
               if ($order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') echo TEXT_INFO_ATTRIBUTE_FREE;
               echo '</i></small></nobr>';   //NOTE CHANGE MADE HERE TO REMOVE </b>  
             }
           }
    If did want the entire line bolded, then the last echo line should have </b> before </i>.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Attribute Name Text In Bold In Admin

    Thanks!

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Attribute Name Text In Bold In Admin

    Quote Originally Posted by ShopVille View Post
    Thanks!
    You did most of the hard work. Welcome and glad that worked for ya'!
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v153 Attribute Name Stuck On Bold Font Weight
    By choochoo in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 6 Oct 2014, 02:54 PM
  2. How to change text color Attribute - Option Name Comment
    By twofair in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Jun 2010, 10:45 AM
  3. Attribute text bold
    By Stormshade in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 29 Jul 2007, 09:43 PM
  4. Bold Option Name in order confirmation emails
    By Salina13 in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 11 Jan 2007, 03:17 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