Incorrect value of WC()->cart->get_displayed_subtotal()
-
the product has a percentage discount configured using your discount plugin but
When we are running WC()->cart->get_displayed_subtotal() inside our shipping method calcualaet_shipping() this returns wrong value of the product shipping method calcuate_shipping gets called multiple time and most of the time the subtotal is correct after discount price but on many occasion it consider the original cost of the product
can you tell what function should we use instead of WC()->cart->get_displayed_subtotal() to get correct subtotal cost all the time
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Incorrect value of WC()->cart->get_displayed_subtotal()’ is closed to new replies.