From b6adfcdd9996659d96776f2448d2210a0c840650 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 12 Dec 2016 15:23:20 -0500 Subject: [PATCH] Replace cart attribute field codetalk with English Attributes of items were getting an attribute_denomenation label in the Woocommerce cart. This has been replaced (using jquery) with "Donation Amount" --- js/app.js | 3 +++ js/custom/pageSetup.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/js/app.js b/js/app.js index f38e136..24ab6c5 100644 --- a/js/app.js +++ b/js/app.js @@ -34,4 +34,7 @@ $(document).ready(function () { $(this).append('' + dropdown_page_text + '' ); $(this).addClass('hide-before'); }); + $(".woocommerce .cart_item dt.variation-attribute_denomination").each( function () { + $(this).text("Donation Amount"); + }); }); \ No newline at end of file diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index c60dc7d..1013bf7 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -25,4 +25,7 @@ $(document).ready(function () { $(this).append('' + dropdown_page_text + '' ); $(this).addClass('hide-before'); }); + $(".woocommerce .cart_item dt.variation-attribute_denomination").each( function () { + $(this).text("Donation Amount"); + }); }); \ No newline at end of file -- 2.17.1