Jump to content
bady

Disable Order Confirmation by UpgradeProduct

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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