Skip to content

productcomments v8.0.1 - rewdirect to a json page after submit the comment #246

Description

@HartLarsson

Prerequisites

Describe the bug and add attachments

every time i add a comment it will be added to the db but the page redirects to a JSON result: /module/productcomments/PostComment?id_product=2

Steps to reproduce

  1. install the module productcomments v8.0.1 on PS 9.1.4
  2. go to a product page and leave a review/comment.
  3. the comment is saved in the DB
  4. when comment popup closing it will redirect to a page: /module/productcomments/PostComment?id_product=2
  1. the page show a JSON like:
Image

Expected behavior

After point 4 the pupup must close and the product page must shown with a message like "thanks for your comment..."

Actual Result

  1. when comment popup closing it will redirect to a page: /module/productcomments/PostComment?id_product=2
  1. the page show a JSON like:
Image

PrestaShop version where the bug happens

9.1.4

Module version where the bug happens

productcomments v8.0.1

PHP version(s) where the bug happened

8.4

Your company or customer's name goes here (if applicable).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status
    Waiting for QA

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions