Greenhouse Flooring (2024)

Greenhouse Flooring (1)

Questions?

(800) 748-5647

(800) 748-5647

Greenhouse Flooring (30)

Greenhouse Flooring

Rolled Rubber Flooring:

High quality rubber material is an excellent choice for covering the floor of a greenhouse. The rubber material will provide a cushioned walkway and act as a shock absorber if you are planning on spending a good deal of time on your feet in the greenhouse. When choosing a rubber material for the floor both square and rolled rubber products are most viable options. If you are covering a long walkway the rolled material make make more practical sense as it is easier to install and can be more economical. Rubber mats when placed over a concrete is the most ideal greenhouse flooring solution, however if your budget is tight there are more economical flooring options which aren't ideal and require more upkeep but may be worth the savings if your budget is tight.

Greenhouse Flooring Fabric:

For a more economical solution than rubber flooring consider woven greenhouse flooring fabric. This fabric is deigned to withstand pedestrian traffic while acting as a weed barrier and separation layer from the dirt below. The material is UV resistant and typically provides planting stripes for easy plant alignment.

If you are also planning a access road to your greenhouse consider our heavy duty woven separation fabric with a 315lb grab tensile strength it will provide the strength and separation to keep your gravel in place.

Concrete Slab:

If you have a greenhouse, you know how important it is to provide protection and comfort for your delicate plants while providing a pleasant experience for yourself. The flooring in your greenhouse must provide excellent drainage, keep the cold outside, prevent pests and weeds from entering while offering a comfortable surface for you to walk on.

If you have provided a good, insulated concrete slab greenhouse foundation, you are one step up. This floor is excellent for easy cleaning and if it has a proper slope, it will sufficiently drain any excess water. Concrete is also light enough to reflect light to retain heat during the day. A flat well poured concrete floor enables you to place benches and pots evenly.

Wooden Foundations:

Wooden foundations are usually filled with 3 to 4 inches of crushed stone or gravel placed over a weed cloth. This also is an excellent greenhouse flooring that is easy to clean and drains really well. If you simply spray water on these floors, you will have added humidity during the summer months. If you don't have this flooring but are interested, stone and gravel are really easy to install and are relatively inexpensive.

Lava & Landscape Rock:

These rocks will create a very attractive greenhouse flooring. Lava rock will soak up water and will add a nice level of humidity. Lava rock and landscape rock provide an excellent drainage system but they are not easy to clean. If you use white landscape rocks, they will reflect light during the day hours and retain heat to continue radiating during the night. Both of these rocks are very easy to lay down but can be rather expensive.

Brick Flooring:

Bricks will give added humidity because the clay is very porous and absorbs water. The bricks should be placed over a layer of sand for maximum stability and drainage. Clay floors will last for a very long time, are very attractive and easy to walk on.

If you build your greenhouse over bare ground, you will have to provide some form of pavers to prevent you from walking in mud. Brick or stone laid on top of sand are easy to walk on, offer an attractive appearance and the sand will absorb water.

Greenhouse Flooring (31)

Walkway Inside Greenhouse

Mulch Flooring:

This is probably one of the least chosen materials. This alternative is cheap but impossible to clean and probably not a good option. It can create an excellent environment for bacteria and fungus. Also, it will quickly decompose due to the humidity levels.

Greenhouse Vinyl Tiles:

With new technologically, vinyl floors are becoming quite popular. There is an enormous range in special vinyl tiles, for greenhouses, that clean really well and have excellent drainage. Vinyl greenhouse tiles are very easy to walk on and can be placed over the entire foundation or used as an attractive path when combined with another material for the floor.

Just about any greenhouse flooring material can be used as long as it's easy to clean and drains well. If your ideal choice is concrete, you might want to lay down mats of old carpet or rubber mats in areas where you will stand for a good length of time.

Choosing The Right Floor For You:

Before deciding on a specific material, consider how many hours you will be standing around your workbench, watering, weeding, deadheading, planting, and just relaxing. You should always consider materials that are easy to clean so you are not adding to your workload. Stay away from materials that have to be replaced in a short period of time – such as mulch! If you invest a little bit more, in the beginning, over time you will save on costs and maintenance. It will take a bit of time to create your foundation so you want to ensure it will last for a good period of time.

Just about any greenhouse flooring material can be used as long as it's easy to clean and drains well. If your ideal choice is concrete, you might want to lay down mats of old carpet or rubber mats in areas where you will stand for a good length of time.

Building Your Greenhouse Floor:

You should create your floor before building the greenhouse, then just place your structure on top of the level floor and secure it down. Some greenhouses are portable and others will demand a permanent floor. Securing your structure firmly to the foundation will ensure it will last for many years. Also if you live in a windy area, you want to prevent the greenhouse from blowing over.

Greenhouse Flooring (32)

Setting Up Greenhouse Flooring

Start Creating Your Floor:

You have to measure the length and width of your future greenhouse area on the ground. Place stakes on each corner and hammer into the ground. Run twine around the stakes to form an outline of the floor's perimeter.

Find the highest point of ground and start digging the ground at this point. You want to remove only enough soil to make a level floor. Place a level on the ground to ensure you do have a nice, level surface. Once your ground is level and the correct diameters for your greenhouse, remove the stakes and twine.

This is an important step that should not be overlooked:

Lay down weed block on the floor to prevent grass and weeds from growing up into the greenhouse. Cover the weed block with gravel or pea stones to hold down the weed block. The gravel or stones will also create a good drainage system.

Creating A Concrete Floor:

You will need to dig your area down 6-inches and make sure it's level. Dig 4 holes – 8-inches deep, one at each corner of the ground area.

Place one 1-foot-tall, 2-by-2-inch post in each of the four holes. Use your level, often, to make sure the posts are perfectly straight. Next, pour concrete into each one of the holes and allow the concrete to set overnight.

Lay down two 2-by-4-inch boards along the edges around the perimeter of the area. Using deck screws, drill the boards into the outer sides of the posts.

Pour concrete into the area, half-way up the sides of the 2-by-4-inch boards. Allow the concrete to set overnight. Then build your greenhouse, attaching it to the wooden perimeter.

    The Tools You Will Need:

  • Four Stakes
  • A Measuring Tape
  • Twine or Garden Wire
  • A Hammer
  • A Level
  • Weed Block
  • Gravel or Pea Stones
  • Four Pressure-Treated One-Foot Long 2-By-2-Inch Posts
  • Four Pressure-Treated 2-By-4-Inch Boards
  • Deck Screws
  • A Power Drill
  • Concrete Mix Gravel Grid

