EmicoEcommerce / Magento2Tweakwise-archived

Magento 2 module for Tweakwise integration
Other
9 stars 25 forks source link

Ajax response not rendered correctly when using sort #187

Open jeroenschipper-guapa opened 2 years ago

jeroenschipper-guapa commented 2 years ago

Issue Brief

When the tweakwise module is active, and we're trying to sort, the page returns the ajax response as JSON. It looks like a problem with a controller action for the sorting block.

Because we're being redirected to a page like: https://www.example.com/tweakwise/ajax/navigation/?__tw_ajax_type=category&__tw_object_id={id}&__tw_original_url={original_url}&brand%5B0%5D={brand}&product_list_order={list_order}

Environment

Steps to reproduce

  1. Enable ajax option in tweakwise module configuration
  2. Navigate to a category page
  3. Enable a filter
  4. Sort by a different way
  5. Page gets redirected to the ajax controller and renders the complete output of it.

Expected result

List the expected results as a bullet list of expectations

Hnto commented 2 years ago

@jeroenschipper-guapa we've added this to our backlog and will be working a fix shortly