• Resolved cristianciuberea

    (@cristianciuberea)


    HEllo,

    WE have this dilema.

    We sell a product for 10$ and ship the order.

    Then, after a week we raise the price to 15$.

    Now, for the orders for 10$ and that arrive at destination after we have the price 15$ the invoice get for 15$

    We use a custom plugin and i just want to know if there is posible to get the real price from the original order not the price from the product in woocommerce.

    The guy who wrote the plugin said it is not posibile but i think maybe he miss something because if i export orders or just watch at it the price is ok.

    So can you guide me to the right function call or what he need to use for get the price in the order not the price in product?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • well, if you use for example $product->get_price(); then you will see the current price. The solution for this is to read the $order on the basis of the order id, and then the products that contain that order … and the price stored in the order object.

    Thread Starter cristianciuberea

    (@cristianciuberea)

    thank you. i write to our developer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product price in invoice’ is closed to new replies.