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

Not seeing the right currency, after it was ok

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.

Hello,

Hello, I am from Romania and sell furniture only for Romania so I need RON currency to be displayed. The products are imported from Italy and I want to set their price in Euro. So i set default currency to Euro.

My computer is in Romania.

Ive made all the right settings and finally after hours of fails operations  of showing RON the problem was because I didnt set the maxmind license.

Anyway, 2 days ago everything worked ok.

But today the currency showed switched back to EURO. I need RON.

I put another new license from maxmind, but nothing new.

And it is not a another plugin conflict. Already tested that.

Here are the settings:

https://clip2net.com/s/4bwS1zQ

https://clip2net.com/s/4bwS3Jc

https://clip2net.com/s/4bwS53m

https://clip2net.com/s/4bwS6Tl

https://clip2net.com/s/4bwSTbn

In the private area you have acces to admin

also to licence wooks key

thank you

 

Hello

If you don't want the user to be unable to switch currency. In  functions.php  add  code:

add_filter('wp_head',function(){
if (class_exists('WOOCS')) {
global $WOOCS;
$WOOCS->set_currency('RON');
}
});

Sorry for the late reply. It worked.

I saw this code for price manipulation

add_filter('woocs_currency_data_manipulation', 'woocs_currency_data_manipulation', 1, 1);

function woocs_currency_data_manipulation($currencies)
{
foreach ($currencies as $key => $value)
{
if ($key == 'RON')
{
$currencies[$key]['rate'] = $value['rate'] + 0.04*$value['rate'];//add 4%
break;
}
}
return $currencies;
}

It is possible to insert different formulas for different taxonomies like brands (manufacturers)?

Example.

If a product is produced by Nike (pa_brand) the price will be bigger with 6%

If a product is produced by Adidas(pa_brand) the price will be bigger with 10%

I need a small example with this kind of conditional in the manipuation of currency context.

Thank you

 

 

Hello

The plugin does not have this feature

You should find a third party pricing plugin

Hello :)

Ok, I took your advice and bought a plugin that modified the inputed regular price by a formula and display the new value on the product page.

The only problem that I see now is that"by_price" woof filter doesn`t use the calculated values but the original values.

see pictures

Image b8d8a-clip-163kb.png (clip2net.com)

Image 35b58-clip-509kb.png (clip2net.com)

https://novelnorth.ro/product-category/mobilier/scaune/

Can you help me with a snipped to have the price range displayed correctly?

You have access info in pribate area

Thank you

Hello

I'm not sure if this will work correctly with any filter by price

You  can  try  to  use  this  option - https://c2n.me/4bUgAGr.png

The taxes field (available only for Ion slider) only allow me to insert a simple adjutment procent value. In reality I need complex conditional formulas based on category.

But let me understand something.

The simple fact that your Ion slier can display another a calculated value with taxes applied over inputed regular price,  points me to the ideea that this Ion slider you created, can also use, via a small snippet, another calculated value like the one that  was calculated for displaying the price of products by the “product price by formula plugin”.

I mean it is a simple swap of source parameters :)

Can you help me ? Please

Hello

 In reality I need complex conditional formulas based on category. - unfortunately the plugin does not have such an option, because the price data is taken from the database

You can  chenge  prices   in  file - wp-content\plugins\woocommerce-products-filter-free\classes\helper.php  - function get_filtered_price

"You can  chenge  prices   in  file - wp-content\plugins\woocommerce-products-filter-free\classes\helper.php  - function get_filtered_price"

But how do I replace? I`m lost.

Here is that function

public static function get_filtered_price($additional_taxes ="") {
global $wpdb, $wp_the_query, $WOOF;

$args = $wp_the_query->query_vars;
$tax_query = isset($args['tax_query']) ? $args['tax_query'] : array();

if (is_object($wp_the_query->tax_query)) {
$tax_query = $wp_the_query->tax_query->queries; //fix for cat page
}

$meta_query = isset($args['meta_query']) ? $args['meta_query'] : array();

I do not know what to change :)) Maybe it is very simple, to put the displayed price of products in your function(the"product price by formula" plugin has to put that values somewere). I`m assuming I have to pass another parameter, not the $additional_taxes?

If it is a small custom work, I can pay for it. I have my email in private area.

please help me or guide me to solve this thing.

Thank you :)

Hello

Unfortunately, we don't have time for custom tasks. In this case, you should find a third-party developer.