• The base price per unit is automatically disabled in frontend for product bundles. According to laws for selling goods in Germany, you have to indicate base prices per unit for product bundles (with similar products) too!

    In bundle options I can put in a bundle regular price and a sale price. Why is the base price per unit disabled, because it could be calculated based on this field as it is for single products in WooCommerce. At minimum I assume an option field e. g. “show base price per unit”, so that I could choose, if I need this price or not.

    If this is not possile, the Plugin is not usable in Germany!

Viewing 1 replies (of 1 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    you can see the bundled item’s price by adding this custom code in the functions.php of your theme:

    if ( ! function_exists( 'yith_wcpb_customization_show_bundled_item_price' ) ) {
       add_action( 'yith_wcpb_after_bundled_item_title', 'yith_wcpb_customization_show_bundled_item_price', 10, 1 );
       function yith_wcpb_customization_show_bundled_item_price( $bundled_item ) {
          $bundled_product = $bundled_item->get_product();
          $price           = wc_get_price_to_display( $bundled_product );
          ?>
          <div class="bundled-item-price">
             <del><span class="amount"><?php echo wc_price( $price ); ?></span></del>
          </div>
          <?php
       }
    }

    In this way, the price of each item will be printed on the product page.

    Can you check it, please?

    Have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘No base price per unit for bundle price in frontend’ is closed to new replies.