Content of the page

woocs_currency_manipulation_before_show

Allows to manipulate with currencies before showing their drop-downs on the front, example:

Structure of the data in variable $currencies in the example above is:

  from ver.2.2.4/1.2.4

woocs_fixed_raw_woocommerce_price

Hook for fixed prices. Need for compatibility with other plugins, for example: https://currency-switcher.com/woocommerce-extra-product-options-themecomplete/    

woocs_cut_cart_price_format

Allows to cut from cart and checkout page ‘format of price’ provided by ‘Custom price format’ plugin option. By default return TRUE, but its possible return FALSE

   

woocs_form_method

Allows to change WOOCS form method from POST to GET

From 2.2.0/1.20  

woocs_woocommerce_variation_prices

Works in index.php -> public function woocommerce_variation_prices -> can be used for any manipulations with variable prices, for example rounding of them. Add next code in functions.php of your current wp theme: Example:

     

woocs_currname_in_option

The hook is applied in file wp-content\plugins\woocommerce-currency-switcher\views\shortcodes\woocs.php for the text manipulation in the switchers drop-down. Example:

Use it by your own logic. Customer request: How can i make sure that there is only a currency symbol in the dropdown without editing the plugin files, so updates are possible. DDSlick dropdown preferred    

woocs_raw_woocommerce_price

Use this hook to manipulate by price values, for example rounding price by your own logic. Examples: https://currency-switcher.com/how-to-round-price-to-50-cents/ – rounding price to the nearest 50 cents

https://currency-switcher.com/round-prices-500/ – How to round prices to 500

https://currency-switcher.com/how-to-round-price-to-99-cents/ – How to round prices to x.99 Also read: https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/  

woocs_get_approximate_amount_text

Use this hook when you activated ‘Show approx. amount’ option in the plugin settings and you want to change default text on the cart/checkout page generated by this feature ‘(Approx. %s)’ to smth another. Example:

$text (string) $wc_price (string) ‘Show approx. amount’  – Show approximate amount on the checkout and the cart page with currency of… read more

woocs_price_html_tail

Use this hook if you want to add any additional information text after a product price on the shop/category page. Example:

Combine it with CSS (in style.css) code if necessary:

 

woocs_price_format

This hook uses in index.php of the plugin -> public function woocommerce_price_format:

So if you have any idea about your own price format use this hook with/without any conditions by your own logic: