Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Product price: Use comma ',' as decimal seperator
- This topic has 1 reply, 2 voices, and was last updated 5 years, 8 months ago by
WCFM Forum.
Viewing 1 reply thread
- AuthorPosts
- August 30, 2019 at 10:17 am #79212
fdeckers
ParticipantI need to set the product price using a comma ‘,’ as decimal seperator. This is also mt WooCommerce setting, but is does not work in WCfM. How can I use a comma as decimal seperator for product price?
- September 2, 2019 at 6:42 am #79553
WCFM Forum
MemberHi,
Please add this code to your site –
add_filter( 'wcfm_product_manage_fields_pricing', function( $pricing_fields, $product_id, $product_type ) { if( isset( $pricing_fields['regular_price'] ) ) { $pricing_fields['regular_price']['type'] = 'text'; } if( isset( $pricing_fields['sale_price'] ) ) { $pricing_fields['sale_price']['type'] = 'text'; } return $pricing_fields; }, 50, 3 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.