The woocs_product_fixed_price_data_simple_types filter declares which product types the fixed per-currency price fields appear for in the product editor.
By default the list is simple, external, subscription, composite, bundle and box_product. A custom product type registered by a theme or another plugin is not on it, so its products show no fixed price fields until you add the type yourself.
add_filter('woocs_product_fixed_price_data_simple_types', function ($types) {
$types[] = 'my_custom_type';
return $types;
});
Parameters:
$types (array) - product type slugs
Returns:
(array) the list of types that get fixed price fields
Note: adding a type makes the fields appear, it does not guarantee the custom type reads them when it calculates a price. Test a real order in a second currency before relying on it.
🌸
Shortcodes, functions, actions and filters reference for FOX WooCommerce Currency Switcher
Codex — FOX Currency Switcher
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.