mercredi 7 août 2019

How to filter by MarkAsNewProduct field in product category page without page refresh in nopcommerce 4.2

I want to filter markasnewproduct field in product category page by checkbox click event without page refresh in nopcommerce 4.2.

For more clear let see the image of it

enter image description here

Now as the image display there is a checkbox named MarkAsNewProduct in that if anyone click on it then show the product which is new else old.

I done the code bt in that I am getting the page refresh so from that checkbox is uncheck bydefault.

Here is my code

<input type="checkbox" id="chb_markasnewproduct" onclick="setLocation('@Url.RouteUrl("Vendor", new { vendorId = Model.Id, categoryId = Model.CategoryId, isWholeSaler = "$('#chb_markasnewproduct').is(':checked')" })')" /> MarkAsNewProduct




Aucun commentaire:

Enregistrer un commentaire