ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

I want to know how Android / IOS app handle price changes while placing order from mobile?

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

user-image
تم إضافة السؤال من قبل Sunit Ardeshna , Sr. Magento Developer , Innovify
تاريخ النشر: 2015/10/17
Swatee Salunkhe
من قبل Swatee Salunkhe , Sr. Mobile application Developer ( SAP SMP ) , ServPRO Technology Pvt Ltd

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.

Mohamad Kaakati
من قبل Mohamad Kaakati , Co-Founder & Chief Technology Officer , BARQ FAST TECH Co

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.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