• Hi WC,

    I have one e-Commerce website built with WP,WC and we have mobile APP also for that site .I am using REST API and given services to mobile app it’s working fine.While creating order from Mobile APP with Single/Multiple products i have given coupon code ,Up to here everything is working fine,and placed the order successfully.

    But when i check the order in admin panel the discount amount is not calculated to individual product with order items due to this Tax amount is calculated on Product Sale price not a discounted price,It’s a problem to generate invoice.

    When i check the functionality public function get_discounted_price( $values, $price, $add_totals = false ) this function is not calling when i place order from Mobile APP ,the function is available in class-wc-cart.php file.

    It’s one of the major problem in Create order API.Please send the suggestions to resolve this issue ASAP.

    I am sending the screenshots of Mobile and Web orders of Order-item and order-item-meta table values . In mobile order each item line_total,subtotal values are same.Please find the attached screenshots.
    https://prnt.sc/gr5z69
    https://prnt.sc/gr5zja

    The page I need help with: [log in to see the link]

  • The topic ‘Individual product discount amount issue while creating order through REST API?’ is closed to new replies.