Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

WooCommerce - Show cart weight

lorro Jun 11th, 2015 (edited) 17 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <table>
  2. <tr class="total weight">
  3. <th><strong><?php _e('Total Weight', 'woocommerce'); ?></strong></th>
  4. <td><strong>
  5. <?php
  6.   $total_weight = $woocommerce->cart->cart_contents_weight;
  7.   $total_weight .= ' '.get_option('woocommerce_weight_unit');
  8.   echo $total_weight;
  9. ?>
  10. </strong></td>
  11. </tr>
  12. </table>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top