Skip to main content


The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #265913

    I am trying to create a WooCommerce discount cart and i have almost implemented all of these steps mention in the tutorial. I am just confused in this code. Can anyone let me know.

    I have started creating a WooCommerce discount cart following the several tutorials and forums including

    I am little bit confused in this code and i need someone help here in this code.

    if ( $cw_discount > 0 ) {
    echo ‘

    ‘. __( ‘Secure’, ‘woocommerce’ ) .’ ‘
    . wc_price( $cw_discount + $woocommerce->cart->discount_cart ) .’


    Is this for the total price with the discount as well ? Can we add some percentage of discount here ?

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.