Jump to content

Show product list from AJAX smarty


Duskfall

Recommended Posts

Hello i am trying to implement ajax sorting paging and category filtering with AJAX and i use the Webservice and js templates to construct the html i want.

But i have seen websites where when they use ajax to modules/blocklayered/blocklayered-ajax.php path they get the product list object with constructed html!

I get half the variables and the others are displaying with the wrong way.

Meaning some of my properties are :

  1. pagination"↵ ↵"
  2. pagination_bottom"↵ ↵"
  3. productList"<div class="product_list">↵ <p class="alert alert-warning">Îεν ÏÏάÏÏοÏν ÏÏοÏÏνÏα.</p>↵</div>↵"

Anyone knows how to get the rendered template to the variable?

Also the pagination?

 

My test call is the tutorial one:

$.ajax({
    type: 'POST',
    url: baseDir + 'modules/blocklayered/blocklayered-ajax.php',
    data: 'ajax=true',
    dataType: 'json',
    success: function(json) { // .... }
 });\

Prestashop version 1.6.1.0

Edited by Duskfall (see edit history)
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...