• Hello guys,

    In my virtual store using the Divi theme along with woocommerce I have the two groups of users end users and my resellers, in the case of my final client would need only appear the “buy” button. Already for my resellers only the “add to order” button (provided by the YITH Request A Quote plugin).

    Would such a customization be possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Please don’t put [Woocommerce] in the topic titles (now removed), that’s not how the support forums work here.

    If you have a “YITH Request A Quote plugin” question then please post to that sub-forum via this link.

    https://wordpress.org/support/plugin/yith-woocommerce-request-a-quote#new-post

    That will put your question in the correct sub-forum.

    Thread Starter lucaslvm

    (@lucaslvm)

    Sorry for the mistakes I’m pretty new in the forum.

    Going back to the topic, I’m trying something with the following code:

    $user = wp_get_current_user();
    if ( in_array( 'revenda', (array) $user->roles ) ) {
        
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove purchase button by groups’ is closed to new replies.