[Skip to main content](#vessel-content)

#   add external data to a order

##

- **[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")**
- [![BluepointWebdesign's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile") Topic Author
- [ Offline](/forum/user/34929-bluepointwebdesign)

Less More

- Posts: 424
- Thank you received: 11
-
-

6 years 1 day ago [\#326289](#326289) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  *[add external data to a order](/forum/35-orders-management/901291-add-external-data-to-a-order#326289 "Hello,  Is it possible to add external data to a Hikashop product? We are creating a sort of image editor. When a user buys a product in hikashop he/she can create a custom design in our editor. But after creating this design, it needs to be attached to the order somehow.  What would be the best way to do this, can we include the editor in the hikashow product, in a Iframe for example? Or maybe can the editor do a post request to the hikashop component to sent the data? Or via the Database? Is there anything made for a usercase like this, or would we have to modify Hikashop?  Regards, Michiel")* was created by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")*

Hello,

Is it possible to add external data to a Hikashop product? We are creating a sort of image editor. When a user buys a product in hikashop he/she can create a custom design in our editor.
But after creating this design, it needs to be attached to the order somehow.

What would be the best way to do this, can we include the editor in the hikashow product, in a Iframe for example? Or maybe can the editor do a post request to the hikashop component to sent the data? Or via the Database?
Is there anything made for a usercase like this, or would we have to modify Hikashop?

Regards,
Michiel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMTI5MS1hZGQtZXh0ZXJuYWwtZGF0YS10by1hLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

6 years 1 day ago [\#326291](#326291) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add external data to a order](/forum/35-orders-management/901291-add-external-data-to-a-order#326291 "Hello,  Is it possible to add external data to a Hikashop product? We are creating a sort of image editor. When a user buys a product in hikashop he/she can create a custom design in our editor. But after creating this design, it needs to be attached to the order somehow.  What would be the best way to do this, can we include the editor in the hikashow product, in a Iframe for example? Or maybe can the editor do a post request to the hikashop component to sent the data? Or via the Database? Is there anything made for a usercase like this, or would we have to modify Hikashop?  Regards, Michiel")*

Hi,

Whether you include the editor in the product details page or not, I think what you want is to create your own type of custom field as a plugin implementing the "fields API".
You can see an example of that in the folder plugins/hikashop/datepickerfield/
this plugin adds the "advanced date picker" type to the custom fields system.
So in a similar manner, the merchants using your plugin could create a new custom field of the table "item" and of your type (for example "design editor").
Then, your plugin would output the design editor as a custom item field on the product page, and if you have an input field with the correct "name" it would be saved together with the product when you add it to the cart and you will also be able to handle the "show" of the data saved in the custom field if you want to arrange it.
Of course, you could also have a deported editor (on another page for example with just a button displayed on the product details page to access the editor) and then have the add to cart button directly in your editor. Then, when pressed, you would save the data in a table of your editor in the database, and add the product to the cart with the id of the data in your table in a custom item field and then you could similarly control the "show" of the custom field to arrange it.
The only drawback in doing it like this is that the merchant using your design editor needs to have HikaShop Business to be able to create a custom item field but the big advantage is that you don't need to handle all the places where to attach the "show" of your data in the order. You can just implement the fields API.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMTI5MS1hZGQtZXh0ZXJuYWwtZGF0YS10by1hLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
