Jump to content


This topic is now archived and is closed to further replies.


Need some help to Create a WooCommerce discount Cart

Recommended Posts


I have almost completed the initial steps to create a WooCommerce discount cart following several tutorials and forums including 




I want to know that this code gives me a total price with discount as well ? The code is giving me error and i don't know where i am wrong. Need help to rectify this code.


  if ( $cw_discount > 0 ) {
        echo '<tr class="cart-discount">
    <th>. __( 'Secure', `woocommerce`) .'</th>
    <td data-title=" '. __( 'Secure', 'woocommerce' ) .' ">'
            . wc_price( $cw_discount + $woocommerce->cart->discount_cart ) .'</td>

Share this post

Link to post
Share on other sites