X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   How to get complete order information via REST API (https://forum.x-cart.com/showthread.php?t=76369)

tony_sologubov 11-08-2018 10:54 PM

Re: How to get complete order information via REST API
 
Hi gior_08,

Quote:

Originally Posted by gior_08
following the help provided here https://devs.x-cart.com/rest-api/examples.html#changing-the-shipping-status-for-an-order, does anybody know if I change the shipping status (or the payment status) for an order the customer will get an email from the eshop?

I tested and I did not got an email and I was thinking if I make something wrong.


The notification sending routine is not triggered upon changing order's status via REST API.

You can create your own controller, which will send notification about order changing status.

The following articles might be helpful to you:
https://devs.x-cart.com/basics/controller_class.html
https://devs.x-cart.com/changing_store_logic/creating_custom_email_notifications.html (you can see an example of how to trigger sending email notification routine here)

Tony

gior_08 11-09-2018 02:38 AM

Re: How to get complete order information via REST API
 
Thanks a lot Tony.

By the way the REST API is a great tool to manage the data remote.
It has helped me a lot in interfacing with an external accounting program.

Just perfect !!!

tony_sologubov 11-09-2018 02:41 AM

Re: How to get complete order information via REST API
 
Thank you a lot, @gior_08!
Such kindest words mean a lot to us!

Tony

siddharth.puri@wheelandba 06-15-2020 05:54 PM

Re: How to get complete order information via REST API
 
Hi,

I was following this thread and it is really helpful. I was able to retrieve a lot of order data.

However, I am stuck with one thing. I am wondering, if I am able to pull out the price for a specific membership for the variant in the order.

Let's say the product has variants and each variant has price specified for different memberships.

I want to retrieve the price for a specific membership for the variant in the order.

Thanks and Regards,
Sid


All times are GMT -8. The time now is 12:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.