Hi,
I am trying to achieve a custom plugin for displaying prices for both B2C and B2B on archive and product pages.
1) How to get REGULAR B2C price for B2B user. I found something for product page but nothing for archives.
2) Is it possible to add product price for B2C with Vat and for B2B without VAT?
Here is my part of the code.
echo '<div class="wcvbp-variation-column">' . add_filter('b2bking_both_prices_retail_adjust_tax', '__return_false') . '</div>';
// Cena velkoobshodní BEZ DPH echo '<div class="wcvbp-variation-column">' . ( $sale_price ? '<span class="wcvbp-sale-price">' . wc_price( $sale_price ) . '</span>' : wc_price( $regular_price ) ) . '</div>';
// Cena velkoobshodní S DPH
echo '<div class="wcvbp-variation-column">' . ( $sale_price ? '<span class="wcvbp-sale-price">' . wc_price( $sale_price * 1.12 ) . '</span>' : wc_price( $regular_price * 1.12 ) ) . '</div>';



