EmicoEcommerce / Magento2Tweakwise-archived

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

Incorrect amount of products shown by default in the product grid #7

Closed chefbuitenhuis closed 7 years ago

chefbuitenhuis commented 7 years ago

Issue Brief

When changing the default amount of products to show in the product grid, the change isn't being reflected by the extension.

Environment

Steps to reproduce

  1. Install Magento 2.1.7
  2. Go to Stores -> Configuration -> Catalog -> Catalog and change the Products per Page on Grid Default Value value to something else than 12, for example to 30.
  3. Go to any category which has said amount of products.

Actual result

  1. The category grid should contain 30 products

Expected result

  1. The category grid contains 12 products.

Debugging results

When you change the limit, Magento add the product_list_limit=60 which is reflected by the tweakwise URL builder like tn_ps=60.

When using the default value, this parameter is not present. Tweakwise creates a request to the following URL: http://navigator-group1.tweakwise.com/navigation/xxxxxxx?tn_cid=xxxxxxx

This returns a response containing 12 products, instead of the expected 30 (configured default value in Magento 2).