Forums

Give help. Get help.

  • # January 23, 2018 at 5:56 am

    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

    https://stackoverflow.com/questions/27165576/how-to-add-discount-to-cart-total
    https://www.cloudways.com/blog/woocommerce-discount-cart/

    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)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag