product display format lost when using search, wish list, then login

  • Posts: 99
  • Thank you received: 6
  • Hikashop Business
3 years 9 months ago #333567

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.4.20
-- Browser(s) name and version -- : Chrome 91.0.4472.101

Hi,

When using the search/sort function first, then selecting an item to add to a wish list, before being logged in as a registered user (only registered users can save things to a wish list), the product display format is lost. Please see the screenshot.

This screencast shows it in sequence: screencast-o-matic.com/watch/cr1o06V1fs5

This occurred after the latest Hikashop update (as far as I can tell).

What could be the cause of this?

Thank you,

Karen

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 8 months ago #333571

Hi,

This issue should be there since 2 years ago, when we added the AJAX support to the filtering system.
The problem actually comes from the customization you have on the add to wishlist button.
Normally, the way it works is that the add to wishlist button will try to do the add to wishlist process, and the server side will return the error that the user has to login first.
On your website, when you click on the add to wishlist button, you directly get presented with the login form in a popup and that's not something possible with the settings available in HikaShop.
So the issue actually comes from the code customization you have there for the login popup.
The problem is that this login popup contains a return URL (the URL where to redirect after the login) and it bases itself on the current URL generating the products listing.
But since the filtering is now done in AJAX, instead of getting the current main URL of the page set as a return URL, you get the refresh URL of the products listing area when the filtering was done instead.
So you have two solutions:
- modify the customization done there to properly take into account the URL of the main page and not the URL of the products listing refresh.
- deactivate the AJAX mode for the filtering to go back to the previous way it worked. To do that, you can go in your phpmyadmin, and add an entry to the table hikashop_config with the namekey being ajax_filters and the value being 0

Please Log in or Create an account to join the conversation.

  • Posts: 99
  • Thank you received: 6
  • Hikashop Business
3 years 8 months ago #333590

Thank you for the clear explanation and direction, Nicolas. I will work toward one of your suggested solutions.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum