Home › Forums › WoodMart support forum › Product Category visible issue
Product Category visible issue
- This topic has 30 replies, 2 voices, and was last updated 5 months, 3 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
December 24, 2024 at 8:53 am #624968
devisoftofficeParticipantHello,
I am using the default demo of Woodmarath theme .
In this Users Wise Category Hide for Products Visibility by User Roles for WooCommerce Pulgin using , Where was Problem In Category Not Hide in home page product tab page and shop page…i alse contect Products Visibility by User Roles for WooCommerce Support team then called me , “The woocommerce_product_is_visible hook is not being triggered on the homepage, which is why products are not being hidden there. Could you please contact theme support and ask them which hook they are using instead?…
December 24, 2024 at 6:21 pm #625164
Luke NielsenKeymasterHello,
Our theme uses the
woocommerce_product_is_visible
hook just like the default theme, so could you explain in more detail exactly how you check this, and also check how it works with the default theme using the woocommerce shortcode [product]https://woocommerce.com/document/woocommerce-shortcodes/products/
Kind Regards
December 26, 2024 at 2:55 pm #625486
devisoftofficeParticipantHello,
How to Set browse category menu User role wise..
Exp. i m using multi user role like B2B user, Local user role..
in this i set B2b user category [cup], [plates] like this..
where Local user for cup, plate like this category…when login user wise in B2B user login shom me browse category cup, plate…
ectully show only [cup], [plate]…how to solve this…
December 26, 2024 at 6:15 pm #625529
Luke NielsenKeymasterHello,
We have not encountered a similar issue, all we can recommend is to use presets for each user role https://monosnap.com/file/zsjLABL92m8zFOg9rrMqIs6meYJmU0 and already have the condition for each user to change the headers and in the configuration of each header there will be a different menu.
Kind Regards
December 27, 2024 at 8:57 am #625601
devisoftofficeParticipantOk how To set this…Please Give me demo for User wise category Menu show…
December 27, 2024 at 11:36 am #625647
Luke NielsenKeymasterHello,
Duplicate your header – https://prnt.sc/DdBRhJfzgI68 and define different menus for each one base on your requirements – https://prnt.sc/Nd-ZR-wz44hY
Then create a preset in Theme Settings with the condition that is related to the specific role – https://prnt.sc/RkiMiRxpdu6p, edit the preset’s settings and change the header here – https://prnt.sc/m80PG7CfynlI thus you will define another header with other menu items for a specific role.
Kind Regards
December 27, 2024 at 12:44 pm #625671
devisoftofficeParticipantHello..
Thank You..
But i m trying this..
Browse Categories not changes in B2B user..
Please Check..Attachments:
You must be logged in to view attached files.December 27, 2024 at 12:58 pm #625682
Luke NielsenKeymasterHello,
Send me access to the account of the b2b user.
Thank you in advance.
Kind Regards
December 27, 2024 at 1:27 pm #625692
devisoftofficeParticipantOk..
December 27, 2024 at 1:45 pm #625696
devisoftofficeParticipantWhick Hook used in product Tab Page..
please find attachedAttachments:
You must be logged in to view attached files.December 30, 2024 at 10:22 am #626095
Luke NielsenKeymasterHello,
1. I have added a priority (https://prnt.sc/XV6Tr1qRCAhJ) to the preset, and now it appears for the b2b user – https://prnt.sc/EuFwar-9T0AQ
2. In general, to hide those products, you need to use the woocommerce_product_is_visible hook, if it is not being triggered on the homepage, make sure that your custom is right and the page is not cached.
Kind Regards
December 30, 2024 at 12:02 pm #626141
devisoftofficeParticipantok..done
But home page and shop page show all product.
how to hide userwise product category.Attachments:
You must be logged in to view attached files.December 30, 2024 at 7:00 pm #626312
Luke NielsenKeymasterHello,
We have tested the woocommerce_product_is_visible hook and that product was hidden, here is an example:
add_action('woocommerce_product_is_visible', function ( $visible, $product_id ) { if (270 == $product_id) { return false; } return $visible; }, 10, 2);
Kind Regards
December 31, 2024 at 9:24 am #626378
devisoftofficeParticipantHello..
that product was show in B2B user ..please check product tab in home page and shop please also..Attachments:
You must be logged in to view attached files.January 1, 2025 at 3:50 pm #626570
devisoftofficeParticipantHi,
Hope this email finds you well.
This is to inform you that when you visit the page, the products are hidden, when you click the aero button highlighted in the screenshot below, the ajax hook is be triggered and it prevents the hook “woocommerce_product_is_visible” to load.
in this highlight with red line
Attachments:
You must be logged in to view attached files.January 2, 2025 at 5:27 pm #626840
Luke NielsenKeymasterHello,
This hook always works regardless of the method of loading this product, but in our opinion, during the hook, the mask that hides this product is most likely not working, could you please provide the code that hides these products for further study?
Kind Regards
January 4, 2025 at 9:36 am #627273
devisoftofficeParticipantHow to Set Product tab userwise in home page.??
In this image userwise show product..
can i have Preset tool Use?
Attachments:
You must be logged in to view attached files.January 4, 2025 at 3:51 pm #627345
devisoftofficeParticipantHello,
The problem has been pending for 10 days.
our Clint in problem…
please Give us best Solution.January 6, 2025 at 12:37 pm #627578
Luke NielsenKeymasterHello,
I’m sorry, but it’s not possible to adjust each element on the home page in this way.
If you have additional questions, let me know.
Kind Regards
January 6, 2025 at 12:51 pm #627583
devisoftofficeParticipantoK.. then how to Preset for Product tab userwise…
January 6, 2025 at 3:40 pm #627679
Luke NielsenKeymasterHello,
Presets don’t work for separate elements, they work for pages, category pages, header/footer, etc. https://prnt.sc/jT_xvniEInfT
https://xtemos.com/docs-topic/theme-settings-presets/
Kind Regards
January 6, 2025 at 3:54 pm #627688
devisoftofficeParticipantOk,
so in Home page product tab issue with user wise than how can solve it..?January 7, 2025 at 4:28 pm #628033
Luke NielsenKeymasterHello,
Sorry, but there is no option in Theme Settings available for that. It requires customizations and this is beyond our limitations and support policy.
Kind Regards
January 8, 2025 at 8:38 am #628142
devisoftofficeParticipantok..
Hello code is here…
You can visit the below given path, then in the front file mentioned below, there you will find the hook and the function that we are using to hide the products.
Path:
products-visibility-by-user-roles/class_afpvu_front.php
Hook:
add_filter(‘woocommerce_product_is_visible’, array( $this, ‘afpvu_check_visibility_rules’ ), 10, 2);
January 8, 2025 at 1:19 pm #628233
Luke NielsenKeymasterHello,
Please update access to the admin panel.
I await your response.
Kind Regards
January 9, 2025 at 8:44 am #628456
devisoftofficeParticipantadmin login deatils:
January 10, 2025 at 5:54 pm #628857
Luke NielsenKeymasterHello,
We have investigated it deeply, and unfortunately, when loading products using Ajax, the validation in your plugin does not work, so no user data is available during this action. So, unfortunately, it’s not possible to fix.
Kind Regards
January 17, 2025 at 10:50 am #630488
devisoftofficeParticipantHello,
How to set shop page sidebar product category filter user role wise…like that home page product category useriwse preset…January 17, 2025 at 3:55 pm #630599
Luke NielsenKeymasterHello,
Sorry, we don’t have presets for the filters. Our product category filter comes from WooCommerce so check whether that plugin has any prebuilt features for the filters.
Kind Regards
January 18, 2025 at 12:14 pm #630759
devisoftofficeParticipantOK,
How to fix Browse Categories in shop page….Home page setting give (Open menu item dropdown)
but shop not apply this…. -
AuthorPosts
- You must be logged in to create new topics. Login / Register