Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
I have create one android APP. with back end magento. I have create REST API for send data on mobile side. When user add item in to cart and on placer order screen, At that time if admin has change price of product which is add by app. user. Now for that user has item with old price. When placer order magento will consider new price. So i want to add check point and inform to that user that price has been change. If i check typical way that on place order API check every item in cart then response time will increase. Is there any way form that i can check with minimum response time.
Thank you,
Sunit Ardeshna
In this case, You should maintain table in backend for price change date. And at app level, you can save the last price change date in your device (User Defaults or offline).
Before placing Order,you will call API for price change date, if its changed then you need to update your Price menu for all items which you save offline (in case of below- items), then of course notify user about price change. also you should ask user for weather he want to place such changed order.
In iOS if you are using UITableView or UICollectionView to display your items, you should implement your connectivity method with the ReloadData so you can update your prices, and if you want to check for one item only, you need to add a listener on your app that will receive a message from the server to update the price for that particular item.