Problem with Woocommerce Product Bundles
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 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.
Quote from majestyskis-internal on October 11, 2019, 10:37This 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
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
Quote from majestyskis-internal on October 11, 2019, 10:44I also tried the solution from codex but it's not working in this case.
I also tried the solution from codex but it's not working in this case.
Quote from Pablo Borysenco on October 11, 2019, 11:53Hello
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);
}
}
}
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);
}
}
}
Quote from majestyskis-internal on October 11, 2019, 12:15Thanks 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.
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.
Quote from Pablo Borysenco on October 14, 2019, 11:19Hello
what version of the plugin are you using?
And read this - https://currency-switcher.com/woocs-labs/
Hello
what version of the plugin are you using?
And read this - https://currency-switcher.com/woocs-labs/