skip to Main Content

Woocommerce ajax oad more and ajax filters

I found this code for woocommerce load more button and it works fine at first but when I filter the products with an ajax plug in the button doesn't respond at all. The link of the code: https://github.com/bassscape/woocommerce-ajax-load-more-products <?php //-----------------------------------------------------…

VIEW QUESTION

Javascript – Django 'none' values from ajax

My views: def deleteDepartement(request): object_id = request.POST.get('Id') name= request.POST.get('name') print(object_id) print(name) try: D=Department.objects.get(id=object_id) except: print("NOT FOUND") return redirect('department') JavaScript code: $.ajax({ type: 'POST', url: "{% url 'deleteDepartement' %}", data: { csrfmiddlewaretoken: '{{ csrf_token }}', Id:objectId, name:'test', }, }); I got…

VIEW QUESTION

Convert JavaScript Date-Time Format

I want to get the date data from the database as "dd.mm.mm.yyyy HH:mm". How can I convert this data with Javascript? Normally the date data comes as follows, 2023-08-14T15:20:59.659667+03:00 The format I want it to be, 14.08.2023 20:59 Js code…

VIEW QUESTION
Back To Top
Search