Okay
  Public Ticket #3751653
B2C price on B2B view : on sale products
Closed

Comments

  •  17
    Eric started the conversation

    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,281
    WebWizards replied

    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

  •  17
    Eric replied

    excellent, thanks. I'll test tomorrow the version you sent me about blocks issue.