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

#   Add a Generated Product to a specific user's cart

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

14 years 3 weeks ago -  14 years 3 weeks ago [\#72241](#72241) by [Teonnyn](/forum/user/8708-teonnyn "View Teonnyn's Profile")  *[Add a Generated Product to a specific user's cart](/forum/4-how-to/72241-add-a-generated-product-to-a-specific-users-cart#72241 "I have a custom component that generates an invoice from a set of product prices outside Hikashop. Once the component is done creating the invoice's final price tag, I'd like to add the invoice to the...")* was created by *[Teonnyn](/forum/user/8708-teonnyn "View Teonnyn's Profile")*

I have a custom component that generates an invoice from a set of product prices outside Hikashop. Once the component is done creating the invoice's final price tag, I'd like to add the invoice to the user's cart, so it can be paid for. What would be the best way to do this?

Last edit: 14 years 3 weeks ago by [Teonnyn](/forum/user/8708-teonnyn "View Teonnyn's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyMjQxLWFkZC1hLWdlbmVyYXRlZC1wcm9kdWN0LXRvLWEtc3BlY2lmaWMtdXNlcnMtY2FydD90bXBsPW1hcmtkb3du) 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: 86576
- Thank you received: 14320
-
-

14 years 3 weeks ago [\#72476](#72476) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add a Generated Product to a specific user's cart](/forum/4-how-to/72241-add-a-generated-product-to-a-specific-users-cart#72476 "I have a custom component that generates an invoice from a set of product prices outside Hikashop. Once the component is done creating the invoice's final price tag, I'd like to add the invoice to the...")*

Hi,

The simplest will be to create an "invoice" product with two custom item fields, one for the full price and one of your invoice id. Then, use the add to cart URL with the custom fields in parameters as a redirection after your invoice component and publish the donation plugin so that the price of the product becomes the price entered in the custom item price with the price to pay.

[ www.hikashop.com/en/forum/2-general-talk...-product-fields.html](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/16216-add-to-cart-link-and-custom-product-fields.html)
[ demo.hikashop.com/index.php?option=com\_h...show&amp;cid=214&amp;lang=fr](http://demo.hikashop.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=214&lang=fr)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyMjQxLWFkZC1hLWdlbmVyYXRlZC1wcm9kdWN0LXRvLWEtc3BlY2lmaWMtdXNlcnMtY2FydD90bXBsPW1hcmtkb3du) 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.044 seconds

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