Prevent Order Notifications in Certain Circumstances?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sweeperq
Commodore (COMO)
Commodore (COMO)
Posts: 497
Joined: Tue Jan 03, 2006 2:45 pm

Prevent Order Notifications in Certain Circumstances?

Post by sweeperq » Wed May 18, 2011 2:55 pm

Is there a way to prevent the automated order notifications in certain circumstances? For example, when we take phone orders, our CSM may want to adjust the final prices, but is not given the opportunity until after the order is placed. As such, he places a "Phone" order, modifies the prices, then takes the customer's credit card info. We don't have a problem manually sending out order notifications in this case, but we need a way to suppress the original so they don't get an order confirmation with the wrong pricing.

Thanks!

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Prevent Order Notifications in Certain Circumstances?

Post by plugables » Thu May 19, 2011 4:08 am

It could be a useful feature if a checkbox is added to the admin order placement UI that allows us to enable or disable the event notifications for that order.
Last edited by plugables on Thu May 19, 2011 5:08 am, edited 1 time in total.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Prevent Order Notifications in Certain Circumstances?

Post by mazhar » Thu May 19, 2011 4:53 am

I believe there is one way. If you want to stop alerts for orders placed by admin then go to Website/Admin/Orders/Create and locate related payment form. For example suppose we want to disable alerts for order placed with phone call. In order to do this we need to edit Website/Admin/Orders/Create/PhoneCallPaymentForm.ascx.cs file and locate following code

Code: Select all

CheckoutResponse checkoutResponse = _Basket.Checkout(checkoutRequest, false);
and then update it like

Code: Select all

CheckoutResponse checkoutResponse = _Basket.Checkout(checkoutRequest, false,false);
This extra flag false will tell system that don't trigger any alerts while placing this order. Similarly if you want to disable alerts for orders placed by customers then you need to make similar changes to files under Website/Checkout/PaymentForms folder.

sweeperq
Commodore (COMO)
Commodore (COMO)
Posts: 497
Joined: Tue Jan 03, 2006 2:45 pm

Re: Prevent Order Notifications in Certain Circumstances?

Post by sweeperq » Thu May 19, 2011 7:20 am

Thank you very much. Glad you guys already thought of most of this stuff! I've been very happy to see that many of the customizations and improvements we made to AC5.5 to get it working the way we wanted were already implemented in 7. Great piece of software.

Post Reply