How To: How do I know what height to set my post? (2024)

`;if (images.length > 0) {productImgDivMain += `

How To: How do I know what height to set my post? (1)

`;}productImgDivMain += `

`;var finalImageFomrm = productImgDivMain;$('.slider-image-theme2').html(finalImageFomrm);}else if(form_template == '2'){ if (form_fields.includes("quantity")) { var cfp_quantity = `

`;} else { var cfp_quantity = '';$("body").append("

");}var images = productdata.product.images;var template2html = `

`; $('.slider-image-theme2').html(template2html);}}var Create_form_fields = (productdata) => {var options = productdata.product.options;$('.cfp_var_data').remove();for (let i = 0; i < options.length; i++) {var varianName = options[i].name;var varianValuesArray = options[i].values;// select_id=`cfp_sel_${varianName}`;select_id = varianName;select_id = select_id.replace("(", "");select_id = select_id.replace(")", "");select_id = select_id.replace(/\s/g, "");select_id = select_id.replace(/\//g, "");select_id = select_id.replace(/&/g, "and");select_id = select_id.replace(/:/g, "");select_id = select_id.replace(/-/g, "");select_id = select_id.replace(/=/g, "");var variant_class = "cfp_var" + i;if (varianName == "Title") {continue;}SelectDiv = `

`; //created dynamic select option$('.cfp_variants').prepend(SelectDiv); $(".cfp_template2_variants_val").prepend(`

