• Resolved ptrnca

    (@petranca)


    If I have activated the wishlist for guests, I can add products to the wishlist, but as soon as I add the product from the wishlist to the cart as a guest, I get the following error in the console log:
    >POST .../wp-json/wishlist/v1/products 403 (Forbidden)

    The “Add to Wish List” button is then no longer visible on the product page.

    Only when I log in, this error disappears again.

    • This topic was modified 4 years, 8 months ago by ptrnca.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Stan

    (@stantinv)

    Hi @petranca,

    This issue will be fixed in an upcoming plugin update.
    Stay tuned.

    Regards,
    Stan

    I have the same issue. It seems to be a conflict between the plugin and the way woocommerce works.

    When a logged-out user adds an item to the cart, woocommerce generates a fake user id. When the wishlist plugin uses the rest API to store items to the wishlist, it recuperates and uses the fake woocommerce user id which generates a 403 forbidden access error.

    I tried to hook the nonce_user_logged_out wp filter to change the user id but it doesn’t seem to work.

    I’d be grateful if anyone had an idea to fix this.

    Plugin Support Stan

    (@stantinv)

    Hey guys,

    For your referrence a new update is available for download!
    Please, reteset it and notify us if the issue remains.

    Regards,
    Stan

    Thanks for the update. It solved the issue for me.

    Thread Starter ptrnca

    (@petranca)

    Great, thanks for the update. It works now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue after add to cart click’ is closed to new replies.