Currency symbols US dollar Symbol “$” change to USD

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25627
    jartucio
    Participant

    Hi! 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!!

    #25638
    wensolutions
    Keymaster

    Hello @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.

    #25654
    jartucio
    Participant

    Hey 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!

    #25663
    wensolutions
    Keymaster

    Hello @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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.