`); var options_html = varianValuesArray.forEach(Create_selectmenu); function Create_selectmenu(item) {var options = '

';//created dynamic options for select menu$('#' + select_id).append(options);}}if(form_template == '2'){if ($('.cfp_variants .form-group').length > 2) {$(".cfp_variants").after($(".cfp_variants .form-group:last"));}}}// if (pay_status == "active" && plan_name == "cfp_plan_premium") {if (mail_chimp_enable == "1") {$('.cfp_subscribe_wrapper').show();}//} else {$('.cfp_subscribe_wrapper').hide();}var country_field = (country_enable == "1") ? $('.cfp_country_field').show() : $('.cfp_country_field').hide();var cfp_customer_full_name = "Guest";$('.call-for-price-btn').css('cursor','pointer');$(document).on('click', '.call-for-price-btn', function (e) {e.preventDefault();if($("#cfpmodal").length <= 0){cfpForm($);}$('.cfp-parent-wrapper').css("opacity", "0");$('.cfp_loader').css("display", "block");$('.text-danger').hide();$(".invalid-cfp-field").removeClass("invalid-cfp-field");$('.formfield').val('');$('.cfp_variants').empty(); //remove appended field for fresh start$('#cfpmodal').css("display", "block");var url = window.location.href;shop_for_products = Shopify.shop; // url for ajax products variant getting processshop = Shopify.shop;var product = $(this).parent().parent().parent().find('.cfp-prod-url').html();var title = $(this).parent().parent().parent().find('.cfp-prod-title').html();$('#cfp_product_name').html(title);productid = $(this).parent().parent().find('.cfp-prod-id').html();producthandle = $(this).parent().parent().find('.cfp-prod-handle').text();producturl = location.hostname + product;AjaxURL = 'https://' + shop_for_products + '/products/' + producthandle + '.json';var request = $.ajax({url: AjaxURL,type: "GET",dataType: "json",beforeSend: function () {$('.cfp_loader').css("opacity", "1");},});request.done(function (productdata) {var myJSON = JSON.stringify(productdata);productdata = JSON.parse(myJSON);Theme2_data(productdata);if (variants_enable == "1") {Create_form_fields(productdata);}$('.cfp_loader').css("display", "none");$('.cfp-parent-wrapper').css("opacity", "1");});request.fail(function (productdata) {$('.cfp_loader').css("display", "none");$('.cfp-parent-wrapper').css("opacity", "1");});$('#cfpname').attr('placeholder', translate_fields.placeholder_name);$('#cfpemail').attr('placeholder', translate_fields.placeholder_email);$('#cfpphone').attr('placeholder', translate_fields.placeholder_phone);$('#cfpcountrycode').attr('placeholder', translate_fields.placeholder_phone_countrycode);$('#cfp_country').attr('placeholder', translate_fields.select_country);$('#cfpmessage').attr('placeholder', translate_fields.placeholder_your_msg);$('#country_first_option').text(translate_fields.select_country);$('#cfpquantity').attr('placeholder', cfp_configuration.quantity_form_field);if (form_fields.includes("Countrycode")) {$('#cfpcountrycode').val(phone_default_country_code);}if (form_fields.includes("venue")) {$('#venue').attr('placeholder', cfp_configuration.venue_form_field);}});var span = document.getElementsByClassName("close_sb_CFP_popup")[0];$(document).on('click', '.close_sb_CFP_popup', function () {$('#cfpmodal').css("display", "none");});$(document).on('click', '.submitReq', function () {$('.text-danger').remove();$(".invalid-cfp-field").removeClass("invalid-cfp-field");// whatsapp msgvar whatsappvals = ``;var wpMessage = ``;var email_regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;var name1 = $('#cfpname').val();var title = $('#cfp_product_name').text();var email = $('#cfpemail').val();var quantity = $('#cfpquantity').val();whatsappvals += ``;if (!sb_cfp_do_not_show_fields.includes("name") && name1.length > 0) {whatsappvals += `Name : ${name1}%0D%0A`;}if (!sb_cfp_do_not_show_fields.includes("email") && email.length > 0) { whatsappvals += `E-mail : ${email} %0D%0A`;}if ($("#cfpphone").length) {var phone = $('#cfpphone').val();if ($("#cfpcountrycode").length) {var cfpcountrycode = $("#cfpcountrycode").val();phone = cfpcountrycode + '' + phone;}phone = phone.replace(/ /g, '')var countrycode_val = phone.match(/^\+\d{1,3}\d{5,15}$/);whatsappvals += `Phone : ${phone}%0D%0A`;}if ($("#cfpmessage").length) { var message = $('#cfpmessage').val(); wpMessage += `Message : ${message}`; };if ($("#venue").length) { var venue = $('#venue').val(); }if ($("#cfp_country").length) { var country = $('#cfp_country').val(); whatsappvals += `Country : ${country}%0D%0A`; }if (form_fields.includes("quantity")) { if ($('#cfpquantity').val().length) { whatsappvals += `Quantity : ${quantity}%0D%0A`; } }var ownermail = sender_email;var cfp_file = $("#cfp_image").val();var gcaptcha = $('.g-recaptcha-response').val();var var_Array = $('.cfp_var_data');var VariantsArray = new Array();var wpVariants = '';for (var i = 0; i < var_Array.length; i++) {var Var_name = $(var_Array[i]).attr('id');var Var_value = $(var_Array[i]).val();var var_collection = {'Var_name': Var_name,'Var_value': Var_value};wpVariants += Var_name + " : " + Var_value + "%0D%0A";VariantsArray.push(var_collection);}var jObject = {};jObject = JSON.stringify(VariantsArray);if (!VariantsArray) {}/* validation controllers*/count_name = true;if (name1.length == 0 && !sb_cfp_do_not_show_fields.includes("name") && !sb_cfp_do_not_require_fields.includes("name")) {$('#cfpname').after(`${name_vald}`);$('#cfpname').addClass('invalid-cfp-field');count_name = false;}else if (email.length == 0 && !sb_cfp_do_not_show_fields.includes("email") && !sb_cfp_do_not_require_fields.includes("email")) {$('#cfpemail').after(`${email_blank_vald}`);$('#cfpemail').addClass('invalid-cfp-field');count_name = false;}else if (!email_regex.test(email) && !sb_cfp_do_not_show_fields.includes("email") && email.length > 0 ) {$('#cfpemail').after(`${email_invalid_vald}`);$('#cfpemail').addClass('invalid-cfp-field');count_name = false;}else if (required_form_fields.includes("phone") && phone.length <= 5 || (!countrycode_val && required_form_fields.includes("Countrycode"))) {if (phone.length <= 5) {$('#cfpphone').after(`${phone_blank_vald}`);$('#cfpphone').addClass('invalid-cfp-field'); count_name = false;} else if (!countrycode_val && required_form_fields.includes("Countrycode")) {var country_code_vald_hide_shops = ["mirage-sari-center.myshopify.com", "prim-and-pro-commercial-cleaning.myshopify.com", "rp-imaging.myshopify.com", "flooring-for-less-online.myshopify.com", "pessoa-joias.myshopify.com", "jessica-flinn-designs.myshopify.com", "no-42-interiors.myshopify.com", "high-tech-delivery.myshopify.com", "i-dance-contemporary.myshopify.com", "bohl-companies.myshopify.com", "spread-event-co.myshopify.com", "joombo-co.myshopify.com", "portabo.myshopify.com", "production-case.myshopify.com", "w-rltd.myshopify.com", "robs-furniture-mattresses.myshopify.com", "myartph.myshopify.com"];if ($.inArray(shop, country_code_vald_hide_shops) == -1) // if shop is not present in array only then validate for mobile field{$('#cfpphone').after(`${phone_cc_vald}`);$('#cfpphone').addClass('invalid-cfp-field'); count_name = false;}}}else if($(".additional_require").length > 0){$(".additional_require").each(function(){if($(this).val().trim() == "" && count_name){$(this).after(""+$(this).attr("additional_require_msg")+"");count_name = false;}});}else if (required_form_fields.includes("country") && !country) {$('#cfp_country').after(`${country_vald}`);$('#cfp_country').addClass('invalid-cfp-field'); count_name = false;}else if (required_form_fields.includes("variants") && ($(".cfp_var0").length > 0 && $(".cfp_var0").val() == null) || ($(".cfp_var1").length > 0 && $(".cfp_var1").val() == null) || ($(".cfp_var2").length > 0 && $(".cfp_var2").val() == null)) {var variants_validation = [".cfp_var0", ".cfp_var1", ".cfp_var2"];for (variant_vald of variants_validation) {if ($(variant_vald).length > 0) {var variant_value = $(variant_vald).val();if (variant_value == null) {$(variant_vald).after();cvarian_vald = "abcd";$(variant_vald).after(`${variant_blank_vald}`);$(variant_vald).addClass('invalid-cfp-field'); count_name = false;}}}}else if (required_form_fields.includes("quantity") && $('#cfpquantity').val() <= 0) {if ($('#cfpquantity').val().length == 0) {$('#cfpquantity').after(`${quantity_vald}`);$('#cfpquantity').addClass('invalid-cfp-field'); count_name = false;} else if ($('#cfpquantity').val() <= 0) {$('#cfpquantity').after(`${quantity_vald}`);$('#cfpquantity').addClass('invalid-cfp-field'); count_name = false;}}else if (required_form_fields.includes("message") && message.length == 0) {$('#cfpmessage').after(`${message_vald}`);$('#cfpmessage').addClass('invalid-cfp-field'); count_name = false;}else if (required_form_fields.includes("venue")) {if (message.length == 0) { $('#venue').after(`${translate_fields.venue_vald}`);$('#venue').addClass('invalid-cfp-field'); count_name = false;}}else if (required_form_fields.includes("image") && !cfp_file) {$('#cfp_image').after(`${image_vald}`);$('#cfp_image').addClass('invalid-cfp-field'); count_name = false;} else if (required_form_fields.includes("gdpr") && $("#cfp_subscribe").length) {if (!$('#cfp_subscribe').is(':checked')) {count_name = false;$('.cfp_subscribe_wrapper ').after(`${gdpr_vald}`);$('#cfp_subscribe').addClass('invalid-cfp-field');}} if (Shopify.shop == "bluesheepbakeshop.myshopify.com" || Shopify.shop == "easy2-buy-shop.myshopify.com") //cfp_adt_flds{var servings_no = $('#add_serving_no').val();var event_date_modal = $('#add_event_date').val();if (required_form_fields.includes("servings")) {if (servings_vald == '') {servings_vald = 'This field required';}if (servings_no.length == 0) {$('#add_serving_no').after(`${servings_vald}`);count_name = false;}}if (required_form_fields.includes("date")) {if (date_vald == '') {date_vald = 'This field required';}if (event_date_modal.length == 0) {$('#add_event_date').after(`${date_vald}`);count_name = false;}}}if (Shopify.shop == 'lacava-specialty-coffee-roastery.myshopify.com') {count_name = true;}if (count_name) {var cfp_form = $('.sb_cfp ')[0];var cfo_form__data = new FormData(cfp_form);cfo_form__data.append('name', name1);cfo_form__data.append('email', email);cfo_form__data.append('phone', phone);cfo_form__data.append('message', message);cfo_form__data.append('pid', producturl);cfo_form__data.append('productid', productid);cfo_form__data.append('message', message);cfo_form__data.append('shop', shop);cfo_form__data.append('senderemail', ownermail);cfo_form__data.append('country', country);cfo_form__data.append('quantity', quantity);cfo_form__data.append('gcaptcha', gcaptcha);cfo_form__data.append('VariantsArray', VariantsArray);cfo_form__data.append('title', title);cfo_form__data.append('request_type', request_type);var cfp_allowed_files = ["png", "jpeg", "jpg", "gif", "csv", "pdf", "docs", "doc", "xlsx"];if ($('#cfp_image').length) {var cfp_image_length = document.getElementById('cfp_image').files.length;for (var x = 0; x < cfp_image_length; x++) {var inq_image = document.getElementById('cfp_image').files[x];var cfp_fle_extension = inq_image['name'].split('.').pop();if (cfp_allowed_files.includes(cfp_fle_extension.toLowerCase())) {cfo_form__data.append("cfp_file[]", document.getElementById('cfp_image').files[x]);}else {$('#cfp_image').after(`${image_vald}`);return false;}}}// send whatsapp messageif (form_button_display_option == 'show_cfp_whatsapp') {const mediaQuery = window.matchMedia("(max-width: 425px)");var deviceDetect = false;if (mediaQuery.matches) { deviceDetect = true; }var whatsappMsg = "Product : https://" + producturl + "%0D%0A" + wpVariants + "%0D%0A%0D%0A" + whatsappvals + wpMessage;whatsAppChatRedirection(whatsappNumber, deviceDetect, whatsappMsg);}if ($("#cfp_subscribe").length) {if ($('#cfp_subscribe').is(':checked')) {cfo_form__data.append('customer_subscribe', "1");}}cfo_form__data.append('customerNameInput', cfp_customer_full_name);cfo_form__data.append('detectSocialPlatform', detectSocialPlatform);$.ajax({url: 'https://setubridgeapps.com/call-for-price/app/src/public/submitreq_new',type: 'POST',data: cfo_form__data,processData: false,contentType: false,cache: false,beforeSend: function () {$('.cfp_loader').css("display", "block");$('.cfp_loader').css("opacity", "1");$('.cfp-parent-wrapper').css("opacity", "0");},success: function (data) {form_curr_html = $('.sb_cfp').html();$('.cfp_loader').css("display", "none");// return false;var shop = Shopify.shop;$('#cfpmodal .cfp_field ,#cfpmodal textarea').val(' ');$('.cfp-slider-wrapper').before(`

