Jump to content

Disable Order Confirmation by UpgradeProduct


Plambee

Recommended Posts

Hi,

does anybody know how I can disable an Order Confirmation when I use the API Command "UpgradeProduct" like this?

$command = 'UpgradeProduct';
  $postData = array(
    'serviceid' => $serviceid,
    'paymentmethod' => $paymentmethod,
    'type' => 'product',
    'newproductbillingcycle' => 'Free Account',
    'newproductid' => $newproductid,
);

$results = localAPI($command, $postData);

The API Command "UpgradeProduct" has no "disable_mail" parameter and the Hookpoint "EmailPreSend" gives me as relid only the clientid, which does not help me. I would like to deactivate the order confirmation only if the product is changed by API.

 

Thanks!

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