Public Ticket #3751653

B2C price on B2B view : on sale products

Closed
Comments
24 Tickets 18
Eric Walter started the conversation 2 years ago on October 25, 2024 at 5:06pm

Hi Stefan. When the option "display B2C products price to B2B customers" is activated AND the B2C product is on sale the B2C price displayed is the on sale one.

I think it's not relevant : an existing sale on B2C product don't means the B2B price structure is changing : could you provide any snippet code to correct that and stay displaying normal B2C price to B2B customers ?

Thanks by advance,

Regards

Eric

2,762
KingsPlugins replied 2 years ago on October 27, 2024 at 8:45pm

Hi Eric,

I believe you can do it with this snippet:

add_filter('b2bking_use_retail_sale_price','__return_false');

 

It should then show the regular price only for B2B users comparing both prices.

 

Kind regards,

Stefan

Sign In