Add a Generated Product to a specific user's cart

  • Posts: 15
  • Thank you received: 0
12 years 3 weeks ago #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 user's cart, so it can be paid for. What would be the best way to do this?

Last edit: 12 years 3 weeks ago by Teonnyn.

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 weeks ago #72476

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.050 seconds
Powered by Kunena Forum