Changeset 1745573
- Timestamp:
- 10/12/2017 04:56:09 PM (8 years ago)
- File:
-
- 1 edited
-
woo-ea/tags/1.0.2/earnbox-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-ea/tags/1.0.2/earnbox-for-woocommerce.php
r1744783 r1745573 97 97 function send_earnbox_invite($earnbox_options) { 98 98 wc_enqueue_js(' 99 if (window.location.href.indexOf("&tab=checkout§ion=earnbox") === -1) return false 99 100 var accountReviewMsg = document.querySelector(".account-review-msg") 100 101 var accountTitle = document.getElementById("earnbox-account-title") … … 119 120 }, 120 121 success:function(data) { 121 if (!data) return122 122 accountTitle.className = "" 123 accountTitle.innerText = "We have sent an invitation to your email address."124 123 earnboxLoader.parentNode.removeChild(earnboxLoader) 125 124 accountTitle.nextElementSibling.parentNode.removeChild(accountTitle.nextElementSibling) 125 if (data === "") { 126 accountTitle.innerText = "Something went wrong.. Please contact us to get your invite: info@earnbox.co" 127 return 128 } 129 130 if (data === "false") { 131 accountTitle.innerText = "It seems like you already used your invite.." 132 return 133 } 134 135 accountTitle.innerText = "We have sent an invitation to your email address." 136 126 137 }, 127 138 error: function(errorThrown){
Note: See TracChangeset
for help on using the changeset viewer.