Skip to main content

Add a Generated Product to a specific user's cart

14 years 3 weeks ago - 14 years 3 weeks ago #72241 by Teonnyn
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.

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

14 years 3 weeks ago #72476 by nicolas
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
demo.hikashop.com/index.php?option=com_h...show&cid=214&lang=fr

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

Time to create page: 0.053 seconds
Powered by Kunena Forum