Where is $order->product created?
Posted: Mon Apr 08, 2024 3:02 pm
For a shipping module, the dimensions of a product (length, width and height) must be used to determine the cardboard box for shipping.
I created the products_length, products_width and products_height fields in the products table.
I found that you can use $order->products in the shipping module, this gets information from the products table, but it doesn't give me products_length, products_width and products_height.
I can't seem to find in the files how and where this information is found. I think that would be what I need to move forward.
Unless there is another way that I haven't thought of...
Thanks in advance.
I created the products_length, products_width and products_height fields in the products table.
I found that you can use $order->products in the shipping module, this gets information from the products table, but it doesn't give me products_length, products_width and products_height.
I can't seem to find in the files how and where this information is found. I think that would be what I need to move forward.
Unless there is another way that I haven't thought of...
Thanks in advance.