I would like to know if is it possible to get the value of the current order_id in the function product_id_change. Need I to modify the parameters of the function and send the value of my order_id? Is it possible to get this value directly into the function?
Thanks a lot,
It depends, as you can see on product_id_change you have ids as a parameter, if you have that parameter you can get the order_id of that order_line. But, if you are creating a new order and you call product_id_change you don't have order_id because this doesn't exist on the database. In order to get the order_id you have to save your order.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/13/14, 4:56 PM|
|Seen: 862 times|
|Last updated: 3/16/15, 8:10 AM|