Home › Forums › WoodMart support forum › Setting preset on condition of product category ID did not work
Setting preset on condition of product category ID did not work
- This topic has 10 replies, 2 voices, and was last updated 1 hour, 41 minutes ago by qtwrk555.
-
AuthorPosts
-
June 27, 2024 at 11:44 am #575877
qtwrk555ParticipantI have few categories that I want to use different setting on “product archive -> products styles” , so I intent to use preset
I set condition to
term ID equals 1049 (which is targeted category ID)
but on that category , nothing changed
if I choose other condition , like user role = admin , then I can see the change
however, if I set
taxonomy equals product_cat
it doesn’t work either.
any idea how to debug ?
Attachments:
You must be logged in to view attached files.June 27, 2024 at 12:04 pm #575885
Luke NielsenKeymasterJune 27, 2024 at 12:08 pm #575888
qtwrk555Participantyou must have overlooked my screenshot , I tried term id as well
June 27, 2024 at 12:23 pm #575895
Luke NielsenKeymasterHello,
Please provide me with access to the admin panel so I can check the site settings.
Thank you in advance.
Kind Regards
June 27, 2024 at 12:42 pm #575903
qtwrk555Participantpasswordless login link provided in private content
you can use category ID 100, 1049, 1151 as example
my goal was change
product archive -> products grid -> products columns on desktop
on these 3 categories , for example by default other has 5 column , I want to make these 3 categories to show different , let’s say 2 column or something.June 28, 2024 at 11:51 am #576172
Luke NielsenKeymasterHello,
But those categories are empty – https://prnt.sc/OVMvbu18hitx, it will not work if there are no products. May I test it on another category?
Thank you in advance.
Kind Regards
June 28, 2024 at 12:19 pm #576178
qtwrk555Participantyes, the category itself is parent cat or grand-parent cat
but the products are added in its sub category
July 1, 2024 at 2:12 pm #576730
Luke NielsenKeymasterHello,
When you select in the preset 2 columns – https://prnt.sc/bXt-XuY_LzcQ and on the Shop page you see that icon is activated but the grid is still e.g. 4 or 5 columns – https://prnt.sc/hgDUX9N9wPIU, it means that the grid is saved in the cookie so you need to activate the grid icon for 2 columns (click on it) to activate it. It works in such a way and it cannot be fixed. It will only do this for anonymous users.
Kind Regards
July 1, 2024 at 2:14 pm #576731
qtwrk555Participantcan we use PHP to remove the cookie about the grid column ?
like if there is any filter to check which preset is in use
like
`
if preset X is active ; then
delete cookie XXX
`
July 2, 2024 at 4:32 pm #577132
Luke NielsenKeymasterHello,
Sorry to say but right now there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope.
Hope you can understand our limitations.Kind Regards
July 2, 2024 at 4:40 pm #577137
qtwrk555Participantyou don’t have anything like apply_filter , add_action , that kind of stuff I can use to check what preset is in use ?
I can handle the rest of it , just need a way to detect what preset is in use on current page
-
AuthorPosts
- You must be logged in to create new topics. Login / Register