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

UNI CPO (free version) instant price calculation doesn't work with WOOCS

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,

I just read this post  https://pluginus.net/support/topic/uni-cpo-free-version-with-woocs/ and i think i got the same issue here.

For example, this product (https://fiber2c.com.au/product/10g-aoc/ ) on my website is calculated by its length, after I activate WOOCS, the price of product is calculated correctly in cart but the price will not change instantly if I change the length anymore.

Can you please help me with this problem, thank you so much!

 

Kind regards,

Laura

Hello Laura

please  update  plugin  to latest  version

Read  this  please - https://currency-switcher.com/woocs-labs/

 

 

hi,

I just checked the plugin, it is the latest version.

And I read this from the above-mentioned link :  https://currency-switcher.com/product-options-and-price-calculation-formulas-for-woocommerce-uni-cpo/

Due to i am using the free version of UNI CPO, the code is different from the premium one, so what I did is:

  1. Add the code you provided into the function"uni_cpo_price" of the  file"uni-cpo-core-functions.php"

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$price = $WOOCS->woocs_exchange_value(floatval($price));
}}

2. Change selector of prices: .summary.entry-summary .price .woocs_price_code > .amount

And the prices are calculated perfectly on the product page and in cart (example: https://fiber2c.com.au/product/10g-aoc/)

But on the shop page, the price has been converted twice from AUD to USD,

the example product 10G-AOC price is AUD 53.90, USD 42.04, but it displayed as USD 32.79 on the shop page : https://fiber2c.com.au/shop/?swoof=1&product_cat=aoc,direct-connecting-aoc&really_curr_tax=42-product_cat

 

Hello

Ok!  Please  drop  me wp-admin +FTP access - https://c2n.me/43SC6rb.png -> https://c2n.me/42BAoj4.png

I will add this plugin to the adaptation queue

Hi

Thank you,  I just added the wp-admin+ FTP.

BTW this issue can be found at the shop page, and also the woo-shortcode-option section, ex: the 10g aoc price on the homepage should be 42.04 in USD.

Hello

OK! I added this plugin to the adaptation queue

Hello

I can not find the folder with your site

Please  check  your  FTP access  OR  drop  me  a path

Sorry Pablo,

I dropped the wrong one,  updated, thank you.

Hello

Ok! I'll write you when we get the result

hello Pablo,

 

Hi Pablo,

the issue has been solved, please remove if from the adaptation queue, thank you!

I added && !is_shop()&& !is_singular() conditions to the provided code, and now it works fine!

if (class_exists('WOOCS')&& !is_shop()&& !is_singular()) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
}

 

Regards,

Laura

Hello Laura

Great!  Thank you  for  cooperation