Hello Nicolas,
In our store we have the same box model offered in different variants depending on the pack size (20, 25, 50, 75 or 100 units).
With a custom *item* field we ask the customer if they want to add labels to those boxes and, thanks to the “calculate price” plugin, we already managed to increase the product price when they choose “yes”, depending on the selected variant. That part works fine.
What we now need is one step further:
- When a customer selects “yes” for the labels, in addition to the price increase, we would like the order to automatically generate an **extra line** in the `order_product` table, with its own product code (e.g. ETIQ-20, ETIQ-25, etc.), its name (“Labels for boxes (pack XX)”), and the corresponding price.
- This way, in the backend, in the order emails, and in the exports, that line appears clearly separated with its own price, just like any other product.
My question is:
Is there any native way in HikaShop to achieve this directly with variants, custom fields, and the calculate price plugin, or would an additional plugin be required?
If a plugin is needed, which one would it be and how can I get it?
Thanks for your help.