Replace cart attribute field codetalk with English
authorLaury GvR <laury@gaslightmedia.com>
Mon, 12 Dec 2016 20:23:20 +0000 (15:23 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 12 Dec 2016 20:23:20 +0000 (15:23 -0500)
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
js/custom/pageSetup.js

index f38e136..24ab6c5 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -34,4 +34,7 @@ $(document).ready(function () {
         $(this).append('<a class="main-nav-link" href="' + parent_anchor +'">' + dropdown_page_text + '</a>' );
         $(this).addClass('hide-before');
     });
+    $(".woocommerce .cart_item dt.variation-attribute_denomination").each( function () {
+        $(this).text("Donation Amount");
+    });
 });
\ No newline at end of file
index c60dc7d..1013bf7 100644 (file)
@@ -25,4 +25,7 @@ $(document).ready(function () {
         $(this).append('<a class="main-nav-link" href="' + parent_anchor +'">' + dropdown_page_text + '</a>' );
         $(this).addClass('hide-before');
     });
+    $(".woocommerce .cart_item dt.variation-attribute_denomination").each( function () {
+        $(this).text("Donation Amount");
+    });
 });
\ No newline at end of file