Need to save Checkout Attributes when visitor browses away form the Shopping Cart

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hello,

I'm still using NopCommerce 3.6; I understand this has been fixed in the newer versions but I cannot upgrade for the time being.

In 3.6, while on the shopping cart page, if a visitor adds a checkout attribute and then goes to another page without clicking on "Update Cart" or "Checkout", the checkout attributes will be lost.

The solution is to call ParseAndSaveCheckoutAttributes() when the visitor moves away. I've read that I should call it via AJAX but how do I implement this?

Any pointers will be much appreciated.
6 years ago
Hello,

Yes you can.

You can find out nopcomerce logic and preserve that logic in your code.

see some of the thing i already investigated.



here nopcommerce call one method everytime when attribute change.

I think this method would helpful to you.

In this method nopcommerce save that attribute.

And while page load nop getting that attribute and preserve at relevant checkout control.

checkoutattributechange?isEditable=True   this is route you can find action and controller name from route config file.

Hope you will understand..!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.