7 ps of marketing mix diagram 2 (2024)

"; } else { this.$refs.forgotsubmit.innerHTML = "Resend"; this.$refs.forgotsubmitbutton.disabled = false; this.$refs.responseforgot.innerHTML = "

" + data.message + "

"; } }); } }, loginform() { this.$refs.loginsubmit.innerHTML = "Please wait..."; this.$refs.loginsubmitbutton.disabled = true; this.inputElements = [...document.getElementById('ajaxlogin-login-formpdp').querySelectorAll("[data-rules]")]; this.inputElements.map((input) => { if (Iodine.is(input.value, JSON.parse(input.dataset.rules)) !== true) { this.$refs.loginsubmit.innerHTML = "Login"; this.$refs.loginsubmitbutton.disabled = false; const error = Iodine.is(input.value, JSON.parse(input.dataset.rules)); event.preventDefault(); input.classList.add("invalid"); Iodine.messages.required = "This is a required field."; Iodine.messages.email = "Please enter a valid email address (Ex: johndoe@domain.com)."; this[input.name].errorMessage = Iodine.getErrorMessage(error); } else { input.classList.remove("invalid"); this[input.name].errorMessage = ""; } }); if (document.getElementById('ajaxlogin-login-formpdp').querySelectorAll(".invalid").length == 0) { const formdata = { "form_key": document.getElementById("ajaxlogin-create-form").elements["form_key"].value, "username": this.$refs.loginusername.value, "password": this.$refs.loginpassword.value }; fetch('https://www.slideteam.net/free/ajax/LoginPopup/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Requested-With': 'XMLHttpRequest' }, body: JSON.stringify(formdata) }) .then(response => { return response.json() }).then(data => { if (data.errors) { document.querySelector('.response-msg').style.display='block'; this.$refs.registerresponse.innerHTML = "

" + data.message + "

"; } else { this.$refs.registerresponse.innerHTML = "

" + data.message + "

