• Resolved alexdubbb

    (@alexdubbb)


    Hi

    Access control on the woocommerce product page is fine. However, the that product is displayed on the product list page. It includes commodity price. Is there a way to avoid this problem?

    thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this.

    Unfortunately Restrict User Access does currently not automatically hide restricted items from lists, archive pages, widgets, or custom queries. This is on the roadmap and has high priority.

    For now, if you are able to edit the template files in your theme, you could hide WooCommerce products like so:

    if(rua_has_user_level(wp_get_current_user(),$level_id)) {
       //show product
    } else {
       //hide product
    }

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘woocommerce’ is closed to new replies.