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
|
|
|
|
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 |
|
|
|
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
|
|
|
|
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 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.
|
1 user thanked Joe Payne2 for this useful post.
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close