price filter module disappears on click on the button

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323641

-- HikaShop version -- : HikaShop Business 4.3.0
-- Joomla version -- : Joomla! 3.9.19
-- PHP version -- : 7.2.33
-- Browser(s) name and version -- : Google Chrome 84.0.4147.135

Hello,


I created a filter allowing to filter the articles on the prices

I followed this documentation:
https://www.hikashop.com/support/documentation/100-hikashop-filter-listing.html


But I have a problem: when I click on the filter button, the functionality is fine, it filters the list of products on the price set in the filter, but the filter display disappears.

I looked in the forum for answers on this subject, I found 2:
https://www.hikashop.com/forum/filters-search/899125-filter-options-dissapear-on-filter.html#315355
https://www.hikashop.com/forum/filters-search/885130-cursor-filter-disappears-with-force-redirect-no.html

indeed (like verzevoul) if I set the "force redirect" parameter to "yes", the price filter does not jump when you click on the button, but we are redirected to the "Products listing" page that I put in the "menu" field -> that's not what I want.
On the other hand I checked, in the filter, I did not restrict the category


I also have another question that seems essential to me concerning a filter on the prices of a list of products:
after the user has made an adjustment on the price filter, how can we reset the filter?
I did not see this parameter in the creation of the filter?

so that we understand each other, I'll put a link: on this site, we can adjust the price filter, and then reset :
https://www.leroymerlin.fr/produits/salle-de-bains/accessoires-de-meuble-de-salle-de-bains/boite-de-rangement-de-salle-de-bains/




Can you give me the help I really need please,

thank you,

Agathe.

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 7 months ago #323649

Hi,

I think it's because you have activated the "deletable filter" setting of your filter. Turn that option off and it should display like you want.

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323679

Hello Nicolas,

whether I set the "suppressable filter" parameter to yes or no, anyway it does not work as it should:

