Extend Payment method on onepagecheckout view and controller - nopcommerce

I have developed own payment plugin in nopCommerce 3.90 version.
I want to call OpcLoadStepAfterShippingMethod method from my own plugin's controller and also want to extend OpcPaymentMethods viewpage.
I have already extend default onepagecheckout view page and controller for that from my plugin.
Please give me solution!

Related

Add custom flow on member registration form in Wordpress website

I have a Wordpress website and want to add custom flow of registration.
The current website has these pages but I am not sure if there is any plugin that has inbuilt such flow feature or how to add this feature.
Any help appreciated.
I had to do a similar modification.
Your case seems the same as mine, its a single form, split onto steps for helping users/validations.
I didn't found any plugin ready for all i needed (the steps thing), and mainly ... hooks to change registration form in wordpress just add extra fields to standard fields, i needed to completly remix the order, so I went the javascript way:
Added my custom css and JS to login/register pages with the action 'login_enqueue_scripts'
Added my custom fields to form using 'register_form' action
Added a class to login body with 'login_body_class' filter, to keep things hidden while JS magic happened;
I'm not sure what's your skill level in JS, but once you got those hooks ready you can make pretty much whatever you want with the register form.

How to Create New Custom Product Details Page In NopCommerce

How to create new custom product details page in NopCommerce new generic url RouteProvice and new HTML page
Just write Generic route url in plugin and update order, give your own generic route name.
Register Generic router at DependencyRegister.
Update your controller and actionMethod for product detail page.

Sonata Admin + FOS User Bundle - add captcha to login form

I'm looking for a way to add captcha to Sonata User Bundle login form (and the validation of captcha of course!).
I couldn't find literally anything about using captcha in Sonata User Bundle, so I hope someone already been doing that and could perhaps help a bit?
#EDIT
Following Frankbeen's answer I've already extended AdminSecurityController (from sonata user bundle) which does have loginAction (for showing login form) and the form itself.
Unfortunately the captcha is not checked (loginAction is not called once we submit the form). That makes me wonder what's the controller:action used to actually check the submitted form? Maybe it's done via some sort of event listener?
Start reading from the a) Define New Template In app/Resources paragraph and overwrite the Security/login.html.twig template.
Follow this page, overwrite the SecurityController and add your logic for the Captcha.
Personally i like the Google Recaptcha. If you want to use that one you could also use the EWZRecaptchaBundle.
I believe I found the solution. To achieve what I wanted I just had to override UsernamePasswordAuthenticationListener following this answer:
Adding Captcha to Symfony2 Login Page

Woocommerce REST API - Add custom routes

I have a Woocommerce shop and I'm using the Woocommerce REST API to list products etc. on another site and it works fine. There are some functionality that I'm missing though, and I'm wondering if it is possible to extend the API with custom calls?
I was able to figure out how to this by reading the source code for Woocommerce.
First I had to create a class that extends WC_API_Resource and add my routes in the register_routes method of this class. Then I had to make sure that Woocommerce adds this class to the API by adding the class to the class-array in the woocommerce_api_classes filter.

how to return on product's detail page in NopCommerce 3.20

I want to create plugin which shows Category-vice MostViewed Products.
So i need to know how to return on Product's detail page from my plugin.
You should create in your plugin's controller method like Product() method in Nop.Web\Controllers\CatalogController.cs which method, that will return your new views or default views from Nop.Web.

Resources