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 : Monday, August 16, 2021 8:03:31 PM(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, what's the story with the PayPal Express Checkout button? There's an inner template for it. But, there is no widget available in the widget list.

I see _MiniBasket.cshtml references it:

Code:
@Html.Action("PaypalExpressCheckoutButton", "PayPalExpress")


But, I can't use that same reference in my own view because the controller 'PayPalExpress' doesn't exist.

How do I add the PayPal Express button to my own custom basket page?

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

shaharyar  
#2 Posted : Tuesday, August 17, 2021 3:46:37 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
The controller is present in the PayPal plugin. You must ensure that the plugin is installed before using this code.

Please also consider the if block around this piece of code in _MiniBasket.cshtml

Hope this will resolve the issue.
Joe Payne2  
#3 Posted : Tuesday, August 17, 2021 12:01:16 PM(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)
Ok I understand how it works in _MiniBasket. My local installed-plugins xml got reset again somehow, so my install didn't know PayPal gateway was installed.

If I add the PayPal Express Checkout inner template to the right sidebar of the basket page layout, it throws some sort of weird error on the shopper side:

Capture.JPG (51kb) downloaded 0 time(s).
shaharyar  
#4 Posted : Tuesday, August 17, 2021 1:19:44 PM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
There are two widgets that will appear if the plugin is installed.
1- Paypal Express Checkout Button &
2- Paypal Express Checkout

On the basket page sidebar your need to drag and drop the 1st widget.
2nd widget is for the redirect page that is already created at the time of the plugin installation.
It will appear in case of an error from the Paypal site.

Hope this clears the confusion about the widget.
thanks 1 user thanked shaharyar for this useful post.
Joe Payne2 on 8/17/2021(UTC)
Joe Payne2  
#5 Posted : Tuesday, August 17, 2021 1:26:23 PM(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)
Ohhhhhhhhh. Yea that would do it!

I had the wrong widget on the page. Now it's rendering as expected. The widget names make it a little confusing. Had I actually read the descriptions on the widgets, I probably would have noticed.

Thanks!
Users browsing this topic
Guest
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.