|
Don't run custom code on a page with the toolset form
Started by: Miguel
in: Toolset Professional Support
Quick solution available
Problem:
The customer is struggling with formating numbers of the price field.
Solution:
The customer specified the page he wanted to apply the formating rules so it wouldn't impact on other pages as well.
add_filter('wpcf_fields_slug_arancel_value_display', 'my_price_format');
function my_price_format($value) {
if (is_singular( 'CPT' ) ) {
$value = "ARS " . number_format($value, 0, ',', '.');
}
return $value;
}
|
|
2 |
6 |
11 months, 3 weeks ago
Miguel
|