• Resolved braanmcbrutal

    (@braanmcbrutal)


    Hi

    On my site I have a custom login for wholesalers where I only sell certain products to wholesalers – so not to the consumer.

    Aka there is no retail price only wholesale.

    How can I remove the retail price and only display the wholesale price.

    What is happening is if a product does not have a set retail price then on the product page it does not show the wholesale price – so user cannot add to cart.

    Is there not a way to only use the wholesale price. Alternatively is there not a snippet to set the default retail price for wholesale products?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @braanmcbrutal,

    Thanks for using the plugin,

    We have shared the code, kindly add this code in your theme’s functions.php file.

    add_action('init', function() {
    	if( wp_get_current_user()->roles[0] == 'wwp_wholesaler' ) {
    		?>
    			<style>
    				.wwp-wholesale-pricing-details p:nth-child(odd) {
    					display: none;
    				}
    			</style>
    		<?php
    	}
    });

    This code will hide the product Retail Price and Save Price for the Wholesale users.
    Please check the screenshots:
    Before: https://prnt.sc/1qbpjrp
    After: https://prnt.sc/1qbpiyh

    Let us know if you have any questions.

    Thanks

    Thread Starter braanmcbrutal

    (@braanmcbrutal)

    Hi There

    Thanks for this reply – I’ve tried the above snippet

    But doesn’t really solve my problem.

    The problem is I don’t have a retail price – Meaning there is noting inputted into the standard price section.

    So if I only add a wholesale price and there is no retail set – Then it doesn’t give me the add to cart option only add to Wishlist.

    That’s what I’m trying to resolve. To be able to still add the product to cart with only the wholesale price. Is this possible?

    A.Tariq

    (@arsalantariq)

    Hi @braanmcbrutal,

    At the moment, it is not possible with the plugin. You have to add the initial price for wholesale price.

    When you add the regular price then use the code snippet you will be able to hide the retail price.

    Thanks

    Thread Starter braanmcbrutal

    (@braanmcbrutal)

    Thanks for the swift reply!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I remove the default retail price and only display wholesale’ is closed to new replies.