- This topic has 3 replies, 2 voices, and was last updated 3 years ago by
wensolutions.
- AuthorPosts
- April 29, 2020 at 2:43 pm #25627
jartucio
ParticipantHi! i am starting to use this plugin and i have came across a little problem…
It is confusing for my clients to use the symbol “$” for US dollar because some prices in my local currency (Argentina) use the same symbol “$” so they cannot see the difference.
Here in general we use the symbol “USD” for the US dollar and “$” for the Argentinian Peso.
Is there a way to change the US dollar symbol to “USD” other than installing a CHILD THEME? We’ve been suggested that very kindly, but it’s a mess because it resets the configuration of our site to 0…
Thanks!!
April 30, 2020 at 5:44 am #25638wensolutions
KeymasterHello @jartucio,
If you directly add the code in your parent theme then all of your customizations will be lost upon update to the latest version of the theme.
So you need to go through the child theme for any changes in your parent theme.
Also, we do have the code snippet that helps you bring the parent theme setting to the child. Add this block of code in your child theme functions.php.
function travel_log_child_update_option_vals( $value, $old_value ) { update_option( 'theme_mods_' . get_template(), $value ); return $old_value; // prevent update to child theme mods } function travel_log_child_customizer_default_vals_update( $default ) { return get_option( 'theme_mods_' . get_template(), $default ); } function travel_log_child_customizer_parent_options_import() { if ( get_stylesheet() !== get_template() ) { add_filter( 'pre_update_option_theme_mods_' . get_stylesheet(), 'travel_log_child_update_option_vals', 10, 2 ); add_filter( 'pre_option_theme_mods_' . get_stylesheet(), 'travel_log_child_customizer_default_vals_update' ); } } add_action('init', 'travel_log_child_customizer_parent_options_import');
Hope this helps.
Thank you.
April 30, 2020 at 6:24 pm #25654jartucio
ParticipantHey Wen, how are you?
Well i finally did this. I edited the currencies.php file with the unicode characters and worked perfectly and easy.
Is that so bad?
Thanks for the help!
May 1, 2020 at 3:31 am #25663wensolutions
KeymasterHello @jartucio,
Editing on the currency file will definitely work, but as we have mentioned earlier, you should not make any modification directly in your parent theme as all of the customizations will be lost upon update to the latest version of the plugin.
So please go through the child theme for the changes.
Thank you
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.