Support Forum

Content of the article

WPBE - WordPress Posts Bulk Editor Professional
You need to log-in to create request (topic) to the support

Problem with Woocommerce Product Bundles

(new from 01-07-2019)
This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see green button on the right side) and press Save button.
If you not got email within 24 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

This is the official Woocommerce plugin: https://woocommerce.com/products/product-bundles/

When prices are automatically converted form PLN to EUR everything is ok but when prices are set manually on product page there is no percentage discount for bundled products. Do you have any idea how to fix it? Prices in PLN (which is main currency) work fine but when I switch currency discounts are gone.

You can check it here: http://vps716575.ovh.net/en/shop/skis/all-mountain-resort/adventure-skis/

Take a look at following bundled products:

Roxa R3S 110 is automatically converted and prices are discounted
Roxa R3S 130 has fixed price and there's no discount

I also tried the solution from codex but it's not working in this case.

Hello

Try  it please:

In file \wp-content\plugins\woocommerce-product-bundles\includes\class-wc-pb-product-prices.php add code  http://c2n.me/3Q91KD3.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->current_currency != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
if ($WOOCS->is_multiple_allowed) {
$discounted_price = $discounted_price / $currencies[$WOOCS->current_currency]['rate'];
}
}
}

in file \wp-content\plugins\woocommerce-product-bundles\includes\class-wc-pb-display.php  add code http://c2n.me/3Q92d39.png

$is_multiple=1;
if (class_exists('WOOCS')) {
global $WOOCS;
if (!$WOOCS->is_multiple_allowed) {
$is_multiple=0;
$suffix="";
}

}

AND add this  line http://c2n.me/3Q92BCO.png

'woocs_is_multiple'                   => $is_multiple

In file \wp-content\plugins\woocommerce-product-bundles\assets\js\add-to-cart-bundle.js  add code http://c2n.me/3Q92RXm.png

/*woocs*/
if (woocs_current_currency != undefined && woocs_current_currency['rate'] != undefined && wc_bundle_params.woocs_is_multiple==0) {
price = wc_pb_number_round(price * woocs_current_currency['rate']);
}

In file \wp-content\plugins\woocommerce-product-bundles\templates\single-product\bundled-item-optional.php  add code – https://c2n.me/3RApndm.png

if (class_exists('WOOCS')) {
global $WOOCS;
$_price = $bundled_item->product->get_price();
if ($WOOCS->current_currency != $WOOCS->default_currency) {

$currencies = $WOOCS->get_currencies();
if ($WOOCS->is_multiple_allowed) {

$price_html =$WOOCS->wc_price( $_price/ $currencies[$WOOCS->current_currency]['rate'],false);

}

}

}

Thanks for reply. This code caused strange behavior of bundles prices. Please take a look at: http://vps716575.ovh.net/en/shop/skis/all-mountain-resort/adventure-skis/ Prices don't match those entered in backend. Also regular grayed out prices are gone.

Hello

what version of the plugin are you using?

And  read  this - https://currency-switcher.com/woocs-labs/