Empty area for the products when the filter is activated

  • Posts: 98
  • Thank you received: 12
9 months 2 weeks ago #351835

-- Joomla version -- : 4.3.0

Hello,

if I activate the filter (only) for the product overview and post it (filter) on the left side via the module, the left side is still kept free for the products (without filter content, just empty).
The products are not selected in the Filter module, only in the product overview.
Is there a solution to this problem?

Christian sends greetings

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:

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

  • Posts: 4471
  • Thank you received: 603
  • MODERATOR
9 months 1 week ago #351838

Hello,

We will need to see the context to be sure but this look like more to a template or custom Css issue.
next step:
- Process a test with a default template (Cassiopeia for J4 ir ProtoStar for J3)
=> Make your returns
- Check that you didn't have custom css in your HikaShop frontend file



Awaiting your returns
Regards

Last edit: 9 months 2 weeks ago by Philip.

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

  • Posts: 98
  • Thank you received: 12
9 months 1 week ago #351889

Hello, thanks for the reply.

Changing the template in Cassiopeia or Protostarplus did not result in any change.
I have custom.css in the frontend file, the deactivation of custom.css in the Hikashop was also successful (these were reactivated after the test).

Sample product overview page with filter:
www.moellerstonecare.eu/shop/index.php/produkte/reinigung.html

Example page with product:
www.moellerstonecare.eu/shop/index.php/p...ferner-hmk-r152.html

Christian sends greetings

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

  • Posts: 81182
  • Thank you received: 12995
  • MODERATOR
9 months 1 week ago #351892

Hi,

The issue is that the template doesn't check whether the HTML returned by the modules is empty and just check if the module is enabled in the position in order to display the position or not.
Advanced Modules Manager Pro allows you to filter the modules based on the type of HikaShop pages and it integrates with Joomla in a way which prevent Joomla from seeing the module if it doesn't return any HTML I think. So that might be a solution.
Otherwise, it would require modifying the template to check whether the HTML returned by the modules of a position is empty or not before displaying the position:
stackoverflow.com/questions/38928629/how...module-has-an-output

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

  • Posts: 98
  • Thank you received: 12
9 months 1 week ago #351901

Hello,

why should it check if it is empty or not? The decisive factor is whether the module was assigned to the product page in the menu assignment or not. In my case it was NOT assigned, nevertheless it is displayed!

Regards

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:

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

  • Posts: 81182
  • Thank you received: 12995
  • MODERATOR
9 months 1 week ago #351903

Hi,

Note that HikaShop doesn't manage the menu item restriction. This is purely done by Joomla when the template asks for the modules for a specific position.
Also, I htink you're mistaken about the current menu item.
On the link www.moellerstonecare.eu/shop/index.php/p...ferner-hmk-r152.html the current menu item is the one with the alias "reinigung".
In the URL the part "produkte" is the parent menu item, "reinigung" is the current menu item, and "fleckentferner-hmk-r152" is the alias of the current product.
The menu item under the "Reiniger" menu item should have "reiniger" in the URL since it's the parent menu item of the menu item you're pointing at.
So basically, what this means is that you've created several menu items to access that product's product page with different URLs.
And Joomla thinks that you want to display the filter module on the page www.moellerstonecare.eu/shop/index.php/p...ferner-hmk-r152.html but your filter / filter module are configured to not output anything, but your template is not checking that the output is empty before displaying the position.

What you could do is to provide the URL of the product details page you want to be used in the "canonical URL" setting of the product and then activate the "force canonical URL on listing" setting of the HikaShop configuration.
That way, even if you access the product from the www.moellerstonecare.eu/shop/index.php/produkte/reinigung.html menu item, it will still use the URL you entered in the canonical URL instead of generating the URL of the product with the current menu item.

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

  • Posts: 98
  • Thank you received: 12
9 months 1 week ago #351985

Hello,

many thanks for the extensive help.

The note that the URL should be set for the products was helpful. This has already been done in the past, but it was probably lost when the website was copied. (A copy of the website is currently being edited, this on a different domain because of the changeover to Joomla 4 and Php8).

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

Time to create page: 0.078 seconds
Powered by Kunena Forum