Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Ajax response not rendered correctly when using sort #187

Open
jeroenschipper-guapa opened this issue Oct 21, 2021 · 1 comment
Open

Ajax response not rendered correctly when using sort #187

jeroenschipper-guapa opened this issue Oct 21, 2021 · 1 comment

Comments

@jeroenschipper-guapa
Copy link

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

  • PHP Version: 7.2
  • Magento Version: 2.3.3-p1
  • Tweakwise Version: 3.3.8
  • Tweakwise Export Version: 1.5.6
  • Magento Deploy Mode: production
  • Third party modules:

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

  • After sorting the new product list should be returned in a response and being shown in the current page instead of redirecting to the Ajax controller
@Hnto
Copy link
Collaborator

Hnto commented Feb 11, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants