• Resolved hardyzbest

    (@hardyzbest)


    Is there a chance to see the lowest tiered price for each product on the archive page?

    Like this:
    The current price of my article is 1 USD
    10+ would be 0.9 USD per unit
    Right now 1 USD is shown as price on the archive page
    But I want to see something like “from 0.9 USD”

    Even if it’s a temporary function in the functions.php but this would help alot to improve our advertising.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WebWizards

    (@webwizardsdev)

    Hi there,

    In B2BKing -> Settings -> Tiered Pricing, you can enable “Tiered Price Range”: https://prnt.sc/xs5w6P4Y6Gzm

    That would show a price range of $0.9 – $1 on archive pages.

    You can modify that to show only the minimum (0.9), by also adding this PHP code snippet to your site:

    add_filter('b2bking_tiered_range_display_final', function($price, $min, $max, $product){
    	return wc_price($min);
    }, 10, 4);
    Thread Starter hardyzbest

    (@hardyzbest)

    You are a freak, thanks so much!

    For everyone else, if you need a prefix, take this one:

    add_filter('b2bking_tiered_range_display_final', function($price, $min, $max, $product){
    	return '<span class="yourclass"> YOURPREFIX </span>' .wc_price($min);
    }, 10, 4);

    I added a span with a class you can rename how you want it, just replace yourclass . Same goes to YOURPREFIX, that’s the prefix you can call however you want.

    Thread Starter hardyzbest

    (@hardyzbest)

    case closed

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘See the lowest tiered price on products archive page’ is closed to new replies.