${success_message}

`);if (Shopify.shop == "amtrac-furnishings.myshopify.com") { $(".sb_cfp").html('

Thank you for your interest.

We will be in contact with you within 24 hours.

'); }$('.cfp-parent-wrapper').css("opacity", "1");$('.sb_cfp input[type=text]').val('');// return false;setTimeout(function () {$('#cfpmodal .alert-success').remove();$('#cfpmodal').hide();if (Shopify.shop == "amtrac-furnishings.myshopify.com") { $(".sb_cfp").html(form_curr_html); }var shop = Shopify.shop;if (is_redirect == "1") {redirect_page = redirect_page.trim();if (redirect_page.length == 0) {return false;}window.open(redirect_page, "_self");}}, hide_cfp_modal_sec);},error: function (error) {}});} else {return false;}});cfpForm($);}function cfpForm($) { var form_design =''; if (form_theme == '1' && (form_template == '1' || form_template == '2')) { form_design += `#cfpmodal .slider-image-theme2{width:45%}.call-for-price-modal-wrapper .cfp-modal-content{position:relative;background-color:#fefefe;margin:auto auto 10%;padding:0;width:850px!important;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);-webkit-animation-name:animatetop;-webkit-animation-duration:.4s;animation-name:animatetop;animation-duration:.4s}#cfpmodal .cfp-modal-body{width:55%!important}#cfpmodal .cfp-slider-wrapper{display:flex!important;margin:25px!important}.call-for-price-modal-wrapper .cfp-modal-header{background-color:#fff;color:#333333d9;padding:13px 0;border-bottom:1px solid #e7e6e6}.cfp-modal-body{background-color:#fff}.alert{margin-top:10px}select.cfp_var_data{font-size:15px!important;color:#7e7d7d!important;background-color:#fff!important}.cfp-modal-body .form-group input[type=email],.cfp-modal-body .form-group input[type=file],.cfp-modal-body .form-group input[type=number],.cfp-modal-body .form-group input[type=text],.cfp-modal-body .form-group select,.cfp-modal-body .form-group textarea{padding:10px!important;border:1px solid #dfdfdf!important;height:auto!important;box-shadow:inset 0 -1px 3px 0 #e9e9e9;border-radius:7px;margin:10px 0 0!important}.cfp-modal-body .form-group input:focus-visible,.cfp-modal-body .form-group select:focus-visible,.cfp-modal-body .form-group textarea:focus-visible{outline:0;box-shadow:none;border-bottom:1px solid #545151!important}.cfp_subscribe_wrapper{display:flex;align-items:flex-start;gap:5px;margin:10px 0 0!important}.form-group.file{margin-top:-8px}.country_field,select.cfp_var_data{padding:15px 0 10px}.form-group .uploade{margin-top:-8px!important}.call-for-price-modal-wrapper input,.call-for-price-modal-wrapper label,.call-for-price-modal-wrapper textarea{padding:15px 0 10px 5px!important}.call-for-price-modal-wrapper .cfp-modal-body{padding:5px 20px 20px}.call-for-price-modal-wrapper .cfp-modal-header h3{text-align:left!important;padding-left:22px;margin:0;font-weight:700;font-family:inherit}`; }if (form_theme == '1' && form_template == '2') { form_design += `.form_require_fields{display:flex; gap: 10px; justify-content:space-between;} .form_require_fields > .form-group{width:100%;} #cfp_product_name { display:none;} .cfpqty{width: 18%;} .cfp-modal-content{width:990px!important;} .cfp-form-title{margin: 0; font-weight: 600; text-decoration: none; font-size: 20px;} .cfp_template2_qty_title{display:flex; width: 100%;} .cfp_template2_first_div{ width:100%; margin-top: 20px;} .cfp_template2_image_div{display:flex;padding: 0px 20px;} .form_template2_image{width: 80px;} .cfp-slider-container{margin-top: 27px;height: 150px;} .cfp_variants{ display: flex; justify-content: space-between; gap: 10px;} .variants_div{width:100%;} .cfp_template2_title{width:80%; padding-left:10px;} .cfp_template2_variants_val{padding-top: 5px;font-size: 14.5px;line-height: 1.5;} .slider-image-theme2{background-color:#f4f4f4;} .cfp_template2_header{display: flex;justify-content: space-between;padding: 0px 20px;color: #565656;margin-top: 24px;font-weight: 500;} .cfp_template2_header_upperline{margin:0px;margin-top: 5px;margin-left: 19px;width: 91%;background-color: #e3e3e3;} .cfp_template2_header_bottomline{margin:0px; margin-top: 10px;margin-left: 19px; width: 91%;background-color: #e3e3e3;} #cfpquantity{border-radius: 6px; box-shadow: inset 0px -1px 3px 0px #e9e9e9; outline: none; text-align:center;height:auto!important; padding: 8px 0px 8px 0px !important} #cfpmodal .cfp-slider-wrapper{margin:0px!important;} #cfpmodal .slider-image-theme2{width:50%!important;} #cfpmodal .cfp-modal-body{width:50%!important;} #cfpquantity::-webkit-outer-spin-button, #cfpquantity::-webkit-inner-spin-button {-webkit-appearance: auto!important; margin: 0!important;} .cfpqty{width:20%;} #cfpquantity{text-align:center;} .cfp_template2_qty_title{justify-content:space-between;} .cfp-modal-body .form-group input[type=file] { border: none !important;padding: 0 !important; box-shadow: none;} .call-for-price-modal-wrapper .cfp-modal-body{ padding: 22px 20px 20px;} @media (max-width: 600px){ .sb_cfp .cfp_phone_wrapper #cfpphone{width:84%;} .cfp_template2_header{margin-top:0px;} } `;}else if (form_theme == '1' && form_template == '1' ) { form_design += `@media (max-width:900px){.call-for-price-modal-wrapper .cfp-modal-content{width:80vw!important}}#cfpmodal .cfp-slider-wrapper{display:flex;margin:25px}#cfpmodal .slider-image-theme2{width:45%}.flickity-prev-next-button.next{right:0}.flickity-enabled{position:relative}.flickity-enabled:focus{outline:0}.flickity-viewport{overflow:hidden;position:relative;height:100%}.flickity-slider{position:absolute;width:100%;height:100%}.flickity-enabled.is-draggable{-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flickity-enabled.is-draggable .flickity-viewport{cursor:move;cursor:-webkit-grab;cursor:grab}.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down{cursor:-webkit-grabbing;cursor:grabbing}.flickity-prev-next-button{position:absolute;top:50%;width:30px;height:30px;border:none;border-radius:50%;background:hsla(0,0%,100%,.75);cursor:pointer;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.flickity-prev-next-button:hover{background:#fff}.flickity-prev-next-button:focus{outline:0;box-shadow:0 0 0 5px #09f}.flickity-prev-next-button:active{opacity:.6}.flickity-prev-next-button.previous{left:0}.call-for-price-modal-wrapper .submit-btn{text-align:left!important;margin-top:5px!important}@media screen and (min-width:320px) and (max-width:480px){.call-for-price-modal-wrapper .submit-btn{text-align:center!important}}.flickity-prev-next-button:disabled{opacity:.3;cursor:auto}.flickity-prev-next-button svg{position:absolute;left:20%;top:20%;width:60%;height:60%}.flickity-prev-next-button .arrow{fill:#333}*{box-sizing:border-box}.carousel{background:#fafafa}.carousel-cell{width:100%;margin-right:8px;background:0 0;border-radius:5px}.carousel-nav .carousel-cell{height:90px;width:100px;margin:9px;text-align:center}.carousel-main img{display:block;margin:0 auto}.cfp-slider-container{max-width:672px;margin:0 auto;background:#e6e4e4b3}.carousel-main img,.carousel-nav .carousel-cell img{width:100%;height:100%}`;} else if (form_theme == '1' && form_template == '0') { form_design += `#cfpmodal .cfp-modal-body{width:100%;padding:20px}.call-for-price-modal-wrapper .cfp-modal-header{background-color:#fff;color:#333333d9;padding:13px 0;border-bottom:1px solid #e7e6e6}.cfp-modal-body{background-color:#fff}.alert{margin-top:10px}select.cfp_var_data{font-size:15px!important;color:#000!important;background-color:#fff!important}.cfp-modal-body .form-group input[type=email],.cfp-modal-body .form-group input[type=file],.cfp-modal-body .form-group input[type=number],.cfp-modal-body .form-group input[type=text],.cfp-modal-body .form-group select,.cfp-modal-body .form-group textarea{padding:10px!important;border:1px solid #dfdfdf!important;height:auto!important;box-shadow:inset 0 -1px 3px 0 #e9e9e9;border-radius:7px;margin:10px 0 0!important}.cfp-modal-body .form-group input:focus-visible,.cfp-modal-body .form-group select:focus-visible,.cfp-modal-body .form-group textarea:focus-visible{outline:0;box-shadow:none;border-bottom:1px solid #545151!important}.cfp_subscribe_wrapper{display:flex;align-items:flex-start;gap:5px;margin:10px 0 0!important}.form-group.file{margin-top:-8px}.country_field,select.cfp_var_data{padding:15px 0 10px}.form-group .uploade{margin-top:-8px!important}.call-for-price-modal-wrapper input,.call-for-price-modal-wrapper label,.call-for-price-modal-wrapper textarea{padding:15px 0 10px 5px!important}#cfpmodal .cfp-parent-wrapper{padding:0 0 1px!important}`;} else {var form_design = `.call-for-price-modal-wrapper .cfp-modal-header{background-color:#333333d9;color:#333333d9;padding:16px}.cfp-modal-body{background-color:#e6e4e4b3;padding:15px 21px 25px 20px!important}.call-for-price-modal-wrapper .cfp-modal-header h3{color:#fff}.cfp_subscribe_wrapper{display:flex;align-items:flex-start;margin:10px 0 0!important}.call-for-price-modal-wrapper input,.call-for-price-modal-wrapper label,.call-for-price-modal-wrapper textarea{padding:10px 0 10px 10px!important}.country_field{padding:10px 0 10px 6px!important;border:none}form .form-group{padding-top:8px}select.cfp_var_data{margin:0!important;width:100%;height:35%;line-height:normal!important;font-size:15px!important;color:#000!important;background-color:#fff!important;padding:10px 0 10px 6px!important}#cfpmodal .cfp-slider-wrapper{padding:0 important}.cfp-modal-body .form-popup{padding:20px!important}#cfp_product_name{padding:10px 0 0 20px!important}@media (max-width:460px){.cfp-modal-body .form-popup{padding:10px!important}#cfp_product_name{padding:5px 0 0 10px!important}}`;}var cfp_form_css = `

