Plugin Directory

Changeset 863949


Ignore:
Timestamp:
02/24/2014 10:00:35 AM (12 years ago)
Author:
Shipster
Message:

change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • baggage-freight/trunk/class-wc-baggagefreight.php

    r861591 r863949  
    224224        {
    225225          $row_dimension = mysql_fetch_assoc($res_dimension);
    226           $d_Height = $row_dimension["height"];
     226          $d_height = $row_dimension["height"];
    227227          $d_width  = $row_dimension["width"];
    228228          $d_length = $row_dimension["length"];
     
    230230        else
    231231        {
    232           $d_Height = "10";
     232          $d_height = "10";
    233233          $d_width = "10";
    234234          $d_length = "10"; 
     
    283283           if($package_type=="1")
    284284           {
    285               $W = get_post_meta($product_id, '_weight', true);
    286               $L = get_post_meta($product_id, '_length', true);
    287               $Wi = get_post_meta($product_id, '_width', true);
    288               $H = get_post_meta($product_id, '_height', true);
     285              $W = trim(get_post_meta($product_id, '_weight', true));
     286              $L = trim(get_post_meta($product_id, '_length', true));
     287              $Wi = trim(get_post_meta($product_id, '_width', true));
     288              $H = trim(get_post_meta($product_id, '_height', true));
    289289           }
    290290           else
Note: See TracChangeset for help on using the changeset viewer.