VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: sandomatyas on January 21, 2022, 12:46:28 PM

Title: Custom weight data for orders
Post by: sandomatyas on January 21, 2022, 12:46:28 PM
There is a shop where the products dont't have specific weight. It sells plants and every plant has different weight.
But the delivery company asks the product weight. It's based on the content (several type of plants and every plant is different) and the packaging.
We know how much the package weights and should store this value to the order (1 order = 1 package).
The site has API communication to the delivery company, so the question is if it is possible to store some custom data (weight or maybe other custom info) to every order somehow? It should be hidden from the customer.
Title: Re: Custom weight data for orders
Post by: pinochico on January 21, 2022, 15:05:57 PM
create new value in DB orders
add to model orders
add input to view oder detail in admin
Title: Re: Custom weight data for orders
Post by: sandomatyas on January 21, 2022, 15:11:24 PM
sure this is a way but I was wondering if there is some more update-proof method :)
Title: Re: Custom weight data for orders
Post by: pinochico on January 21, 2022, 17:20:22 PM
Im wondering every day :)
Title: Re: Custom weight data for orders
Post by: Studio 42 on January 22, 2022, 11:51:20 AM
You can add a hidden user field in Virtuemart and you can edit it directly.
This can be a solution ?