logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Wednesday, August 18, 2021 7:42:32 AM(UTC)
Joe Payne2

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??

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Wednesday, August 18, 2021 7:55:20 AM(UTC)
shaharyar

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.
Joe Payne2  
#3 Posted : Wednesday, August 18, 2021 8:02:09 AM(UTC)
Joe Payne2

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?

shaharyar  
#4 Posted : Wednesday, August 18, 2021 12:06:20 PM(UTC)
shaharyar

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
Users browsing this topic
Guest (2)
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.