• Resolved awesomeflyingdude

    (@awesomeflyingdude)


    Hi, love the plugin, thanks! I know you’ve said the plugin is not to be used with a normal store, and I thought my client would be okay with the “donor”/”donation” wording, but they’ve asked me to change it. I used some jQuery to successfully change some of the wording since the form classes are different on the checkout page when submitting a donation vs. submitting a subscription order, but a few of the elements are being changed back after my jQuery executes. (I can watch them change to my text, then back to the text from the plugin.) Is there any way to completely disable the wording changes so they stay with the original Woocommerce words? Here’s the code I’ve used to successfully change everything except “Donation Amount” -> “Total”, “Donation notes” -> “Order notes”, and “Donate now” -> “Place order”. Thanks!!

    jQuery(function($)
        {
        if ($("body.woocommerce-checkout").length > 0) {
            $("form.woocommerce-checkout .woocommerce-billing-fields h3:first-of-type").text($("form.woocommerce-checkout .woocommerce-billing-fields h3:first-of-type").text().replace("Donor", "Billing"));
    		$("form.woocommerce-checkout h3#order_review_heading").text($("form.woocommerce-checkout h3#order_review_heading").text().replace("donation", "order"));
    		$("form.woocommerce-checkout p.notes #order_comments").attr("placeholder", "Notes about your order");
    $("form.woocommerce-checkout table.shop_table tfoot th").text($("form.woocommerce-checkout table.shop_table tfoot th").text().replace("Donation Amount", "Total"));
    		$("form.woocommerce-checkout #payment button#place_order").text($("form.woocommerce-checkout #payment button#place_order").text().replace("Donate now", "Place order"));
    		$("form.woocommerce-checkout p.notes label").text($("form.woocommerce-checkout p.notes label").text().replace("Donation notes (optional)", "Order notes (optional)"));
        }
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi, thanks for reaching out. Did you try Loco Translate? You can use it to change every string in the plugin.
    The reason why the text changes back is that WooCommerce updates the order review table after every cart change.
    Best, Jonas

    Thread Starter awesomeflyingdude

    (@awesomeflyingdude)

    Thanks, Jonas! Loco Translate did the trick!

    Trying to use this plugin + a store is a huge pain. Will your solution work for everyone AwesomeFlyingDude? If so how do we implement this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Wording Changes on Checkout’ is closed to new replies.