`;if (form_fields.includes("phone")) {if (form_fields.includes("Countrycode")) {var cfp_phone = `

`;} else {var cfp_phone = `

`;}} else {var cfp_phone = '';}if (form_fields.includes("country")) {var cfp_country = `

`;} else { var cfp_country = ''; }if (form_fields.includes("quantity") && form_template != "2") { var cfp_quantity = `

`; } else { var cfp_quantity = ''; }if (form_fields.includes("message")) { var cfp_message = `

`; } else { var cfp_message = ''; }if (form_fields.includes("image")) { var cfp_image = `

`; } else { var cfp_image = ``; }if (save_customer == '1') { var gdpr_message = `

` + gdpr_msg + `

`; } else { var gdpr_message = ``; }if (form_fields.includes("venue")) { var venue_name = `

`; cfp_additional_field += venue_name; }if (sb_cfp_do_not_show_fields.includes("email")) { var cfp_email = `display:none;`; } else { var cfp_email = ``; }if (sb_cfp_do_not_show_fields.includes("name")) { var cfp_name = `display:none;`; } else { var cfp_name = ` `; } var cfp_form = `

×

`+ sb_cfp_form_title + `

`;$("body").append(cfp_form_css);$("body").append(cfp_form);}function setCookieCFP(name, value, exdays) {const d = new Date();d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));let expires = "; expires=" + d.toUTCString();document.cookie = name + "=" + value + ";" + expires + "; path=/";}function getCookieCFP(name) {var nameEQ = name + "=";var ca = document.cookie.split(';');for (var i = 0; i < ca.length; i++) {var c = ca[i];while (c.charAt(0) == ' ') c = c.substring(1, c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);}return null;}function eraseCookieCFP(name) {document.cookie = name + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';}//sending whatsapp msg codefunction whatsAppChatRedirection(number, md, text) {var number2 = number.replace(/ +/g, "");if (md) {var mob = "https://wa.me/" + number2 + "?text=" + text;window.open(mob, "_blank");} else {var web = "https://"+sb_cfp_whatsapp_api+".whatsapp.com/send?phone=" + number2 + "&text=" + text;window.open(web, "wupwindow", "toolbar=yes,scrollbars=yes,resizable=yes,top=130,left=260,width=900,height=500");}}function checkFreeTheme() {var sb_cfp_freeThemes = ['Dawn', 'Refresh', 'Craft', 'Sense', 'Studio', 'Crave', 'Origin', 'Ride', 'Taste', 'Spotlight', 'Colorblock', 'Publisher'];if (sb_cfp_freeThemes.includes(originThemeName)) {return true;}return false;}function functionForFilter($) { if (sb_cfp_enable == "1" && is_payment_enable == "1" && typeof(doNotCheckFilter) == "undefined") {var priceAndCartBtnClasses = ".sb-cfp-hidecartbtn_loading, .sb-cfp-hideprice_loading, .price, product-form, .quick-add__submit, .product-item__action-button, .product-form .product-add, .boost-pfs-addtocart-wrapper, .product-item .actionform, .price-product, .product-price__price, .product-item__price-wrapper, .product-item--price, .product_price, .boost-pfs-filter-product-item-price, .single_product__price, .product--price-wrapper, .product-card__price, .product-form--price-wrapper, .product-item--price, .product-item__price, .grid-product__price-wrap, .grid-product__price, .product-list-item-price, .productitem--price, .product-form--price-wrapper, .card-information .price , .price-item price-item--regular, .price__regular, .price__container";var showPrice = $("body").append("

");if (checkFreeTheme()) {$('.hidePrice').hide();$('body').append(`

