Jump to content

Custom Server Module and Multiple Products


swhitley

Recommended Posts

Hi,

 

I have developed a custom server provisioning module. The module is functioning perfectly when the order only contains one product. If the customer selects two or more products, the $params variable in the module only contains information for one product.

 

Shouldn't $params contain information for each product in the order? If not, shouldn't the module be called multiple times?

 

Thanks.

Link to comment
Share on other sites

A little more information on this problem: The first item has an "Active" status, but the second item has a "Pending" status. I assume that is why the module isn't running for the second item. Is it possibly related to fraud prevention? If so, is there an option to allow all items to save with an "Active" status?

Link to comment
Share on other sites

The module is called multiple times.

Check your productsfor the auto setup options

eg..

Automatically setup the product as soon as an order is placed

Automatically setup the product as soon as the first payment is received

Automatically setup the product when you manually accept a pending order

Do not automatically setup this product

Link to comment
Share on other sites

Thanks.

 

Yes, I have this selected:

 

- Automatically setup the product as soon as an order is placed.

 

Is it possible that I'm missing a return value to make sure that the module is called after the first item? It looks like it just stops at the first item and places the second item in a pending status.

Link to comment
Share on other sites

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