logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
wahiid.iqbal26182468  
#1 Posted : Friday, November 1, 2019 8:48:57 AM(UTC)
wahiid.iqbal26182468

Rank: Newbie

Groups: Developers
Joined: 10/30/2019(UTC)
Posts: 0

Hi,

We are working on a plugin to ship order items of another partner online store. For this purpose, we want to save order shipment details as well as Tracking data in our database while avoiding triggering of Shipment email for specific orders. We want the shipment emails to trigger from the partner website rather than from our website.

Is there any shipment function where we OFF shipment notification email for those specific orders regardless of our Admin email triggering settings?

Thanks

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Katie S  
#2 Posted : Friday, November 1, 2019 9:12:54 AM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Hi,

You can check out the Custom Order Status feature. This would allow you to create a custom order status for the imported orders with any desired triggers. The email templates are configured from the page as well.

Please go to Configure > Store > Order Statuses from the menu. First take a look at some of the existing statuses and how they are configured with triggers and email notifications.

Let me know if you have any questions.

Thanks for joining the forums!

Katie

Thanks for your support!

Katie
Secure eCommerce Software and Hosting
wahiid.iqbal26182468  
#3 Posted : Friday, November 1, 2019 9:28:06 AM(UTC)
wahiid.iqbal26182468

Rank: Newbie

Groups: Developers
Joined: 10/30/2019(UTC)
Posts: 0

Thanks, Katie for your quick response. But, if we don't want to create a custom order status but use code to handle it in our custom plugin? Can we do that?

-Waheed
Joe Payne2  
#4 Posted : Friday, November 1, 2019 9:34:03 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Originally Posted by: wahiid.iqbal26182468 Go to Quoted Post

Is there any shipment function where we OFF shipment notification email for those specific orders regardless of our Admin email triggering settings?
Thanks


The default .Ship() method on the OrderShipment object does not have a parameter for triggers. Some of the other Able objects do, but not .Ship() unfortunately.

If you have full source, look at the code for OrderShipment.Ship(). You'll find a call to StoreEventEngine.ShipmentShipped() at the end. You could add your own parameter "bool fireTriggers = true" to the method signature and then encapsulate the call to store event engine in an "if (fireTriggers) {}"

If you don't have full source, you could technically ship an order shipment object "manually". if you're not using the request-tracking feature (I haven't in 6 years), all .Ship() does is set OrderShipment.ShipDate = LocaleHelper.LocalNow, saves the ordershipment and then calls the trigger. That way you're just rolling your own ship logic without the call to store event engine.





thanks 1 user thanked Joe Payne2 for this useful post.
Katie S on 11/1/2019(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.