Code Custom fields

  • Posts: 356
  • Thank you received: 10
  • Hikashop Business
1 week 6 days ago #368702

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.

Please Log in or Create an account to join the conversation.

  • Posts: 84497
  • Thank you received: 13739
  • MODERATOR
1 week 5 days ago #368704

Hi,

There is no mechanism in HikaShop to do that, nor existing plugin to do it either.
It would require the development of a custom plugin to achieve this. So it's not impossible, but you're looking at a development cost of 300€ if you were to ask us to develop this for you.

Please Log in or Create an account to join the conversation.

  • Posts: 356
  • Thank you received: 10
  • Hikashop Business
1 week 5 days ago #368708

Hello Nicolas,

Thank you very much for your reply.
In order to evaluate this investment and explain it to my partners, I need to clarify a few points:

1. Do you fully understand exactly what I need? I’m concerned that after the plugin is developed, the result might not fit my real requirements.
2. Are we talking about a specific plugin developed for this case?
3. Would it be possible to run tests first on a staging/test website I have, before implementing it on the live site?
4. Could this development be affected by future updates of HikaShop, Joomla, or higher versions of PHP?
5. If I wanted to modify prices in the future, would it be feasible for me to do it myself with my user-level knowledge, or would I always depend on you?

Thanks in advance for the clarification.

Please Log in or Create an account to join the conversation.

  • Posts: 84497
  • Thank you received: 13739
  • MODERATOR
1 week 5 days ago #368711

Hi,

1. Well, you provided limited information about what you want. I don't know the formulas you're using with the price calculations plugin.
If you could provide this, I would better understand the implications of what you need.
Besides that, I think I'm quite clear on what you want: Basically, when an order is created, you want to remove the extra fee added to the price of the product by the price calculations plugin, and move that to a new product row. Is that correct ?

2. yes, that would be the case.

3. Of course.

4. It depends on the details of point 1 and the cost adjustments you're willing to support.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum