Public Ticket #3043218

display "from" price instead of also display high price on variants on catalog page

Closed
Comments
18 Tickets 8
Norbert Strappler started the conversation 4 years ago on May 13, 2022 at 8:00am

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,762
KingsPlugins replied 4 years ago on May 13, 2022 at 11:44am

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

18 Tickets 8
Norbert Strappler replied 4 years ago on May 16, 2022 at 9:51am

Hey Stefan,

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

Kind regards
Bernhard

1

Sign In