as I explained to you above, the operation I want is
1/ that the user can filter the prices of the products
2/ the page displays the products corresponding to this price filter
3/ the user can reset the filter: i.e. delete the filter he had chosen
(so that we understand each other, I'll put a link: on this site, we can adjust the price filter, and then reset :)
www.leroymerlin.fr/produits/salle-de-bai...t-de-salle-de-bains/


Could you help me solve this problem please,

I sent you the front and back identifiers as a private message


Thanks,
Agathe.

Last edit: 3 years 7 months ago by pulsarinformatique.

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 7 months ago #323692

Hi,

The issue you have looks like a bug we had in older versions of HikaShop.
However, I see that you have the 4.3.0.
However, if I check the settings of your filter, you're missing the setting "Input fields" that we've added in a recent version of HikaShop (last year).
So basically, the situation you're in is not possible... unless the file administrator/components/com_hikashop/classes/filter.php is not the one from HikaShop 4.3.0 but from an older version of HikaShop.
So please download that file via FTP and check its version number at the top of the file when you open it with notepad. The version number is written there.

The following user(s) said Thank You: pulsarinformatique

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323743

Hello Nicolas,

I checked the version of this file, and it is in 4.3.0. version :

/**
* @package HikaShop for Joomla!
* @version 4.3.0
* @author hikashop.com
* @copyright (C) 2010-2020 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/

I have provided you with the credentials to connect in front and back on my site: can you see if I have incorrectly set the filter parameters in Hikashop, and the module parameters please :

- Filter: Hikashop / display / filters -> filter titled "Prix"
- Module of type "[mod_hikashop_filter]" -> module titled "Module filtres pages Produit /Liste Produits" -> id :419


Thanks,

Agathe.

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 7 months ago #323745

Hi,

I already went in your backend before writting my previous message. And that's how I saw that the "input fields" setting was missing from the configuration of your cursor filter.

Would you be able to provide a FTP access so that we could look further into the issue please ?
If so, please use our contact form to send the access along with a link to this thread:
www.hikashop.com/support/contact-us.html

The following user(s) said Thank You: pulsarinformatique

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323776

Hello Nicolas,


Have you received the FTP information for my site, on the form you indicated to me?
could you watch please ?
I allow myself to remind you, because I am really stuck on this subject



Thanks,
Agathe.

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 7 months ago #323783

Hi,

I looked at it today but the module is not there anymore even though it's enabled and the filters are published:
monosnap.com/file/NLcz1o2Q5eBF8G9oSGt8qcfScM8nYA
So I suppose the template must have been modified to not display it or something.
Maybe you're working on something ?

I received the FTP access and confirmed that it's working. And I could confirm that filter.php I was talking about is the correct one.
So it's probably a bug to be fixed but I can't reproduce it on my end which is why I need to check directly on your website.

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323789

Sorry

it was a setting in the price filter that was bad
it is fixed now

can you check and help us now please ?

thanks

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 7 months ago #323837

Hi,

I checked the issue and after some debugging I found that the problem is not a bug in HikaShop or a setting issue.
It's that your template has a raw.php file with only the tag <jdoc:include type="component" /> in it.
What that means is that when a URL is called in AJAX, with the parameter tmpl=raw instead of using the default mechanism of Joomla, it overrides that behavior to only display the content of the page, and not the headers.
Because of that, the javascript used to display the slider system is missing and thus the slider doesn't appear.
I've renamed that file to raw_tmp.php so that this doesn't happen and it's working fine now.
I would recommend to contact your template provider and check with them why this file is there and if it's ok to rename it for the proper functioning of the template.

The following user(s) said Thank You: pulsarinformatique

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323838

Hello Nicolas,

wow that's great !!
You are the best !!!

indeed this file has already caused me problems ...............
but I would never have done the report, it's a second version of the site, the first version is another developer who worked on it ....

Now the filter no longer disappears, and there are indeed the 2 "reset" and "search" buttons: but when you set a certain price bar and start the search, the products displayed in the page do not correspond to this price bar

Please finalize this bug for me,

Agathe.

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 7 months ago #323881

Hi,

Well, that's not what I see on my end. I did several tests and the products displayed on the left side after using the filter have their price in the range of the filter;
For example, I set the price range to 3.20 - 62.20
And I got this URL :
/fr/boutique-avion?limitstart=0&filter_Prix_12=1&filter_Prix_12_values=3.20+-+62.20&filter_Recherche_produits_support=&filter_Must_Have_3=&filter_Nouveautes_11=
with 14 products and all their price were in that range.
So if that's not what you're seeing, please provide more precise information on how to reproduce the problem because I don't see any with what I've tested.

The following user(s) said Thank You: pulsarinformatique

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323937

Hello Nicolas,

yes you are right, the price filter works well, when I tried it did not work ....

so thanks

I have one last problem on the other hand -> the filter is not displayed on the category pages:
- I want it to be displayed on the product list pages -> works fine
- I want it to show on the category list pages -> so the last level shows the products of the category -> and the module doesn't show on those pages

However, I have correctly adjusted the module parameters:
- Display on the product listing page -> Yes
- Display on the category listing page -> Yes

and I have assigned the corresponding menu items


Here are the pages that have this problem: these are the child pages of the 3 tabs :
Avion, Pilotes, Consommables





Example: Avion/ACCESSOIRES AVION / CIRRUS AIRCRAFT
https://dev.aerolithe.fr/fr/categories-de-la-boutique/categorie/157-cirrus

as you can see on this page, the price filter module is not displayed


Please unblock me on this last bug,


Thanks,

Agathe.

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
3 years 7 months ago #323938

Hi,

If I go on the page of your link and add the parameter ?tp=1 to the URL, I don't get position "right" there.
So that means that you configured/customized the template to not display the "right" position where this filter module is assigned on this page.

The following user(s) said Thank You: pulsarinformatique

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323960

Hello Nicolas,


indeed, you are right: then I looked at the html, and in fact the modules in "right" position are there, only the css of the template does not display them .........

template.css file :

.view-category #sp-right {
display: none;
}
.view-category .col-lg-8 {
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
padding: 0;
}


so I think the solution is:
-override the css of the template.css in my custom.css file
OR
- to ask on the template's forum if it is a parameter setting

That's right ?



Agathe.

Last edit: 3 years 7 months ago by pulsarinformatique.
The following user(s) said Thank You: Philip

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

  • Posts: 202
  • Thank you received: 3
  • Hikashop Business
3 years 7 months ago #323964

Nicolas,

so i tried overloading the css with template.css, like this:


.view-category #sp-right {
display: block;
}
.view-category .col-lg-8 {
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
padding: 0;
}

and I still have one LAST problem: how can we differentiate:
- the category pages which display subcategories,
- last-level category pages that display the products

I really need to differentiate them because i have to display the filter modules on the product listings, so on the last level category pages that display their products

But I must not display them on category pages which display their subcategories

example :

- on this list of cagories page which displays its subcategories, I must not display the filter modules on the right : Avion / ACCESSOIRES AVION
dev.aerolithe.fr/fr/categories-de-la-boutique/categorie/20-

- on this "category list" page which displays the products, since it is the last category level, I have to display the filter modules on the right :
Avion / ACCESSOIRES AVION / DIVERS
dev.aerolithe.fr/fr/categories-de-la-bou...categorie/142-divers

I checked in the body classes, if the classes would be different, but they are identical :
com-hikashop view-category layout-listing task-listing


do you have a method, a technique to differentiate these pages?
which from a technical point of view are "category list" pages, but from a display point of view are very different


Thanks,

Agathe.

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

  • Posts: 4502
  • Thank you received: 610
  • MODERATOR
3 years 7 months ago #323965

Helly,

Yes totally right ! You can correct this by creating custom Css, but inform your template creator will be better, that can helps us to improve their template.
And suddenly you will not have to create the solution yourself.
Hope you will solve your issue.

Regards

Last edit: 3 years 7 months ago by Philip.

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

Time to create page: 0.110 seconds
Powered by Kunena Forum