Jump to content

How to automatically create another product when ordering a product?


tomlee

Recommended Posts

Hi,

 

I'd like to know how to automatically create another product after an order has been checked out or completed. For example, Product B is a module to create a product in another application. However, it is a simple monthly-free product that can be added to the order without any parameter required. When Product A has been ordered, Product B can be automatically added to the order. It is also acceptable if Product B can be added to the order when it has been completed. Product B should be created one-to-one with Product A. That is, ordering one Product A will create one Product B.

 

It seems a custom hook to be created to handle this scenario. Any idea? Can anyone help?

 

Many Thanks

Link to comment
Share on other sites

first idea is to add it before checkout completed (PreShoppingCartCheckout, you'll need to edit $_SESSION['cart'] array)

so you need to track the contents of the cart and add your B product if A is ordered.

 

other idea is to do it via module create function (from A product). There are lack of API functions for that, but you can always hire some techy guy to do that. Or write some functions yourself :)

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated