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

Compatibility with CTX Feed Pro

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, support,

I am on behalf of the team of the CTX Feed Pro WordPress plugin (Webappick). We have given the compatibility with your WOOCS plugin. We managed it with the cart way.

Do you have any function where we can pass product id/obj, currency from, and currency to and we will get a specific product price for a specific currency?

We didn't find any method in your plugin. Some of the clients facing the issue with both of our plugins. Please tell us about the method or way how to get the converted product price by giving any currency for another currency.

Suppose USD price to EUR price for a product.

Waiting for your positive reply.

Thank You

Nazrul Islam Nayan

Webappick LLC

Hello Nazrul

Sure! There are several ways

But first I want to give a few explanations:

  1. In the plugin, you can set the base currency, this currency in which all prices are stored. In fact, this is"from currency"
  2. if you use the standard methods of getting the price, the price will be converted using hooks

To convert  price(any value):

1 read this - https://currency-switcher.com/hook/woocs_convert_price  (the price must be transmitted in the base currency)  This will convert to current currency.  To  set  current  currency - https://currency-switcher.com/function/woocs-set_currency

2  You can  use  functions:

global $WOOCS;

$WOOCS->set_currency('EUR');

$eur_price = $WOOCS->woocs_exchange_value($value) ;

 

3 Or standard functionality:

global $WOOCS;

$WOOCS->set_currency('EUR');

$eur_price = $product->get_price();

More  info - https://currency-switcher.com/codex

Examples of adaptations - https://currency-switcher.com/codex#code

If you have any more questions write to me. You can also send specific pieces of code, I will try to help with the solution