Home Forums WoodMart support forum Product Category visible issue

Product Category visible issue

Viewing 30 posts - 1 through 30 (of 31 total)
  • Author
    Posts
  • #624968

    devisoftoffice
    Participant

    Hello,
    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?…

    #625164

    Luke Nielsen
    Keymaster

    Hello,

    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

    #625486

    devisoftoffice
    Participant

    Hello,

    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…

    #625529

    Luke Nielsen
    Keymaster

    Hello,

    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

    #625601

    devisoftoffice
    Participant

    Ok how To set this…Please Give me demo for User wise category Menu show…

    #625647

    Luke Nielsen
    Keymaster

    Hello,

    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

    #625671

    devisoftoffice
    Participant

    Hello..

    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.
    #625682

    Luke Nielsen
    Keymaster

    Hello,

    Send me access to the account of the b2b user.

    Thank you in advance.

    Kind Regards

    #625692

    devisoftoffice
    Participant

    Ok..

    #625696

    devisoftoffice
    Participant

    Whick Hook used in product Tab Page..
    please find attached

    Attachments:
    You must be logged in to view attached files.
    #626095

    Luke Nielsen
    Keymaster

    Hello,

    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

    #626141

    devisoftoffice
    Participant

    ok..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.
    #626312

    Luke Nielsen
    Keymaster

    Hello,

    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

    #626378

    devisoftoffice
    Participant

    Hello..
    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.
    #626570

    devisoftoffice
    Participant

    Hi,

    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.
    #626840

    Luke Nielsen
    Keymaster

    Hello,

    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

    #627273

    devisoftoffice
    Participant

    How 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.
    #627345

    devisoftoffice
    Participant

    Hello,
    The problem has been pending for 10 days.
    our Clint in problem…
    please Give us best Solution.

    #627578

    Luke Nielsen
    Keymaster

    Hello,

    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

    #627583

    devisoftoffice
    Participant

    oK.. then how to Preset for Product tab userwise…

    #627679

    Luke Nielsen
    Keymaster

    Hello,

    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

    #627688

    devisoftoffice
    Participant

    Ok,
    so in Home page product tab issue with user wise than how can solve it..?

    #628033

    Luke Nielsen
    Keymaster

    Hello,

    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

    #628142

    devisoftoffice
    Participant

    ok..

    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);

    #628233

    Luke Nielsen
    Keymaster

    Hello,

    Please update access to the admin panel.

    I await your response.

    Kind Regards

    #628456

    devisoftoffice
    Participant

    admin login deatils:

    #628857

    Luke Nielsen
    Keymaster

    Hello,

    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

    #630488

    devisoftoffice
    Participant

    Hello,
    How to set shop page sidebar product category filter user role wise…like that home page product category useriwse preset…

    #630599

    Luke Nielsen
    Keymaster

    Hello,

    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

    #630759

    devisoftoffice
    Participant

    OK,
    How to fix Browse Categories in shop page….Home page setting give (Open menu item dropdown)
    but shop not apply this….

Viewing 30 posts - 1 through 30 (of 31 total)