Okay
  Public Ticket #3043218
display "from" price instead of also display high price on variants on catalog page
Closed

Comments

  •  8
    Norbert started the conversation

    Hey WebWizards Team, our client would like to have it displayed this way on the catalog page.

    https://prnt.sc/jxtvY30DxhBh

    But we seem not to figure out how to do that, any tips on how we can adjust it for example with PHP template, or any other solution?

    Kind regards
    Bernhard

  •  2,285
    WebWizards replied

    Hi Bernhard,

    I believe you may be able to achieve that by adding the following PHP code snippet to your site:

    function iconic_format_price_range( $price, $from, $to ) {
        return 'ab '.wc_price( $from );
    } 
     
    add_filter( 'woocommerce_format_price_range', 'iconic_format_price_range', 10, 3 );
    

    In relation to B2BKing, it may be necessary that the following setting is DISABLED: In B2BKing -> Settings -> Tiered Pricing -> Show Tiered Price Range.


    After adding that snippet, you should also save B2BKing settings / save a product, so price caches can clear.


    Kind regards,

    Stefan

  •  8
    Norbert replied

    Hey Stefan,

    thanks for the detailed answer, I will pass this on to our developer and then report back again.

    Kind regards
    Bernhard