`);// $(priceAndCartBtnClasses).addClass('hidePrice');// show button on availability filter***************$(document).on('click', ".js-filter, .active-facets", function () {setTimeout(function () {myAppJavaScript_cfp($)}, 1300);setTimeout(function () {$(priceAndCartBtnClasses).removeClass('hidePrice');showPrice}, 2000);});// Show button on price filter**********************$(document).on('keyup', ".field__input, .active-facets", function () {$(priceAndCartBtnClasses).hide();// $(priceAndCartBtnClasses).addClass('hidePrice');setTimeout(function () {myAppJavaScript_cfp($);}, 1200);setTimeout(function () {$(priceAndCartBtnClasses).removeClass('hidePrice');showPrice}, 2023);});// category wise filter*****************************$(document).on('change', ".facet-filters__sort", function () {setTimeout(function () {myAppJavaScript_cfp($);}, 1300);setTimeout(function () {$(priceAndCartBtnClasses).removeClass('hidePrice');showPrice}, 2000);});// Recommendaed Product*****************************if (`page` == "product") {if ($('body').find('.related-products__heading')) {setTimeout(function () {myAppJavaScript_cfp($);}, 1300);setTimeout(function () {$(priceAndCartBtnClasses).removeClass('hidePrice');showPrice}, 1800);}}//Remove Filter Function*****************$(document).on('click', ".active-facets, .active-facets__button-wrapper, .active-facets__button-inner", function () {setTimeout(function () {myAppJavaScript_cfp($)}, 1300);setTimeout(function () {$(priceAndCartBtnClasses).removeClass('hidePrice');showPrice}, 2000);});}}}function hideSearchPrice($) {$('.predictive-search__item-content .price').hide();}function checkPayemntCFP($) {var sb_payment_status_check = getCookieCFP('sb_payment_status_check_cfp');if (sb_payment_status_check == null) {$.ajax({url: "https://setubridgeapps.com/call-for-price/app/src/public/checkPaymentStatus",type: "GET",data: {shop: shop},cache: false,success: function (response) {if (response) {response = JSON.parse(response);if (response.result.status == "active") {setCookieCFP('sb_payment_status_check_cfp', 'active', 1);// myAppJavaScript_cfp($);// loadEventForm($);// functionForFilter($);} else {setCookieCFP('sb_payment_status_check_cfp', 'not_set', 1);}} else {setCookieCFP('sb_payment_status_check_cfp', 'not_set', 1);}//for Plus customerif (response.status == '1') {setCookieCFP('sb_payment_status_check_cfp', 'active', 1);// myAppJavaScript_cfp($);// loadEventForm($);// functionForFilter($)}}});}}// }// }// notes// 1. add (doNotAdd_cfp) class to a tag where you dont want checking// 2. custom position for cfp button on collection page (this will not check any a tag)//

// 3. if do not want to hide then add this in theme.liquid// var doNotHidePrice = true ;// 4. add custom fields to form using this code add in theme.liquid// var cfp_additional_field=`

