We are saving the Extra Product Options data as order item meta data.
You can retrieve the value using the below function.
wc_get_order_item_meta($item_id, $field_name, true);
We hope this helps.
Thank you!
ThankYou @themehigh
`I take advantage of the prompt response to ask if and how I can perform calculations related to the additional fields I created.
For example I have indicated height and width as values for a product and I need to multiply them in order to have the price of the product calculated on this basis.
The specific case is a window whose price is X per square meter and the customer indicates height and width that I multiply to get the area and that will then be multiplied by the price per square meter.
Example :
Price MQ : 100
Height: 100 cm
Width: 200 cm
Total : [(Height*Width)/100)]*Price MQ]
I hope I have explained myself and thank you
We are a little bit unclear about your exact requirement. Whether the fields(Height and Width) that you would like to create is a field with price or not? Could you please clarify?
Thank you!
are measures on cm needed to calculate an area (Height*Widht)/100
Result must be used to calculate the totale price using the product price
Think to a window on that you have a price for MQ and yu calculate the area of window to have the final price.
Unfortunately, your requirement cannot be achieved using the lite version of our plugin.
Thank you!
Thank you but i’ve not problems to buy the pro version if it solve my request
As per the WordPress forum policy, we can’t answer premium related questions on this forum. Could you please raise a ticket through our website? We hope our technical team will be able to help you.
Thank you!