- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2016
02:46 AM
12-08-2016
02:46 AM
Get increment_id for order
I'm trying to solve the problem with session validation on the page /checkout/onepage/success/ with example https://gielberkers.com/style-checkoutonepagesuccess-page-magento-2/
But the example does not work if there is no order. How get increment_id for order, if does not orders exist?
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2016
08:40 AM
12-09-2016
08:40 AM
Re: Get increment_id for order
.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2016
08:46 AM
12-09-2016
08:46 AM
Re: Get increment_id for order
Hi @wallone
To do this you must place an order first. So what you should do is, undo all the changes that this article is proposing, place an order, and do it again.
This code is taking the last order placed on your platform to build the success page, so if has no order, will not work.
Regards.