0

I'm trying to club Drupal & Magento together. So I want to make the registration seamless. If any user register in Drupal they want to register in Magento automatically using a custom module in Drupal. I have scripts to register in Magento by sending data to Magento script file.

I want to know how to make a AJAX call to that script file, using a custom Drupal module. I'm using Drupal 7 version.

  • I also want to pass registration form data in the ajax call. – Vivek Keviv Jun 8 '16 at 7:02
  • You can try php.net/manual/en/book.curl.php – Rupesh Jun 8 '16 at 7:09
  • This is php curl by default to get response from the page. My Question is how to add a hook after registration form submit in drupal framework. – Vivek Keviv Jun 8 '16 at 7:11
1

For achieving this goal you have to Implement drupal hook_user_insert and Use php cURL

2

You can use hook_user_insert, in which you can easily execute CURL, in hook_user_insert you will have all your data regarding the user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.