Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Default Filter Value Rate Topic   - - - - -

 
  • androutsos
  • Newbie
  • Members
  • Join Date: 16-Feb 18
  • 14 posts

Posted 08 April 2020 - 10:37 PM #1

Hello all,

 

I have a filter in a clothing store that separates products based on Season. That requires the users though to actually go and select the filter in order to have the proper season products displayed.

 

That's a lot of fuss and people won't do it and probably get frustrated browsing winter and summer clothes within each category.

 

Is there any plugin that I can set it to have a default value on a specific filter?

I can also do it if I could add some code in the php file that loads the category section but I have no clue where to find that file.

 

It's a pretty simple functionality though. I believe there should be a plugin around to save me the fuss.

 

Thanks for your input.



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4817 posts

Posted 09 April 2020 - 08:50 AM #2

what about having them split into categories of summer and winter collections instead.


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • androutsos
  • Newbie
  • Members
  • Join Date: 16-Feb 18
  • 14 posts

Posted 09 April 2020 - 05:07 PM #3

you mean redo the whole category tree for summer?



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4817 posts

Posted 10 April 2020 - 09:45 AM #4

No Just add 2 main top categories "shop summer" "shop winter" 

then drop all the stuff in each one as secondary categories so they still stay in the previous category but are now also in "shop summer" and "shop winter"

this can be done easily by export import in a spreadsheet.


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • androutsos
  • Newbie
  • Members
  • Join Date: 16-Feb 18
  • 14 posts

Posted 10 April 2020 - 03:12 PM #5

But that would separate the products of each category permanently. There will be no way for a visitor to see all shirts (regardles of season). Right now it's possible to have no filter selected and view all products in a category. Then I can filter them out.

 

If I separate them by category, I won't be able to navigate to the winter products without a separate menu item. I literally have to disable one season's products.

 

I need the ability to have a "preferred option" or filter enabled. I tried some htaccess magic but it seems that it doesn't work with all the redirects that happen.

 

Here is the code I tried for referrence:

RewriteCond %{QUERY_STRING} !(^|&)features_hash= [NC]
RewriteRule ^ %{REQUEST_URI}?features_hash=314-44914 [L,R=301,NC,QSA]

That only redirects the home page though to the query of the filter and does not work on subsequent ULRs.



 
  • androutsos
  • Newbie
  • Members
  • Join Date: 16-Feb 18
  • 14 posts

Posted 10 April 2020 - 09:49 PM #6

I solved it by adding the following in htaccess

RewriteCond %{REQUEST_FILENAME} !admin.php [NC]
RewriteCond %{QUERY_STRING} !(^|&)features_hash= [NC]
RewriteRule . %{REQUEST_URI}?features_hash=314-44914 [L,R=301,NC,QSA]

Of course I used my personal admin.php string and now the entire site has a default features hash which selects the summer collection clothes.

 

I excluded from that the admin backend and also the homepage. So no filter there.

 

#tidy



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4817 posts

Posted 10 April 2020 - 10:18 PM #7

great, thanks for sharing


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • nmb
  • Member
  • Members
  • Join Date: 14-Aug 07
  • 103 posts

Posted 10 April 2020 - 10:26 PM #8

...