Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
I can't for the life of me find the damn thing. I see all the payment methods in CheckoutController.cs redirect to: Code:Url.Action("Receipt", "Checkout", new { orderNumber = checkoutResponse.Order.OrderNumber })
But there is no method called 'Receipt' in the Checkout controller? How is that even working??
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
The line of code will redirect to a path site.com/checkout/receipt
This path is assigned to a page called View Order Receipt. You can see in the listing of Admin - Website - System - Application Pages. This page is using an inner template called View Order Receipt. You can see in the listing of Admin - Website - Store Design - Inner Templates.
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
So why use Url.Action() to generate the url at all? It's not a valid Action in that Controller. That's confusing as hell.
Shouldn't all the payment methods be using NavigationHelper.GetReceiptUrl() anyways?
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
You are right. I am going to log this as an improvement.
Thanks
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close