Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Ajax Reload Rate Topic   - - - - -

 
  • mohsin1631
  • Advanced Member
  • Members
  • Join Date: 18-May 22
  • 77 posts

Posted 15 July 2022 - 11:18 AM #1

Hi, i added filter block in my new theme. whenever i click on a filter the ajax request is sent and the url changes but the data on the pages does not update without reloading the  page.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22945 posts

Posted 18 July 2022 - 01:43 PM #2

The id of the div which should be updated should present in the result_ids parameter of ajax requests.

 

Also the div should have the following format

<div ALL_OTHER_ATTRIBUTES id="my_id">
... content....
<!--my_id--></div>

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)