Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nelsonamaya

    (@nelsonamaya)

    The taxes are also wrong in the suborders, here’s another example:

    This is the main order: https://cl.ly/5203889386ba
    And this is a suborder: https://cl.ly/b3de3ef5d1a8

    As you can see, the discount is $25 (but should be $12.5), and the MI Sales Tax is $2.70 (but should be $1.35).

    In conclusion, just those 2 values are the ones who would need to be fixed.

    Thank you!

    Thread Starter nelsonamaya

    (@nelsonamaya)

    I managed to fix it with the ‘_cart_discount’ suborder meta value, this way:

    public function after_insert_suborder( $suborder_id, $main_order_id ) {
    update_post_meta( $suborder_id, ‘_cart_discount’, $my_custom_discount );
    }

    add_action( ‘mofwc_after_insert_suborder’, ‘after_insert_suborder’, 10, 2 );

    Hello @nelsonamaya,
    Sorry for the long delay.

    Are you using the free or pro version?
    The free version doesn’t sync the main order with suborders. Probably that’s the reason.

    Or maybe I didn’t understand exactly the question.

    Thread Starter nelsonamaya

    (@nelsonamaya)

    Hi @karzin,

    I’m using the pro version.

    Thanks.

    Hi,
    I think I got it now.

    Please try version 1.2.2 I just released

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Discount not working fine on suborders’ is closed to new replies.