• Resolved tremmert

    (@tremmert)


    Hello,
    I have several subscription products that I sell on my site. On the product page, it says:

    From: $9.99 / month and a $99.99 sign-up fee

    How can I change “sign-up fee” to something else, like “hardware fee”?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi!

    You can do this by using a free translation plugin like Loco Translate.

    I know it may sound strange to “translate” your own language, but it works.

    This will allow you to find that phrase and change it to be what you’d like.

    Cheers!

    Thread Starter tremmert

    (@tremmert)

    Shane, Thanks for the advice. Having a bit of trouble though….

    When I go into Loco Translate, select the Woocommerce subscriptions plugin, it tells me:
    No translations found for “woocommerce-subscriptions-master”

    So I select New Template, but get this error:
    Error: body{background-color:#f4f9fa}. Check console output for debugging information

    ANy thoughts?

    Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi,

    Is this Subscriptions? If so, you can open a support ticket with us any time. Just head here: https://woocommerce.com/my-account/create-a-ticket/.

    I believe the error you are getting is because it should be woocommerce-subscriptions not the one you are seeing. That sounds like a download from the repo. Can you use FTP and check to see that the folder in plugins is named correctly?

    Thanks!

    Thread Starter tremmert

    (@tremmert)

    Thanks for your help… I just checked the FTP site, and confirmed that the directory listed is:

    woocommerce-subscriptions-master

    It was such a long time ago, I can not remember how we initially installed Subscriptions…

    Thoughts on how to proceed?

    Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi,

    Yes, you will want to rename that to woocommerce-subscriptions. I would deactivate it first, rename, then activate. Please make a backup just to be safe.

    Cheers!

    Thread Starter tremmert

    (@tremmert)

    Ok, Ill give it a shot and report back…

    Thread Starter tremmert

    (@tremmert)

    Awesome! That worked.. The plugin is working now…

    However, when I filter for “sign-up fee”, it returns one result:

    “Sign-Up fee (%s)”

    I went ahead and changed that to say

    “Hardware fee (%s)”

    But it did not change on the page. I don’t think that is the correct item that needs to be changed. I have cleared cache etc, but it didnt update.

    Any thoughts?

    Thread Starter tremmert

    (@tremmert)

    Bump..

    Anyone have any thoughts on how to get Loco Translate or another tool to change the text displayed by Woocommerce Subscriptions?

    I am needing to change “sign-up fee” to something like “hardware fee”.

    It doesn’t appear that Loco Translate works for this phrase.

    Thread Starter tremmert

    (@tremmert)

    I ended up removing Loco Translate because I couldnt get it to work properly with Woocommerce Subscriptions.

    Just add the following lines to your functions.php file:

    function change_subscription_product_string( $subscription_string, $product, $include )
    {
    if( $include[‘sign_up_fee’] ){
    $subscription_string = str_replace(‘sign-up fee’, ‘something else’, $subscription_string);
    }
    return $subscription_string;
    }
    add_filter( ‘woocommerce_subscriptions_product_price_string’, ‘change_subscription_product_string’, 10, 3 );

    Thread Starter tremmert

    (@tremmert)

    I could never to Loco Translate to work for Woocommerce Subscriptions, so I just added the following to my functions.php and it works great:

    function change_subscription_product_string( $subscription_string, $product, $include )
    {
    if( $include[‘sign_up_fee’] ){
    $subscription_string = str_replace(‘sign-up fee’, ‘something else’, $subscription_string);
    }
    return $subscription_string;
    }
    add_filter( ‘woocommerce_subscriptions_product_price_string’, ‘change_subscription_product_string’, 10, 3 );

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change Sign-Up Fee to alternate text’ is closed to new replies.