PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

[FOX LABS] Problem with Product Bundle (WPClever): amount zero

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 please
If 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.

Hi! First of all, thanks for your amazing plugin. Im facing a problem with FOX and this plugin for product bundles (only in one currency): https://es.wordpress.org/plugins/woo-product-bundle/

I set up 2 currencies (ARS and USD), and the problem comes up when the user purchases a bundle in USD, they end up paying 0 USD (zero).

You can see the issue in this image: https://ibb.co/yV1NS9b

The total is 36,19 USD but it ends up being zero. How can i solve this?

Hello Gustavo

You can resolve it trough FOX LABS described here, please read this article https://currency-switcher.com/woocs-labs

Hi! Yes, i read all of that but in the list of plugins (https://currency-switcher.com/codex/#code) there is no mention about"WPC Product Bundles for WooCommerce"  (https://es.wordpress.org/plugins/woo-product-bundle/). These 2 plugins are the only ones mentioned:

  1. Product Bundles (by WooCommerce)
  2. Product Bundles – by SomewhereWarm

I really need to solve this because all orders (USD) are coming with price zero. Again, thanks a lot for your plugin!

Hello Gustavo

I registered this ticket as LABS for https://wordpress.org/plugins/woo-product-bundle/, but results can be only on the end of next week ~18-08-2023

Okay! Thank you very much, i really appreciate it!

We will write to you as soon as we get the result

Hello

In  file - functions.php

add_filter( 'woosb_item_price_before_set', function($_price, $cart_item){
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed && $_price) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$_price = $_price / $rate;
}
}
}

return $_price;
}, 10, 2);

and  do a test

Hi! Thanks a lot!! It worked and now the total amount is correct. The only thing is that now the price and subtotal price of the bundle on Cart page shows"USD" (this is correct) but the amount in"ARS", so it ends up showing a huge number, just for the parent item of the bundle.

Thanks to your code the client pays the correct price, but maybe there is a fix to show the correct number on parent element of the bundle? Just to avoid scaring clients with huge numbers that are not real haha

Screenshot: https://ibb.co/wWZMqHF (Im using Divi theme)

Thanks again!

 

Hello

Please  clear  all cache  and  Ctrl+F5

I can't reproduce this error - https://share.pluginus.net/video/v20230828110143.mp4