• Resolved arnaudriviere

    (@arnaudriviere)


    Hello,
    The plugin works fine but I’m surprised there’s not an option to change the text “From” and “Up to”. We might want to display these 2 strings in a different language or simply replace them with other text.
    Is there a way to change it inside the plugin or is it possible to implement this directly into the plugin please ? Otherwise I’ll have to find another plugin that does that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    Thanks for reaching out to me. If you want to translate the From and UpTo just use the Loco Translate plugin.

    But if you want to replace the text, simply paste the below snippet inside your child theme’s functions.php or as a snippet inside the Code Snippets plugin.

    For the From Text-

    add_filter('vpd_prefix_min_price', function( $min_prefix ){
    	return __('Your Min Text ', 'variation-price-display');
    });

    For the UpTo Text-

    add_filter('vpd_prefix_max_price', function( $max_prefix ){
    	return __('Your Max Text ', 'variation-price-display');
    });

    Please let me know if it helps. ??

    Thanks

    Thread Starter arnaudriviere

    (@arnaudriviere)

    Fierce, it’s working like a charm !
    Thank you for your answer !

    Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    Glad to know it works for you.

    If you like this plugin and found my support helpful, my humble request to you to write your beautiful words here.

    Your beautiful words inspire me a lot.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Replace “From” and “Up to”’ is closed to new replies.