• Resolved vnzhlv

    (@vnzhlv)


    At the moment, wholesale prices appear only for wholesale customers. For guests and not-wholesale customers prices are general.
    How to always show wholesale and general price to everybody?
    Option “Only Show Wholesale Products To Wholesale Users” is disabled, Premium version is activated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @vnzhlv,

    Thanks for getting in touch!

    I’m afraid that it is not possible to display wholesale prices to non-wholesale customers. Guests and non-wholesale customers should see only the general prices and wholesale customers can view both general prices and wholesale prices. It is the standard feature of the WooCommerce Wholesale Prices plugin.

    Regarding the “Only Show Wholesale Products To Wholesale Users”, please be aware that this is a premium feature. Unfortunately, we are not allowed to cater tickets relating to our premium products here. For more questions, please contact us on our support line: https://wholesalesuiteplugin.com/support/support-request-form/

    Let me know if there’s anything else I can assist you with; I’m happy to help ??

    Thread Starter vnzhlv

    (@vnzhlv)

    Hi @supportray, if it’s not possible via settings, what the hooks can help me?
    Thank you.

    Thread Starter vnzhlv

    (@vnzhlv)

    Found the solution:
    In functions.php

    add_filter('wwp_filter_wholesale_price_html', 'display_wholesale_price', 10, 7);
    add_filter('wwp_filter_variable_product_price_range_for_none_wholesale_users', 'display_customer_price', 10, 2);
    
    /**
     * @var $product WC_Product_Simple
    */
    function display_wholesale_price($wholesale_price_html , $price , $product , $user_wholesale_role , $wholesale_price_title_text , $raw_wholesale_price , $source ) { 
       //your code
       return $html;
    }
    /**
     * @var $product WC_Product_Simple
    */
    function display_customer_price($price , $product) {
       //your code
       return $html;
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show Wholesale Prices to not wholesale customers?’ is closed to new replies.