-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: carriers not showing on merchant #1253
base: develop
Are you sure you want to change the base?
Conversation
@YavorGrancharov hm, I think your solution is wrong... I.e. you will show only carriers who deliver some orders, but that page should display ALL Carriers assigned to merchant, not only those who deliver (or will deliver) something... Could it be all code you need was actually just this part:
? |
I thought that all carriers connected with the current store are the once to be rendered! Will show them all, thanks! |
@YavorGrancharov hm, YES, only carriers who connected to the store are those we need to pay on that app page! I.e. why you would want to show all carriers from 1000s of different merchants? My point is that such carriers may NOT have any orders yet, instead, you should check in warehouse how we store connected carriers and display only them. I.e. @YavorGrancharov whole platform is a very logical system. I see we have a difficulties to understand that. Merchant have app (Tablet) to manage her/his store (or Warehouse). Why would he want to see all carriers ever? He wants to see his own carriers (people who deliver goods/products/services), no matter if they worked before already (did some deliveries) or not yet. There can be a pool of "shared" carriers (e.g. 100) which are used by multiple merchants. In such case, I think some of such carriers could be also assigned to warehouse (so that 5 different warehouses use some same carriers) etc. and so on. All is really like very logical. Question: why you removed |
I tried another approach which was to get orders made from the store and took by certain carriers and show those carriers except canceled orders as there carrier is null. With this.warehouseCarriersRouter carriers were always empty! |
OK, so as I explained - you did it completely wrong. Instead, it was better to figure out why existed method always return "empty" results and possible fix that (most probably you did something wrong and not assign carriers for example, that's why it returns empty list always) |
Ok, will do as you suggested! |
@YavorGrancharov what is the situation with this PR? Do you need any help? |
@YavorGrancharov ??? @valiopld please talk with @YavorGrancharov if need any help on this one |
@evereq can you please review this PR! So what I made for this functionality:
I also provided a video below for preview! |
|
Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.
Fixed carrier not showing on Merchant app.
https://www.loom.com/share/c1bf8ce9786e45b6a3f67b37ba4cb4d1