"; } setTimeout(function() { document.querySelector('.response-msg').style.display='none'; }, 5000); if (data.errors) { this.$refs.loginsubmit.innerHTML = "Login"; this.$refs.loginsubmit.disabled = false; this.$refs.loginsubmitbutton.disabled = false; } else { var productId = this.$refs.loginproduct.value; if (productId == null || productId == "" || productId == "undefined") { location.reload(); // if (data.subscription == '1') { // location.reload(); // } else { // console.log('hello console'); // window.location.href = ""; // } } else { var url = "https://www.slideteam.net/checkout/cart/add/" + "product/" + productId; window.location.href = url; } } }); } }, submitForm() { this.inputElements = [...document.getElementById('ajaxlogin-create-form').querySelectorAll("input[data-rules]")]; this.inputElements.map((input) => { if (Iodine.is(input.value, JSON.parse(input.dataset.rules)) !== true) { const error = Iodine.is(input.value, JSON.parse(input.dataset.rules)); event.preventDefault(); input.classList.add("invalid"); Iodine.messages.required = "This is a required field."; Iodine.messages.email = "Please enter a valid email address (Ex: johndoe@domain.com)."; Iodine.messages.minimum = "Minimum length of this field must be equal or greater than 6 symbols. Leading and trailing spaces will be ignored."; this[input.name].errorMessage = Iodine.getErrorMessage(error); } else { input.classList.remove("invalid"); this[input.name].errorMessage = ""; } }); var cnt=0; var phonenumber = document.querySelector('#contact_number').value; var countrycode = document.querySelector('#country_id').value; var countryvalue = document.querySelector('#country_value').value; if( /[^0-9\-\/]/.test( phonenumber ) ) { document.querySelector("#contactnumbererror").innerHTML='Allowed digits[0-9] and -'; cnt=1; } else { document.querySelector("#contactnumbererror").innerHTML="" } if(phonenumber != "" && countrycode == ""){ document.querySelector('#country-code-error').style.display = 'block'; document.querySelector('#country-code-error').innerHTML='Please select your country code to add phone number.'; cnt=1; } else { document.querySelector('#country-code-error').style.display = 'none'; } if( /[^a-zA-Z0-9 \/]/.test( document.querySelector("#firstname").value ) ) { document.querySelector("#firstnameerror").innerHTML='Special character not allowed'; cnt=1; } if( /[^a-zA-Z0-9\/]/.test( document.querySelector("#lastname").value ) ) { document.querySelector("#lastnameerror").innerHTML='Special character not allowed'; cnt=1; } if (document.getElementById('create-from-wrapper').querySelectorAll(".invalid").length == 0 && cnt==0) { this.$refs.registersubmit.innerHTML = "Please wait..."; this.$refs.registersubmitbutton.disabled = true; let $form = document.getElementById('ajaxlogin-create-form'); if (!this.hasCaptchaToken) { this.errors = 1; const executeGreCaptcha = () => { grecaptcha.ready(() => { grecaptcha.execute( '6Lfy\u002DrUgAAAAALziuUTD4krRaDb_vjmhsTEx2cMO', {action: 'submit'} ).then((token) => { if (token && token.length > 0) { $form['g\u002Drecaptcha\u002Dresponse'].value = token; this.errors = 0; this.hasCaptchaToken = 1; (this.submitForm || $form.submit).call(this); } else { this.errors = 1; const error = 'ReCaptcha\u0020validation\u0020failed,\u0020please\u0020try\u0020again'; if (this.setErrorMessages) { this.setErrorMessages([error]) this.displayErrorMessage = true; } else { window.dispatchMessages && window.dispatchMessages([{type: "error", text: error}], 5000); } } }).catch(exception => { console.error(exception || `An unknown error occurred during ReCaptcha validation. Are the tokens and the domain correctly set up in the Google console?`) }); }) } if (window.grecaptcha) { executeGreCaptcha(); } else { const recaptchaUrl = "https://www.google.com/recaptcha/api.js?render=6Lfy\u002DrUgAAAAALziuUTD4krRaDb_vjmhsTEx2cMO"; const script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.setAttribute('src', recaptchaUrl); document.head.appendChild(script); script.addEventListener("load", executeGreCaptcha, false); } } if (this.errors === 0) { const formdata = { "form_key": document.getElementById("ajaxlogin-create-form").elements["form_key"].value, "firstname": this.$refs.registerfirstname.value, "lastname": this.$refs.registerlastname.value, "email": this.$refs.registeremail.value, "password": this.$refs.registerpassword.value, "password_confirmation": this.$refs.registercpassword.value, "countrycode": countrycode, "phonenumber": phonenumber, "countryvalue": countryvalue, 'g-recaptcha-response':$form.querySelector('input[name="g-recaptcha-response"]').value }; fetch('https://www.slideteam.net/free/ajax/registerpdp/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Requested-With': 'XMLHttpRequest' }, body: JSON.stringify(formdata) }).then(response => { return response.json() }).then(data => { if (data.errors) { this.$refs.registerresponse.style.display='Block'; this.$refs.registerresponse.innerHTML = "

" + data.message + "

"; this.errors = 1; this.hasCaptchaToken = 0; } else { this.$refs.registerresponse.innerHTML = "

" + data.message + "

"; } setTimeout(function() { document.querySelector('.response-msg').style.display='none'; }, 5000); if (data.errors) { this.$refs.registersubmit.innerHTML = "Sign Up"; this.$refs.registersubmitbutton.disabled = false; } else { var productId = this.$refs.registerproduct.value; if (productId == null || productId == "" || productId == "undefined") { location.reload(); } else { var ProductId = this.$refs.registerproduct.value; var url = "https://www.slideteam.net/checkout/cart/add/" + "product/" + ProductId; window.location.href = url; } } }); } } }, forgotemail() { if (this.$refs.forgotsubmit.innerHTML != "Submit") { this.$refs.forgotsubmit.innerHTML = "Submit"; } }, submit: function(event) { this.inputElements = [...this.$el.querySelectorAll("[data-rules]")]; this.inputElements.map((input) => { if (Iodine.is(input.value, JSON.parse(input.dataset.rules)) !== true) { const error = Iodine.is(input.value, JSON.parse(input.dataset.rules)); event.preventDefault(); input.classList.add("invalid"); Iodine.messages.required = "This is a required field."; Iodine.messages.email = "Please enter a valid email address (Ex: johndoe@domain.com)."; this[input.name].errorMessage = Iodine.getErrorMessage(error); } else { input.classList.remove("invalid"); this[input.name].errorMessage = ""; } }); }, countrychange() { var element=document.getElementById('country-isd-code'); document.querySelector('#country_id').value = element.options[element.selectedIndex].getAttribute("id"); document.querySelector('#country_value').value = element.options[element.selectedIndex].getAttribute("value"); document.querySelector('#country-code-error').style.display = 'none'; } } }

7 ps of marketing mix diagram 2 (2024)
Top Articles
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 6077

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.