Content of the page

$WOOCS->make_rates_auto_update()

This function uses with in-built cron of the plugin to automatically updates its currencies rates. For any reason by your own logic its possible to create functionality when its possible to update currencies rates because of any events of your site. It just an idea for developers.

There is 1 argument in the function: $reset_cron -… read more

$WOOCS->get_currencies($suppress_filters = false)

This function returns an array of all currencies defined on the plugin settings page.

Use this function to get any information about any currency in the plugin system. Data returns as shown in the next example:

If to set $suppress_filters as TRUE – hook ‘woocs_currency_data_manipulation’ inside of the function will be disabled!!  

$WOOCS->default_currency

This is not a function – this is an important variable in the plugin main class WOOCS, and its always equal to default currency which is predefined in the plugin settings.

$WOOCS->current_currency

This is not a function – this is an important variable in the plugin main class WOOCS, and its always equal to the current selected currency which actual on the front of the site

 

$WOOCS->is_multiple_allowed

This is not a function – this is an important variable in the plugin main class WOOCS, and its always shows is ‘Is multiple allowed’ options enabled or not. Predefined in the plugin settings.

If you want let your customers pay with their selected currency on the front of your site – you should set multiple mode… read more

$WOOCS->storage->set_val()

This function works with WOOCS storage where keeps different values, current currency for example.

Possible keys: woocs_current_currency – here keeps selected on the front current currency code woocs_user_country – if enabled GEO IP option its keeps country code of the site visitor + You can use this function to keep any your own intermediate values by your… read more

$WOOCS->storage->get_val()

This function can return any WOOCS storage value, current currency for example.

All values which can be get by this function installed in the WOOCS storage by the next function: $WOOCS->storage->set_val().