How the ChildActionOnly Methods of the controller in plugins are loaded inside the Nop.Web Views?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 anni tempo fa
How the Nop.Plugin.Payments.AuthorizeNet View PaymentInfo.cshtml is loading inside the following div in OnePageCheckout.cshtml?

<div id="checkout-payment-info-load">
                        @*payment info content will be loaded here*@ Payment is not required
</div>
11 anni tempo fa
partial view of paymentinfo is requested from the payment gateway plugin by the payment workflow ( onepage checkout or multiple page checkout) and inserted in the view.

http://www.elaamart.com
11 anni tempo fa
arlen_bs wrote:
How the Nop.Plugin.Payments.AuthorizeNet View PaymentInfo.cshtml is loading inside the following div in OnePageCheckout.cshtml?

<div id="checkout-payment-info-load">
                        @*payment info content will be loaded here*@ Payment is not required
</div>


By mean of AJAX. :)
11 anni tempo fa
\Nop.Web\Scripts\public.onepagecheckout.js

The following section loads the html content of partial view inside the appropriate div tag.

setStepResponse: function (response) {
        if (response.update_section) {
            $('#checkout-' + response.update_section.name + '-load').html(response.update_section.html);
        }
        if (response.allow_sections) {
            response.allow_sections.each(function (e) {
                $('#opc-' + e).addClass('allow');
            });
        }
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.