Disable Wording Changes on Checkout
-
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)")); } });
- The topic ‘Disable Wording Changes on Checkout’ is closed to new replies.