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?
|
|
|
|
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 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.
|
|
|
|
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).
|
|
|
|
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)
|
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.
|
1 user thanked shaharyar for this useful post.
|
|
|
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!
|
|
|
|
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