Greenhouses are an important part of many people with green thumbs. They are used for both exotic and local plants. More people are erecting these structures for growing their own vegetables and herbs. People want fresh foods that are not coated in pesticides or arrive at the store well past their time for best quality.

Whether small or large, portable or fixed structure, greenhouses are becoming more and more popular. There are so many different floorings available to choose from. Concrete, stone, brick and vinyl tiling, to name a few. With the advancement of geotextile fabrics, installation is easier, the materials are long lasting and durable and are finding their way into greenhouses.

0 && ("buy_x_dollars" == discountResponse.type || "vd" == discountResponse.type)) { var e; if (window.appikonDiscount.settings.vd_placement_settings.hasOwnProperty("final_selector")) { e = $(window.appikonDiscount.settings.vd_placement_settings.final_selector).first(); if (0 === e.length) { e = $("form[action*='/cart/add']").first(); } } else { e = $("form[action*='/cart/add']").first(); } if (0 === $(".adp-vol-wrapper").length) { window.appikonDiscount.settings.vd_placement_settings.hasOwnProperty("placement") && "before" == window.appikonDiscount.settings.vd_placement_settings.placement ? e.before("") : e.after(""); } "buy_x_dollars" === discountResponse.type ? window.appikonDiscount.showBuyXDiscounts($, discountResponse) : window.appikonDiscount.showVolDiscounts($, discountResponse); } } var objectExists = function (t) { return "object" == typeof t ? t : null }; if (objectExists(discountResponse.discounts)) { if(window.appikonDiscount.isAppikonProductPage && discountResponse.product_notification) { window.appikonDiscount.showAppikonNotification($, discountResponse.product_notification); } else if(window.appikonDiscount.isAppikonCartPage && discountResponse.notifications && discountResponse.notifications.length) { window.appikonDiscount.showAppikonNotification($, discountResponse.notifications[0]); } if (objectExists(discountResponse.discounts.cart) && objectExists(discountResponse.discounts.cart.items)) { window.appikonDiscount.showCartDiscounts($, discountResponse.discounts); } } if (discountResponse.product_lowest_price_message && window.appikonDiscount.settings.product_page_price_selector && window.appikonDiscount.settings.product_page_price_selector !== "") { $(window.appikonDiscount.settings.product_page_price_selector).replaceWith("" + discountResponse.product_lowest_price_message + ""); } window.appikonDiscount.reloadCurrency() if (window.appikonDiscount.postDiscountHandlers) { for (let i = 0; i < window.appikonDiscount.postDiscountHandlers.length; i++) { window.appikonDiscount.postDiscountHandlers[i](discountResponse); } } } window.appikonDiscount.isCartChange = ($, newCart) => { var isCartChange = false; var oldCart = window.appikonResponseStore.cartJS; var cartPropertiesToCompare = ["original_total_price", "total_discount", "total_weight", "item_count", "items_subtotal_price"]; $.each(cartPropertiesToCompare, function (i, prop) { if (oldCart[prop] !== newCart[prop]) { isCartChange = true; return false; // break the loop } }); if(!isCartChange && oldCart.items.length !== newCart.items.length) { isCartChange = true; } if(!isCartChange) { $.each(oldCart.items, function(i, oldItem){ var newItem = newCart.items[i]; if(oldItem.id !== newItem.id || oldItem.quantity !== newItem.quantity) { isCartChange = true; return false; // break the loop } }) } return isCartChange; } window.appikonDiscount.processCartData = ($, ajaxCartData) => { if (window.appikonDiscount.isCartChange($, ajaxCartData)) { window.appikonResponseStore.cartJS = ajaxCartData; window.appikonDiscount.prepareAppikonDiscountRequestData($, ajaxCartData) } else { window.appikonDiscount.fillCartData($, false); } } window.appikonDiscount.addCompareAtPrice = async ($, cart) => { var totalCompareAtPrice = 0; await Promise.all(cart.items.map(async (item) => { $.ajax({ url: '/products/' + item.handle + '.js', dataType: 'json', async: false, success: function(product){ for (const variant of product.variants) { item["compare_at_price"] = item["price"]; if (variant.id == item.variant_id && variant.compare_at_price != null) { item["compare_at_price"] = variant.compare_at_price; break; } }; const compareAtLinePrice = item["compare_at_price"] * item["quantity"]; totalCompareAtPrice += compareAtLinePrice; item["compare_at_line_price"] = compareAtLinePrice; } }); })); cart.compare_at_total_price = totalCompareAtPrice; return cart; } window.appikonDiscount.insertCartTitleSnippet = ($, productTitleSelector) => { var isInserted = false; if (!productTitleSelector) { return isInserted; } var selectors = productTitleSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-success-notes").length === 0) { $(this).html($(this).html() + ""); isInserted = true; } }); } }) return isInserted; } window.appikonDiscount.insertCartLinePriceSnippet = ($, cartLinePriceSelector) => { var isInserted = false; if (!cartLinePriceSelector) { return isInserted; } var selectors = cartLinePriceSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-line-price").length == 0) { $(this).html("" + $(this).html() + ""); isInserted = true; } }); } }) return isInserted; } window.appikonDiscount.insertCartUnitPriceSnippet = ($, cartUnitPriceSelector) => { var isInserted = false; if (!cartUnitPriceSelector) { return isInserted; } var selectors = cartUnitPriceSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-unit-price").length == 0) { $(this).html("" + $(this).html() + ""); } }); } }) return isInserted; } window.appikonDiscount.insertCartSubTotalSnippet = ($, cartSubTotalSelector) => { var isInserted = false; if (cartSubTotalSelector) { var selectors = cartSubTotalSelector.split(","); $.each(selectors, function(index, selector) { var elem = $(selector).eq(0); if(elem && elem.length && elem.find(".wholesale-original-cart-total").length == 0) { elem.html("" + "" + elem.html() + "" + "" + "" + "

" + "" + "" + "

"); isInserted = true; } }) } return isInserted; } window.appikonDiscount.insertCartSnippets = ($, cartType) => { var productTitleInserted = null; var linePriceInserted = null; var subtotalInserted = null; var unitPriceInserted = null; if (cartType === 'DRAWER') { productTitleInserted = window.appikonDiscount.insertCartTitleSnippet($, window.appikonDiscount.settings.drawer_cart_product_title_selector); linePriceInserted = window.appikonDiscount.insertCartLinePriceSnippet($, window.appikonDiscount.settings.drawer_cart_line_price_selector); unitPriceInserted = window.appikonDiscount.insertCartUnitPriceSnippet($, window.appikonDiscount.settings.drawer_cart_unit_price_selector); subtotalInserted = window.appikonDiscount.insertCartSubTotalSnippet($, window.appikonDiscount.settings.drawer_cart_sub_total_selector); } else if (cartType === 'REGULAR') { productTitleInserted = window.appikonDiscount.insertCartTitleSnippet($, window.appikonDiscount.settings.regular_cart_product_title_selector); linePriceInserted = window.appikonDiscount.insertCartLinePriceSnippet($, window.appikonDiscount.settings.regular_cart_line_price_selector); unitPriceInserted = window.appikonDiscount.insertCartUnitPriceSnippet($, window.appikonDiscount.settings.regular_cart_unit_price_selector); subtotalInserted = window.appikonDiscount.insertCartSubTotalSnippet($, window.appikonDiscount.settings.regular_cart_sub_total_selector); } return productTitleInserted || linePriceInserted || subtotalInserted || unitPriceInserted; } window.appikonDiscount.fillCartData = ($, forceFill) => { setTimeout(function() { if(window.appikonResponseStore.discountResponse) { var drawerCartSnippets = window.appikonDiscount.insertCartSnippets($, "DRAWER"); var regularCartSnippets = false; if (window.appikonDiscount.settings.is_dynamic_insertion) { regularCartSnippets = window.appikonDiscount.insertCartSnippets($, "REGULAR"); } if(drawerCartSnippets || regularCartSnippets || forceFill == true) { window.appikonDiscount.appikonDelegate($, window.appikonResponseStore.discountResponse); } } }, 400); } window.appikonDiscount.enableCheckoutButtons = ($) => { var checkoutSelectors = window.appikonDiscount.getCheckoutSelectors(); $.each(checkoutSelectors, function(index, selector){ $(selector).prop('disabled', false); }); } window.appikonDiscount.disableCheckoutButtons = ($) => { var checkoutSelectors = window.appikonDiscount.getCheckoutSelectors(); $.each(checkoutSelectors, function(index, selector){ $(selector).prop('disabled', true); }); } window.appikonDiscount.getCheckoutSelectors = () => { var checkoutSelectors = window.appikonDiscount.settings.global.appikonCheckoutSelector.split(","); if(window.appikonDiscount.settings.checkout_selector) { window.appikonDiscount.settings.checkout_selector.split(",").forEach(function(selector){ checkoutSelectors.push(selector.trim()); }); } return checkoutSelectors; } window.appikonDiscount.getAppikonDiscountData = ($) => { if (window.appikonDiscount.settings.use_compare_at_price === true){ var xhrAppiconCartRequet = $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType : "json" }).done(async function(ajaxCartData) { let cartWithCompareAt = await window.appikonDiscount.addCompareAtPrice($, ajaxCartData); window.appikonDiscount.processCartData($, cartWithCompareAt); }).fail(function(jqXHR, status, error) { console.error("getAppikonDiscountData", error, jqXHR.responseText) }) } else { var xhrAppiconCartRequet = $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType : "json" }).done(function(ajaxCartData) { window.appikonDiscount.processCartData($, ajaxCartData); }).fail(function(jqXHR, status, error) { console.error("getAppikonDiscountData", error, jqXHR.responseText) }) } } window.appikonDiscount.prepareAppikonDiscountRequestData = ($, appikonDrawerCart) => { window.appikon.cart = appikonDrawerCart; window.appikon.adp_page = 'cart'; window.appikon.discounts = {}; window.appikon.cart_product_ids = []; appikonDrawerCart.items.forEach(function(item){ var appikon_item = item; ["product_title", "total_discount", "discounts", "grams", "vendor", "taxable", "gift_card", "url", "image", "featured_image", "requires_shipping", "product_type", "product_description", "variant_title", "variant_options"].map(function(k) { delete appikon_item[k] }); window.appikon.cart_product_ids.push(appikon_item.product_id); }); if(window.appikon.cart.items.length > 0) { // Get Product Metadata var xhrAppiconCartViewJSONRequet = $.ajax({ cache: !1, type: "GET", url: "/cart?view=appikon.json", dataType: "text", beforeSend: function(xhr){xhr.setRequestHeader('x-requested-with', '');} }).done(function(data) { var cartMetadataResponse = JSON.parse(data) window.appikon.cart_collection_ids = []; window.appikon.cart.items.forEach(function(item){ cartMetadataResponse.items.forEach(function(cartMetadataItem){ if(cartMetadataItem.id == item.id) { item["collection_ids"] = cartMetadataItem.collectionIds; } }); window.appikon.cart_collection_ids.push(item.collection_ids); }); // disable checkout buttons window.appikonDiscount.disableCheckoutButtons($); // send request to discount api var xhrAppikonDiscountRequest = $.ajax({ cache: !1, type: "POST", url: window.appikonDiscount.settings.app_root_url, data: JSON.stringify(window.appikon), dataType: "json", contentType: "application/json; charset=utf-8" }).done(function(data) { window.appikonResponseStore.discountResponse = data; window.appikonDiscount.fillCartData($, true); window.appikonDiscount.enableCheckoutButtons($); }).fail(function(jqXHR, status, error) { console.error("calculateAppikonDiscount", error, jqXHR.responseText) window.appikonDiscount.enableCheckoutButtons($); }); }).fail(function(jqXHR, status, error) { console.error("prepareAppikonDiscountRequestData", error, jqXHR.responseText) }) } } window.appikonDiscount.triggerDiscountCalculation = ($) => { if (window.appikonResponseStore.cartJS) { window.appikonDiscount.prepareAppikonDiscountRequestData($, window.appikonResponseStore.cartJS); } else { window.appikonDiscount.getAppikonDiscountData($); } } window.appikonDiscount.updateCartItems = ($, items) => { for (var e = 0; e < items.length; e++) { var n = items[e]; n.upsell_note = n.upsell_note ? n.upsell_note : ""; n.success_note = n.success_note ? n.success_note : ""; if (n.discounted_price < n.original_price) { if (window.appikonDiscount.settings.use_compare_at_price === true) { $(".appikon-cart-item-price[data-key='" + n.key + "']").html("" + n.compare_at_price_format + "" + n.discounted_price_format + ""); $(".appikon-cart-item-line-price[data-key='" + n.key + "']").html("" + n.compare_at_line_price_format + "" + n.discounted_line_price_format + ""); $(".appikon-cart-item-unit-price[data-key='" + n.key + "']").html("" + n.compare_at_price_format + "" + n.discounted_price_format + ""); } else { $(".appikon-cart-item-price[data-key='" + n.key + "']").html("" + n.original_price_format + "" + n.discounted_price_format + ""); $(".appikon-cart-item-line-price[data-key='" + n.key + "']").html("" + n.original_line_price_format + "" + n.discounted_line_price_format + ""); $(".appikon-cart-item-unit-price[data-key='" + n.key + "']").html("" + n.original_price_format + "" + n.discounted_price_format + ""); } $("span.discounted_price").css("font-weight", "bold"); } else { if (window.appikonDiscount.settings.use_compare_at_price === true) { $(".appikon-cart-item-price[data-key='" + n.key + "']").html("" + n.compare_at_price_format + ""); $(".appikon-cart-item-line-price[data-key='" + n.key + "']").html("" + n.compare_at_line_price_format + ""); $(".appikon-cart-item-unit-price[data-key='" + n.key + "']").html("" + n.compare_at_price_format + ""); } else { $(".appikon-cart-item-price[data-key='" + n.key + "']").html("" + n.original_price_format + ""); $(".appikon-cart-item-line-price[data-key='" + n.key + "']").html("" + n.original_line_price_format + ""); $(".appikon-cart-item-unit-price[data-key='" + n.key + "']").html("" + n.original_price_format + ""); } $("span.discounted_price").css("font-weight", "normal"); } $(".appikon-cart-item-upsell-notes[data-key='" + n.key + "']").html(n.upsell_note); $(".appikon-cart-item-success-notes[data-key='" + n.key + "']").html(n.success_note); } }; window.appikonDiscount.displayCartTotals = ($, t) => { $(".wholesale-original-cart-total span.wholesale-original-price").length > 0 ? $(".wholesale-original-cart-total span.wholesale-original-price").css("text-decoration", "line-through") : $(".wholesale-original-cart-total").css("text-decoration", "line-through"); $(".wholesale-original-cart-total").show() if (window.appikonDiscount.settings.use_compare_at_price === true) { $("span.wholesale-original-price").html(t.compare_at_price_html); } else { $("span.wholesale-original-price").html(t.original_price_html); } $(".wholesale-cart-total").html("" + t.discounted_price_html + ""); var e = ""; if (t.summary_item_html) { e = t.summary_item_html; } $(".subtotal .cart_savings.sale").hide(); $(".wholesale-cart-total").prepend("

" + e + "

"); if (window.appikonDiscount.settings.show_discount_code) { $('.appikon-discounts-wrapper').remove(); var discountCodePlacementSelectors = window.appikonDiscount.settings.discount_code_settings.inputPlacementSelector.split(','); discountCodePlacementSelectors.forEach((selector, index, array) => { let discountCodeWrapper = "

" + "" + "" + "

" if (window.appikonDiscount.settings.discount_code_settings.inputPlacementPosition === "BEFORE") { $(selector).before(discountCodeWrapper); } else if (window.appikonDiscount.settings.discount_code_settings.inputPlacementPosition === "AFTER") { $(selector).after(discountCodeWrapper); } else if (window.appikonDiscount.settings.discount_code_settings.inputPlacementPosition === "PREPEND") { $(selector).prepend(discountCodeWrapper); } else if (window.appikonDiscount.settings.discount_code_settings.inputPlacementPosition === "APPEND") { $(selector).append(discountCodeWrapper); } else if (window.appikonDiscount.settings.discount_code_settings.inputPlacementPosition === "REPLACE") { $(selector).after(discountCodeWrapper); $(selector).hide(); } }); if (window.appikon.discount_code) { $(".appikon-discounts-wrapper").hide(); $("div[id=appikon-discount-item]").html('' + t.discount_item_html); document.querySelectorAll("#appikon-remove-discount-code").forEach(item => { item.addEventListener('click', event => { window.appikonDiscount.deleteCookie("appikon_discount_" + window.appikonDiscount.settings.shop); delete window.appikon.discount_code; window.appikonDiscount.triggerDiscountCalculation($); }); }); } else { $(".appikon-discounts-wrapper").show(); } } $(".wholesale-cart-total span").css("text-decoration", "none"); window.appikonDiscount.reloadCurrency(); }; window.appikonDiscount.deleteCookie = (t) => { var o = new Date; o.setTime(o.getTime() - 1000); var i = "expires=" + o.toUTCString(); document.cookie = t + "=; " + i + "; path=/;" } window.appikonDiscount.setCookie = (t, e, n) => { var o = new Date; o.setTime(o.getTime() + 24 * n * 60 * 60 * 1e3); var i = "expires=" + o.toUTCString(); document.cookie = t + "=" + e + "; " + i + "; path=/;" } window.appikonDiscount.setCookieMinutes = (t, e, m) => { var o = new Date; o.setTime(o.getTime() + m * 60000); var i = "expires=" + o.toUTCString(); document.cookie = t + "=" + e + "; " + i + "; path=/;" } window.appikonDiscount.setCookieSession = (t, e) => { document.cookie = t + "=" + e + "; path=/;" } window.appikonDiscount.getCookie = (t) => { for (var e = t + "=", n = document.cookie.split(";"), o = 0; o < n.length; o++) { for (var i = n[o]; " " == i.charAt(0);) i = i.substring(1); if (0 == i.indexOf(e)) return i.substring(e.length, i.length) } return "" } // custom JS settings overrides ' +'';} else {var cfpButtonCollection ='

' +'

/products/' + get_product.handle + '

' +'

' + get_product.id + '

' +'

' + get_product.title + '

' +'

' + get_product.handle + '

' +'

' +'' +'

' +'

';}if (current_object != '') {if (!$(curr_this).hasClass(cfpCollectionLabelClass)) {if ($('.cfp-prod-wrapper.' + get_product.handle).length > 0 || current_object.parent().parent().parent().find('.cfp-prod-wrapper-detail').length > 0) {if ($('.cfp-prod-wrapper.' + get_product.handle).parent().parent().parent().find('.cfp-prod-wrapper.' + get_product.handle).length > 0 || current_object.parent().parent().parent().find('.cfp-prod-wrapper-detail').length > 0) {$(".cfp_custom_position." + product_handle).html(cfpButtonCollection);} else {$(".cfp_custom_position." + product_handle).html(cfpButtonCollection);}} else {$(".cfp_custom_position." + product_handle).html(cfpButtonCollection);}current_object.remove();cfpHideAddToCartOnCollection($(curr_this));$(curr_this).addClass(cfpCollectionLabelClass);}}}})})} catch (e) { }}})} else {$("a").each(function () {var curr_this = $(this);var curr_href = curr_this.attr("href");var imgg = $(curr_this).closest('div').find('img').first();if (typeof curr_href !== 'undefined') {if (curr_href.indexOf("products/") >= 1 && $(this).parent().get(0).tagName != 'LI' && !$(this).hasClass('doNotAdd_cfp')) {curr_href = curr_href.split("?")[0];fetch(curr_href + ".json", {credentials: "same-origin"}).then(function (data) {data.json().then(function (data) {var get_product = data.product;var cfp_product_on = false;//check for collectionif (cfp_product_on != true) {for (collection_ID of cfpcolIDSresults) {if (collection_ID.replace(/ /g, '') == collection_id && collection_id !="" && collection_ID != "") {cfp_product_on = true;}}}//check all productsif (sb_cfp_is_all_products == "1" && cfp_product_on != true) { cfp_product_on = true; /*console.log('all pro match ', cfp_product_on); */ }//check specific productsif (cfpprodAllresults.includes(get_product.id.toString()) || sb_cfp_colAllresults.includes(get_product.id.toString()) && cfp_product_on != true) {cfp_product_on = true;}// check products in collectionsif (cfp_product_on != true) {$.each(sb_cfp_ProIDsCollectionsTest, function (key, value) {if (value.includes(get_product.id.toString())) {var colid = key.split('_')[0]cfp_product_on = true;}})}//check for all collection with theme attrvar collection_id_liquid = $(curr_this).attr('collection-id');if (typeof collection_id_liquid != 'undefined') {collection_id_liquid = filterConvertArray(collection_id_liquid)if (cfp_product_on != true) {for (collection_ID of cfpcolIDSresults) {if ($.inArray(collection_ID.replace(/ /g, ''), collection_id_liquid) != -1) {cfp_product_on = true;}}}}if (sb_cfp_enable == "1" && cfp_product_on) {var current_object = '';var cfpProductPrice = 'price';var isButtonPositionFound = true;specificThemePriceClass()if ($(curr_this).find('img').first().length > 0) {if (!$(curr_this).find('img').first().hasClass(cfpCollectionLabelClass)) {current_object = appendCFPButtonCollection(curr_this);$(curr_this).find('img').first().addClass(cfpCollectionLabelClass);}} else if ($(curr_this).closest('div').find('img').first().length > 0) {if (!$(curr_this).closest('div').find('img').first().hasClass(cfpCollectionLabelClass)) {current_object = appendCFPButtonCollection(curr_this);$(curr_this).closest('div').find('img').first().addClass(cfpCollectionLabelClass);}} else if ($(curr_this).closest('div').parent().find('img').first().length > 0) {if (!$(curr_this).closest('div').parent().find('img').first().hasClass(cfpCollectionLabelClass)) {current_object = appendCFPButtonCollection(curr_this);$(curr_this).closest('div').parent().find('img').first().addClass(cfpCollectionLabelClass);}}else if ($(curr_this).closest('div').parent().parent().find('img').first().length > 0) {if (!$(curr_this).closest('div').parent().parent().find('img').first().hasClass(cfpCollectionLabelClass)) {current_object = appendCFPButtonCollection(curr_this)$(curr_this).closest('div').parent().parent().find('img').first().addClass(cfpCollectionLabelClass);}} else if ($(curr_this).closest('div').parent().parent().parent().find('img').first().length > 0) {if (!$(curr_this).closest('div').parent().parent().parent().find('img').first().hasClass(cfpCollectionLabelClass)) {current_object = appendCFPButtonCollection(curr_this)$(curr_this).closest('div').parent().parent().parent().find('img').first().addClass(cfpCollectionLabelClass);}} else if ($(curr_this).closest('div').parent().parent().parent().parent().find('img').first().length > 0) {if (!$(curr_this).closest('div').parent().parent().parent().parent().find('img').first().hasClass(cfpCollectionLabelClass)) {current_object = appendCFPButtonCollection(curr_this)$(curr_this).closest('div').parent().parent().parent().parent().find('img').first().addClass(cfpCollectionLabelClass);}} else if ($(curr_this).closest('div').parent().parent().parent().parent().parent().find('img').first().length > 0) {if (!$(curr_this).closest('div').parent().parent().parent().parent().parent().find('img').first().hasClass(cfpCollectionLabelClass)) {current_object = appendCFPButtonCollection(curr_this)$(curr_this).closest('div').parent().parent().parent().parent().parent().find('img').first().addClass(cfpCollectionLabelClass);}}if (form_button_display_option == 'show_cfp_button') {var cfpButtonCollection ='

' +'

' +'' +'

' +'

';} else {var cfpButtonCollection ='

' +'

/products/' + get_product.handle + '

' +'

' + get_product.id + '

' +'

' + get_product.title + '

' +'

' + get_product.handle + '

' +'

' +'' +'

' +'

';}if (current_object != '') {if (!$(curr_this).hasClass(cfpCollectionLabelClass)) {$(curr_this).addClass(cfpCollectionLabelClass);if ($('.cfp-prod-wrapper.' + get_product.handle).length > 0 || current_object.parent().parent().parent().find('.cfp-prod-wrapper-detail').length > 0) {if ($('.cfp-prod-wrapper.' + get_product.handle).parent().parent().parent().find('.cfp-prod-wrapper.' + get_product.handle).length > 0 || current_object.parent().parent().parent().find('.cfp-prod-wrapper-detail').length > 0) {} else {current_object.after(cfpButtonCollection);}//$('.cfp-prod-wrapper.'+get_product.handle)[1].remove();} else {current_object.after(cfpButtonCollection);}current_object.remove();cfpHideAddToCartOnCollection($(curr_this));}}}})})};}})}}function appendCFPButtonCollection(curr_this) {var cfpProductPrice = 'price';var cfpProductMoney = 'money';var current_object = '';var isTitleFound = false;if (typeof (doNotHidePrice) !== 'undefined') { isTitleFound = true; current_object = curr_this.find('test'); }if (!isTitleFound) {var divFind = $(curr_this).closest('div').find('div,h3,h2,a,span,ul,dl');current_object = searchCFPprice(divFind);if (current_object != '') { isTitleFound = true; }}if (!isTitleFound) {var divFind = $(curr_this).closest('div').parent().find('div,h3,h2,a,span,ul,dl');current_object = searchCFPprice(divFind);if (current_object != '') { isTitleFound = true; }}if (!isTitleFound) {var divFind = $(curr_this).closest('div').parent().parent().find('div,span,ul,dl');current_object = searchCFPprice(divFind);if (current_object != '') { isTitleFound = true; }}if (!isTitleFound) {var divFind = $(curr_this).closest('div').parent().parent().find('a,h2,h3,h4,h1,span,ul,dl');current_object = searchCFPprice(divFind);if (current_object != '') { isTitleFound = true; }}if (!isTitleFound) {var divFind = $(curr_this).closest('div').parent().parent().parent().find('div,h2,h3,a,span,ul,dl');current_object = searchCFPprice(divFind);if (current_object != '') { isTitleFound = true; }}if (!isTitleFound) {var divFind = $(curr_this).closest('div').parent().parent().parent().parent().find('div,h2,h3,a,span,ul,dl');current_object = searchCFPprice(divFind);if (current_object != '') { isTitleFound = true; }}if (!isTitleFound) {var divFind = $(curr_this).closest('div').parent().parent().parent().parent().parent().find('div,h2,h3,a,span,ul,dl');current_object = searchCFPprice(divFind);if (current_object != '') { isTitleFound = true; }}return current_object;}function searchCFPprice(divFind) {var cfpProductPrice = 'price';var cfpProductMoney = 'money';var current_object = '';$(divFind).each(function (i) {var class_title = $(this).attr('class');if (typeof (class_title) != 'undefined') {if (class_title.includes(cfpProductPrice) || class_title.includes(cfpProductMoney)) {current_object = $(this)// $(this).hide(); // return current_object;return false;}}});return current_object;}function CFPcheckForProductPage() {if (window.location.pathname.indexOf('/products/') !== -1) {var sb_cfp_current_collection_list_prodPage = filterConvertArray(cfp_current_collection_list_prodPage);var cfp_total_collection_list_prodPage = cfpcolIDSresults;var cfp_enabled = "no";//check for collection idsif (cfp_enabled != 'yes') {for (collection_name of cfp_total_collection_list_prodPage) {for (current_collection of sb_cfp_current_collection_list_prodPage) {if (current_collection.length >= 2 && collection_name.length >= 2) {if (current_collection.replace(/ /g, '') == collection_name.replace(/ /g, '')) {cfp_enabled = "yes";}}}}}//check all productsif (sb_cfp_is_all_products == "1" && cfp_enabled != 'yes') { cfp_enabled = "yes"; }//check specific productsif (cfpprodAllresults.includes(product_id_sb.toString()) && cfp_enabled != "yes") {cfp_enabled = "yes";}if (cfp_enabled == "yes") {//$('.csp-prod-wrapper.'+product_handle_sb).remove();if (form_button_display_option == 'show_cfp_button') {var addtocfpbutton ='

' +'

' +'' +'

' +'

';} else {var addtocfpbutton ='

' +'

' + product_url + '

' +'

' + curr_hundle_pid + '

' +'

' + curr_title_detailpge + '

' +'

' + product_handle_sb + '

' +'

' +'' +'

' +'

';}var current_object_detail = '';$("form").each(function (index) {var getForm = $(this).attr("action");if (!(typeof (getForm) !== 'undefined') || $(this).hasClass("do_not_check")) {var getForm = '';}if (getForm.includes("/cart/add") && $(".cfp-prod-wrapper-detail").length == 0 && $(".cfp-prod-wrapper-detail-call").length == 0) { if($(".cfp-pdp-custom-position").length <= 0){$(this).after(addtocfpbutton);}$(".cfp-prod-button").show();specificThemePriceClass();// CFPhidePriceOnAllPages($(this));current_object_detail = appendCFPButtonCollection($(this));if (current_object_detail == '') {CFPhidePriceOnAllPages($(this));}CFPhidePriceOnAllPages($(this)); //hide the price added class //05-09var cfpdetaiilInForm = $('form[action*="/cart/add"]').find('.sb-call-for-price-title,.product-meta__title,.product-meta,.product__title,.gt_heading,.product-title,.product-single__title,.product-single__vendor,.cfp-pdp-custom-position')if (!(typeof (doNotHideaddtoCart) !== 'undefined')) {if (cfpdetaiilInForm.length > 0) {$('form[action*="/cart/add"]').find('button').not('.sb_cfp_btn_not_remove').remove(); //someone buys the product so remove the add to cart$('form[action*="/cart/add"]').find('input[type="submit"][name="button"]').remove(); // remove [name] if not working on any store} else {$(this).remove();//someone buys the product so remove the add to cart$('form[action*="/cart/add"]').remove();}if($(".cfp-pdp-custom-position").length <= 0){}else{ $(".cfp-pdp-custom-position").append(addtocfpbutton);}}}});//remove price on detail pageif (current_object_detail != '') {if (checkFreeTheme()) { //for free theme variant change price show issue $("product-info .no-js-hidden").each(function () { if ($(this).find(".price").length > 0) { $(this).remove(); } })}// if (!current_object_detail.parent().hasClass('cfp-detail-checked')) {// current_object_detail.parent().addClass('cfp-detail-checked');current_object_detail.remove();// }}}else {$('form[action="/cart/add"]').show();}}}function specificThemePriceClass(){ if(originThemeName == 'Warehouse'){ hidePriceList_cfp += ',.price-list,.product-form__price-info'; } if(originThemeName == 'Influence'){ $("product-price").addClass('price'); hidePriceList_cfp += ',.payment-buttons'; } if(originThemeName == 'Kalles'){ $(".t4s-sticky-atc__btns").remove(); } if(originThemeName == 'Wokiee'){ $(".tt-fixed-product-wrapper").remove(); } if(originThemeName == 'Avone'){ $(".stickyCart").remove(); hidePriceList_cfp += ',.psinglePriceWr'; } if(originThemeName == 'Prestige'){ $(".product-sticky-bar").remove(); } if(originThemeName == 'Leo ftshop 3'){ $(".ap-productstickyform").remove(); }}function CFPhidePriceOnAllPages(curr_this) {//if (typeof (doNotHidePrice) !== 'undefined') {return;}if ($(curr_this).find(hidePriceList_cfp).length > 0) {$(curr_this).find(hidePriceList_cfp).remove();} else if ($(curr_this).closest('div').find(hidePriceList_cfp).length > 0) {$(curr_this).closest('div').find(hidePriceList_cfp).remove();} else if ($(curr_this).closest('div').parent().find(hidePriceList_cfp).length > 0) {$(curr_this).closest('div').parent().find(hidePriceList_cfp).remove();} else if ($(curr_this).closest('div').parent().parent().find(hidePriceList_cfp).length > 0) {$(curr_this).closest('div').parent().parent().find(hidePriceList_cfp).remove();} else if ($(curr_this).closest('div').parent().parent().parent().find(hidePriceList_cfp).length > 0) {$(curr_this).closest('div').parent().parent().parent().find(hidePriceList_cfp).remove();} else if ($(curr_this).closest('div').parent().parent().parent().find(hidePriceList_cfp).length > 0) {$(curr_this).closest('div').parent().parent().parent().find(hidePriceList_cfp).remove();} else if ($(curr_this).closest('div').parent().parent().parent().parent().find(hidePriceList_cfp).length > 0) {$(curr_this).closest('div').parent().parent().parent().parent().find(hidePriceList_cfp).remove();} else if ($(curr_this).closest('div').parent().parent().parent().parent().parent().find(hidePriceList_cfp).length > 0) {$(curr_this).closest('div').parent().parent().parent().parent().parent().find(hidePriceList_cfp).remove();}}function cfpHideAddToCartOnCollection(curr_this) {var hideCartBuuton = 'form[action*="/cart/add"],.quick-view,.t4s-pr-quickview,.t4s-pr-addtocart,.add-to-cart,.quick-view-btn,.boost-pfs-quickview-btn,.quick-add,.product-form__quantity,.quickbuy-toggle,product-to-cart,.m-product-quickview-button,.tt-btn-quickview,.quickShop,.woodmart-buttons,.product-buttons,.product-cta,.product-cta-upright,.quickview-icon,.btn-quickview,.productitem--actions,.quick-product__btn,.product-item__quick-form';if ((typeof (doNotHideaddtoCart) !== 'undefined')) { var hideCartBuuton = 'NOT-HIDE'; }if ((typeof (doHideaddtoCartOnCollection) !== 'undefined')) { var hideCartBuuton = doHideaddtoCartOnCollection; }// var priceClass = '.price,.money';var priceClass = '.product-name,.title,.product-title,.sb-call-for-price-title,.product-single__title';if ($(curr_this).find(hideCartBuuton).length > 0) {if ($(curr_this).children().find(hideCartBuuton).find(priceClass).length <= 0) {$(curr_this).find(hideCartBuuton).remove();}} else if ($(curr_this).closest('div').find(hideCartBuuton).length > 0) {if ($(curr_this).closest('div').find(hideCartBuuton).children().find(priceClass).length <= 0) {$(curr_this).closest('div').find(hideCartBuuton).remove();}} else if ($(curr_this).closest('div').parent().find(hideCartBuuton).length > 0) {if ($(curr_this).closest('div').parent().find(hideCartBuuton).children().find(priceClass).length <= 0) {$(curr_this).closest('div').parent().find(hideCartBuuton).remove();}} else if ($(curr_this).closest('div').parent().parent().find(hideCartBuuton).length > 0) {if ($(curr_this).closest('div').parent().parent().find(hideCartBuuton).children().find(priceClass).length <= 0) {$(curr_this).closest('div').parent().parent().find(hideCartBuuton).remove();}} else if ($(curr_this).closest('div').parent().parent().parent().find(hideCartBuuton).length > 0) {if ($(curr_this).closest('div').parent().parent().parent().find(hideCartBuuton).children().find(priceClass).length <= 0) {$(curr_this).closest('div').parent().parent().parent().find(hideCartBuuton).remove();}} else if ($(curr_this).closest('div').parent().parent().parent().find(hideCartBuuton).length > 0) {if ($(curr_this).closest('div').parent().parent().parent().find(hideCartBuuton).children().find(priceClass).length <= 0) {$(curr_this).closest('div').parent().parent().parent().find(hideCartBuuton).remove();}} else if ($(curr_this).closest('div').parent().parent().parent().parent().find(hideCartBuuton).length > 0) {if ($(curr_this).closest('div').parent().parent().parent().parent().find(hideCartBuuton).children().find(priceClass).length <= 0) {$(curr_this).closest('div').parent().parent().parent().parent().find(hideCartBuuton).remove();}} else if ($(curr_this).closest('div').parent().parent().parent().parent().parent().find(hideCartBuuton).length > 0) {if ($(curr_this).closest('div').parent().parent().parent().parent().parent().find(hideCartBuuton).children().find(priceClass).length <= 0) {$(curr_this).closest('div').parent().parent().parent().parent().parent().find(hideCartBuuton).remove();}}}setTimeout(function () { hideSearchPrice($) }, 1000);}function loadEventForm($) { $(document).on('keyup','.form-group input[type="text"],.form-group input[type="number"]',function(){ $(this).parent().find('.text-danger').remove(); $(this).removeClass('invalid-cfp-field'); }); $(document).on('keyup','#cfpemail',function(){ $(this).parent().find('.text-danger').remove(); $(this).removeClass('invalid-cfp-field'); var email = $('#cfpemail').val(); var email_regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (email.length == 0) { $('#cfpemail').after(`${email_blank_vald}`); $('#cfpemail').addClass('invalid-cfp-field'); count_name = false; }else if (!email_regex.test(email)) { $('#cfpemail').after(`${email_invalid_vald}`); $('#cfpemail').addClass('invalid-cfp-field'); count_name = false; }});$(document).on('keyup','#cfpphone',function(){ $(this).parent().find('.text-danger').remove(); $("#cfpphone").removeClass('invalid-cfp-field'); var phone = $('#cfpphone').val(); var countrycode_val = phone.match(/\d{5,15}$/); if (required_form_fields.includes("phone") && phone.length <= 5) { if (phone.length <= 5) { $('#cfpphone').after(`${phone_blank_vald}`); $('#cfpphone').addClass('invalid-cfp-field'); } }});$(document).on('keyup','#cfpcountrycode',function(){ $(this).parent().find('.text-danger').remove(); $("#cfpcountrycode").removeClass('invalid-cfp-field'); if ($("#cfpcountrycode").length) { var cfpcountrycode = $("#cfpcountrycode").val(); var countrycode_val = cfpcountrycode.match(/^\+\d{1,3}/); 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}`); $('#cfpcountrycode').addClass('invalid-cfp-field'); } } }}); $(document).on('change',"select.form-control",function(){ $(this).addClass("color-black-cfp-select");}); // code for theme-2 form************************ var Theme2_data = (productdata) => {var images = productdata.product.images;var productImgDivMain = `

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

Greenhouse Flooring (33)

`;}productImgDivMain += `

`;//productImgDivthumbnail += `

`;if (form_template == '1') {var finalImageFomrm = productImgDivMain;$('.slider-image-theme2').html(finalImageFomrm);}}var Create_form_fields = (productdata) => {var options = productdata.product.options;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.replaceAll(" ","_");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);var options_html = varianValuesArray.forEach(Create_selectmenu);function Create_selectmenu(item) {var options = '';//created dynamic options for select menu$('#' + select_id).append(options);}}}// 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();$(document).on('click', '.call-for-price-btn', function (e) {$('.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 startvar url = window.location.href;$('#cfpmodal').css("display", "block");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);if (variants_enable == "1") {Create_form_fields(productdata);}if (form_template == "1") {Theme2_data(productdata);// New initialization-------------------}$('.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 += `Name : ${name1}%0D%0AE-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) {// VariantsArray="abcd";}/* validation controllers*/count_name = true;if (name1.length == 0) {$('#cfpname').after(`${name_vald}`);$('#cfpname').addClass('invalid-cfp-field');count_name = false;}else if (email.length == 0) {$('#cfpemail').after(`${email_blank_vald}`);$('#cfpemail').addClass('invalid-cfp-field');count_name = false;}else if (!email_regex.test(email)) {$('#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 (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");}}$.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($) {if (form_theme == '1' && form_template == '1') {var form_design = `#cfpmodal .slider-image-theme2 { width: 45%; }.call-for-price-modal-wrapper .cfp-modal-content { position: relative; background-color: #fefefe; margin: auto; margin-bottom: 10%; padding: 0; width: 850px !important; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); -webkit-animation-name: animatetop; -webkit-animation-duration: 0.4s; animation-name: animatetop; animation-duration: 0.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;}.cfp-modal-body {background-color: #fff;}.call-for-price-modal-wrapper .cfp-modal-header {padding: 13px 0px;border-bottom: 1px solid #e7e6e6;}.alert {margin-top: 10px;}select.cfp_var_data {font-size: 15px!important;color: #7e7d7d!important;background-color: #fff !important;padding-bottom: 8px;}.cfp-modal-body .form-group input[type=file], .cfp-modal-body .form-group input[type=number], .cfp-modal-body .form-group input[type=email], .cfp-modal-body .form-group input[type=text], .cfp-modal-body .form-group textarea, .cfp-modal-body .form-group select{ padding: 10px 10px !important; border: 1px solid #dfdfdf !important; height: auto !important; box-shadow: inset 0px -1px 3px 0px #e9e9e9; border-radius: 7px; margin: 10px 0px 0px !important;}.cfp-modal-body .form-group input:focus-visible, .cfp-modal-body .form-group textarea:focus-visible, .cfp-modal-body .form-group select:focus-visible {outline: none;box-shadow: none;border-bottom: 1px solid #545151!important;}.cfp_subscribe_wrapper {display: flex;align-items: flex-start;gap: 5px; margin: 10px 0px 0px !important;}.form-group.file {margin-top: -8px;}.country_field {padding: 15px 0px 10px 0;}select.cfp_var_data {padding: 15px 0px 10px 0;}.form-group .uploade {margin-top: -8px!important;}.call-for-price-modal-wrapper label,.call-for-price-modal-wrapper input,.call-for-price-modal-wrapper textarea {padding: 15px 0px 10px 5px!important;}.call-for-price-modal-wrapper .cfp-modal-body {padding: 5px 20px 20px;}.call-for-price-modal-wrapper .cfp-modal-body{margin: -5px 0 0 20px!important;}.call-for-price-modal-wrapper .cfp-modal-header h3 {text-align: left !important;padding-left: 22px;margin: 0;font-weight: 700;font-family: inherit;}@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-enabled {position: relative;}.flickity-enabled:focus {outline: none;}.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: white;background: hsla(0, 0%, 100%, 0.75);cursor: pointer;-webkit-transform: translateY(-50%);transform: translateY(-50%);}.flickity-prev-next-button:hover {background: white;}.flickity-prev-next-button:focus {outline: none;box-shadow: 0 0 0 5px #09F;}.flickity-prev-next-button:active {opacity: 0.6;}.flickity-prev-next-button.previous {left: 0;}.flickity-prev-next-button.next {right: 0;}*/.flickity-prev-next-button:disabled {opacity: 0.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;}.carousel {background: #FAFAFA;}.carousel-cell {width: 100%;margin-right: 8px;background: transparent ;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%;}.flickity-enabled {position: relative;}.flickity-enabled:focus {outline: none; }.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: white;background: hsla(0, 0%, 100%, 0.75);cursor: pointer;-webkit-transform: translateY(-50%);transform: translateY(-50%);} .flickity-prev-next-button:hover {background: white;} .flickity-prev-next-button:focus {outline: none;box-shadow: 0 0 0 5px #09F;} .flickity-prev-next-button:active {opacity: 0.6;} .flickity-prev-next-button.previous {left: 0;} .call-for-price-modal-wrapper .submit-btn{text-align: left !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: 0.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: transparent ;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') {var form_design = `#cfpmodal .cfp-modal-body {width: 100%; padding: 20px !important;}.call-for-price-modal-wrapper .cfp-modal-header {background-color: #fff;color: #333333d9;}.cfp-modal-body {background-color: #fff;}.call-for-price-modal-wrapper .cfp-modal-header {padding: 13px 0px;border-bottom: 1px solid #e7e6e6;}.alert {margin-top: 10px;}select.cfp_var_data {font-size: 15px!important;color: #000!important;background-color: #fff !important;padding-bottom: 8px;}.cfp-modal-body .form-group input[type=file], .cfp-modal-body .form-group input[type=number], .cfp-modal-body .form-group input[type=email], .cfp-modal-body .form-group input[type=text], .cfp-modal-body .form-group textarea, .cfp-modal-body .form-group select{ padding: 10px 10px !important; border: 1px solid #dfdfdf !important; height: auto !important; box-shadow: inset 0px -1px 3px 0px #e9e9e9; border-radius: 7px; margin: 10px 0px 0px !important;}.cfp-modal-body .form-group input:focus-visible, .cfp-modal-body .form-group textarea:focus-visible, .cfp-modal-body .form-group select:focus-visible {outline: none;box-shadow: none;border-bottom: 1px solid #545151!important;}.cfp_subscribe_wrapper {display: flex;align-items: flex-start;gap: 5px; margin: 10px 0px 0px !important;}.form-group.file {margin-top: -8px;}.country_field {padding: 15px 0px 10px 0;}select.cfp_var_data {padding: 15px 0px 10px 0;}.form-group .uploade {margin-top: -8px!important;}.call-for-price-modal-wrapper label,.call-for-price-modal-wrapper input,.call-for-price-modal-wrapper textarea {padding: 15px 0px 10px 5px!important;}#cfpmodal .cfp-parent-wrapper{padding: 0 0 1px 0 !important;} `;} else {var form_design = `.call-for-price-modal-wrapper .cfp-modal-header { background-color: #333333d9; color: #333333d9;}.call-for-price-modal-wrapper .cfp-modal-header { padding: 16px 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 0px 0px !important;}.call-for-price-modal-wrapper label, .call-for-price-modal-wrapper input, .call-for-price-modal-wrapper textarea{padding: 10px 0px 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")) { 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; }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://web.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 (`collection` == "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
Greenhouse Flooring (2024)
Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 5531

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.