`;// 5. load functions late for store add this in theme.liquid// var timeDelay = 5000;// 6. if do not want to hide Add to cart button add this in theme.liquid// var doNotHideaddtoCart = true;// 7. add this div for custom position on pdp page //

// 7. add class to this variable to hide any item on collection page like addtocart if using doNotHideaddtoCart or not// var doHideaddtoCartOnCollection = '.product-item__quick-form';// 8. add this variable doNotCheckFilter to excude execution of functionForFilter()// var doNotCheckFilter = '';// 9. add this class (sb_cfp_btn_not_remove) in the form if form have title and hiding buttons like cfp button or variant btn// 10. add this in theme.liquid if you want to remove field nd require validation for Email and Name fields// var sb_cfp_do_not_show_fields = 'email,name';// var sb_cfp_do_not_require_fields = 'email';// 11. add in theme if having redirect issue on iphone pro model, this will change web. to api.// var sb_cfp_whatsapp_api = 'api';

How To: How do I know what height to set my post? (2024)
Top Articles
11 Steps of Verbal De-Escalation
Hyperledger Fabric
Mchoul Funeral Home Of Fishkill Inc. Services
Fan Van Ari Alectra
Directions To Franklin Mills Mall
Mountain Dew Bennington Pontoon
Aiken County government, school officials promote penny tax in North Augusta
Lichtsignale | Spur H0 | Sortiment | Viessmann Modelltechnik GmbH
Zoebaby222
Nichole Monskey
FIX: Spacebar, Enter, or Backspace Not Working
Ukraine-Russia war: Latest updates
Sarpian Cat
Nj State Police Private Detective Unit
Dtab Customs
Curry Ford Accident Today
Grimes County Busted Newspaper
Keci News
Parc Soleil Drowning
Menus - Sea Level Oyster Bar - NBPT
Sorrento Gourmet Pizza Goshen Photos
Cfv Mychart
Tomb Of The Mask Unblocked Games World
TJ Maxx‘s Top 12 Competitors: An Expert Analysis - Marketing Scoop
Superhot Free Online Game Unblocked
Delta Math Login With Google
Nurofen 400mg Tabletten (24 stuks) | De Online Drogist
Proto Ultima Exoplating
Kaiser Infozone
Otis Offender Michigan
Strange World Showtimes Near Regal Edwards West Covina
Junior / medior handhaver openbare ruimte (BOA) - Gemeente Leiden
Santa Cruz California Craigslist
Greater Keene Men's Softball
Skyrim:Elder Knowledge - The Unofficial Elder Scrolls Pages (UESP)
Vivek Flowers Chantilly
Craigslist Jobs Brownsville Tx
Engr 2300 Osu
Tunica Inmate Roster Release
Busted Newspaper Mcpherson Kansas
Fedex Passport Locations Near Me
Senior Houses For Sale Near Me
Craigslist/Nashville
Vagicaine Walgreens
How To Get To Ultra Space Pixelmon
Zipformsonline Plus Login
Movie Hax
Ihop Deliver
Causeway Gomovies
How to Get a Check Stub From Money Network
Coors Field Seats In The Shade
Heisenberg Breaking Bad Wiki
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 5781

Rating: 4.6 / 5 (66 voted)

Reviews: 89% 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.