-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Order ID displayed in 'My orders' identical to the order ID in Magento #2743
Comments
HI Gabi, I mentioned that open issue on the fix indeed. I'll have a look at it tomorrrow, must be not too hard to fix. |
@mdesmet Great! Thank you :) |
@mdesmet please just change the orderData.entity_id to orderData.increment_id and You’re there |
@pkarw : from what I remember it was more complicated, the magento api returns only the internal id (see o2m.js). |
You might be right... |
I don't really have time now to solve it right now, working on another project but here is my analysis: We would have to extend the magento2-rest-client with support for retrieving the order based on the increment id returned by the order creation endpoint. See this Stack exchange with the solution: https://magento.stackexchange.com/questions/210000/retrieve-entity-id-from-rest-api-using-order-id Then we can call this api in the o2m.js and change the bakendOrderId to the correct order id. |
shouldnt this be more of a cosmetic then a functional change? So it may make sense, that vue-storefront adds a new property to differentiate between entity_id and shown order_id |
I wish it was just a cosmetic change but the response from the order endpoint only returns the internal increment id, no other properties, so we have to get the external order id somewhere else. IMHO the analysis still stands. |
Thanks @Flyingmana ! |
@Flyingmana I'm testing this solution on the branch develop and still order id on the thankyou page is different than in my orders, can you check it? |
i've spoken with Gabi, i merged that to separate branch to faster merge that huge abount of PRs, no worries here :) |
@patzick: I meant to comment on this one, actually this change doesn't work as orderData.increment_id is not defined at that point. We have to fetch it from magento api. @Flyingmana is on it already. |
added this fetch via vuestorefront/vue-storefront-api#258 |
@Flyingmana could you look at this feature request #3082 ? :) |
What is the motivation for adding / enhancing this feature?
Currently, order ID displayed in 'My orders' is different from order ID in Magento. It is confusing for the customer when he sees one order ID in 'My orders' and gets a different one in the email order confirmation from Magento.
What are the acceptance criteria
Can you complete this feature request by yourself?
Which Release Cycle state this refers to? Info for developer.
Pick one option.
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
.release
branch and create Pull Request3. Stabilisation fix
back torelease
.hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.Additional information
The text was updated successfully, but these errors were encountered: