Home Forums WoodMart support forum How to display product tab only for certain user role

How to display product tab only for certain user role

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #215590

    Joie
    Participant

    Hello,

    I want to add private note into each product that contain
    The product cost, supplier, and other procuring cost / discount. This is from product meta field

    I want to add this private note to a product tab at front end so it is easier for shop manager to look instead of going through wp-admin dashboard.

    Do you have any idea to display the tab only for shop manager role?

    Thank you
    Joie

    #215639

    Hello,

    The default Woocommerce does not provide such an option and our theme does not either. You will have to find a plugin.

    Best Regards

    #215674

    Joie
    Participant

    If i use the Addtional product tab in Theme options.
    How to make it so that the tab is closed in first place ?
    Especially in mobile, it product tab acts as accordion. I want it to be at closed state initially

    Thank you

    #215715

    Hello,

    Please add this code to the Theme Settings > Custom JS > On the documents ready:

    setTimeout(function() {
    	var $tab = jQuery('.woodmart-tab-wrapper').find('a.active');
    		$tab.siblings('.wc-tab').hide();
    	  $tab.removeClass('active');
    }, 10);

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)