Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DecomTeam

    (@decomteam)

    Hi @kdpatel this post could help you:
    queation about total/subtotal WC()->cart->subtotal

    plugin/includes/CriteriaAmounts.php from WC()->cart->subtotal to WC()->cart->total

    • This reply was modified 5 years, 3 months ago by DecomTeam.
    Thread Starter kdpatel

    (@kdpatel)

    Thanks for the reply team. I kind of figured out looking at file. Also want to let you know(I am not wordpress/woocommerce expert)

    WC()->cart->subtotal return price with span tag which wasn’t working for me.

    <span class=”woocommerce-Price-amount amount”><span class=”woocommerce-Price-currencySymbol”>$</span> 754.20</span>

    Later end up using WC()->cart->get_cart_contents_total() which is working well for me now. Thanks

    • This reply was modified 5 years, 3 months ago by kdpatel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can gifts conditions be applied to the Sub-Total rather than final end total.’ is closed to new replies.