Integration with RSForms

  • Posts: 200
  • Thank you received: 13
2 years 6 months ago #343608

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.5.1
-- PHP version -- : 8

Hi.
I have RSForms Pro on my website.

Is there any way that I can create a Hikashop product when user submits a form in RSForm based the data of the submission ?

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

  • Posts: 83338
  • Thank you received: 13477
  • MODERATOR
2 years 6 months ago #343613

Hi,

Sure. You can use the "Scripts called after form process" option of RSForm to run PHP code after the user submits a form in RSForm:
www.rsjoomla.com/support/documentation/r...ted/php-scripts.html
And in our developer documentation, we have a section called "PHP code samples":
www.hikashop.com/support/documentation/6...umentation.html#code
The last example explains how to create a new product.
You might also need to add first the first code sample to initialize HikaShop before you can create the product.
Also, once you have created the product, you can use $product->product_id to generate and add to cart URL ( www.hikashop.com/forum/2-general-talk-ab...ct-fields.html#16220 ) and redirect the user there so that he arrives on the checkout with the product already added to his cart, ready for him to go through the checkout and pay.

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

  • Posts: 200
  • Thank you received: 13
2 years 6 months ago #343621

thats great.
thank you

The following user(s) said Thank You: Philip

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

Time to create page: 0.055 seconds
Powered by Kunena Forum