function share_product(platform){
window.cuurentProductDetail && window.cuurentProductDetail.share(platform)
}
window.share_url = {“facebook”:”https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_facebook&t=u3010Home Improvementu3011Dimplex Cheriton Freestanding Optiflame Electric Fire, Traditional Fireplace Suite, Imitation Burner Stove with LED Flames, Thermostat, 2kW Heater, Real Coal & Remote Control u2013 Black/Brass”,”twitter”:”https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_twitter&text=u3010Home Improvementu3011Dimplex Cheriton Freestanding Optiflame Electric Fire, Traditional Fireplace Suite, Imitation Burner Stove with LED Flames, Thermostat, 2kW Heater, Real Coal & Remote Control u2013 Black/Brass&url=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_twitter”,”pinterest”:”http://pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_pinterest&media=https://cdn.staticsyy.com/uploads/48490/cart/resources/20230907/4DAD2D35-26A5-4E97-F589-831CE40DDF11.jpg&description=u3010Home Improvementu3011Dimplex Cheriton Freestanding Optiflame Electric Fire, Traditional Fireplace Suite, Imitation Burner Stove with LED Flames, Thermostat, 2kW Heater, Real Coal & Remote Control u2013 Black/Brass”,”dialog”:”https://www.facebook.com/dialog/send?app_id=766580586845269&link=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_messenger&t=u3010Home Improvementu3011Dimplex Cheriton Freestanding Optiflame Electric Fire, Traditional Fireplace Suite, Imitation Burner Stove with LED Flames, Thermostat, 2kW Heater, Real Coal & Remote Control u2013 Black/Brass&redirect_uri=https://www.spainse.shop/products/dimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5″,”vk”:”https://vk.com/share.php?url=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_vk&title=u3010Home Improvementu3011Dimplex Cheriton Freestanding Optiflame Electric Fire, Traditional Fireplace Suite, Imitation Burner Stove with LED Flames, Thermostat, 2kW Heater, Real Coal & Remote Control u2013 Black/Brass&image=https://cdn.staticsyy.com/uploads/48490/cart/resources/20230907/4DAD2D35-26A5-4E97-F589-831CE40DDF11.jpg”,”tumblr”:”https://www.tumblr.com/widgets/share/tool?posttype=link&canonicalUrl=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_tumblr”,”linkedin”:”https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_linkin&title=u3010Home Improvementu3011Dimplex Cheriton Freestanding Optiflame Electric Fire, Traditional Fireplace Suite, Imitation Burner Stove with LED Flames, Thermostat, 2kW Heater, Real Coal & Remote Control u2013 Black/Brass”,”line”:”http://line.me/R/msg/text/?u3010Home Improvementu3011Dimplex Cheriton Freestanding Optiflame Electric Fire, Traditional Fireplace Suite, Imitation Burner Stove with LED Flames, Thermostat, 2kW Heater, Real Coal & Remote Control u2013 Black/Brass https%3A%2F%2Fwww.spainse.shop%2Fproducts%2Fdimplex_cheriton_freestanding_optiflame_electric_fire_traditional_fireplace_suite_imitation_burner_stove_with_led_flames_thermostat_2kw_heater_real_coal_remote_control_-_black_brass_97f38df5%3Fparent_user_id%3D0%26utm_source%3Dsns_share%26utm_medium%3Dshare_line”};
{% for comment in comments %}
{% assign commentIndex = forloop.index %}
{% endfor %}
$(function(){
var commentList = [];
var waterfall = new waterfalls({
id: “#comment-bottom-warp”,
bottomDistance: 30,
renderType: “liquid”,
renderComplete(node) {
node.find(“.comment_warp-images img”).click(function () {
const JqThis = $(this);
const parentIndex = JqThis.data(“parent”);
moi.pictureImages(commentList[parentIndex].images.src, JqThis.data(“index”) – 1, JqThis)
})
},
resizeConfig: [
{min: 0,max: 1023,rowGutter: ’20px’,columnsGutter: ’20px’,columns: 1},
{min: 1024,rowGutter: ’30px’,columnsGutter: ’30px’,columns: 2}
],
render(data, callback) {
engine.parseAndRender($(“#omesaas-comment-temp-block”).html(), {
comments: data.map((item) => {
item.price = formatMoney(item.price, oemcart_currency);
item.created_at_str = moi.formatZoneDate(item.created_at, “YYYY-mm-dd”);
item.replied_at_str = moi.formatZoneDate(item.replied_at, “YYYY-mm-dd”);
return item;
}),
storeConfig: storeConfig,
lang: lang
}).then(function (liquidHtml) {
const node = $(liquidHtml);
callback && callback.call(this, node)
});
}
})
var rightWaterfall = new waterfalls({
id: “#comment-right-warp”,
bottomDistance: 30,
renderType: “liquid”,
renderComplete(node) {
node.find(“.comment_warp-images img”).click(function () {
var JqThis = $(this);
var parentIndex = JqThis.data(“parent”);
moi.pictureImages(commentList[parentIndex].images.src, JqThis.data(“index”) – 1, JqThis)
})
},
resizeConfig: [
{min: 0,rowGutter: ’20px’,columnsGutter: ’20px’,columns: 1}
],
render(data, callback) {
engine.parseAndRender($(“#omesaas-comment-temp-block”).html(), {
comments: data.map((item) => {
item.price = formatMoney(item.price, oemcart_currency);
item.created_at_str = moi.formatZoneDate(item.created_at, “YYYY-mm-dd”);
item.replied_at_str = moi.formatZoneDate(item.replied_at, “YYYY-mm-dd”);
return item;
}),
storeConfig: storeConfig,
lang: lang
}).then(function (liquidHtml) {
const node = $(liquidHtml);
callback && callback.call(this, node)
});
}
})
var isCommentShow = false;
if (!commentList.length) {
$(“.comment-warp”).html($(‘#omesaas-comment-empty’).html())
}else{
waterfall.addStorage([])
rightWaterfall.addStorage([])
}
})
moi.setPageStorage(‘product_detail’, oemcart_product);
const oemcartProductCell = {
tabsClass:”product-tabs-item-active”,
contentClass:”product-tabs-content-item-active”,
cellClass:”module-cell-active”,
handleTabChange(){
$(this).addClass(oemcartProductCell.tabsClass).siblings().removeClass(oemcartProductCell.tabsClass);
$(‘.product-tabs-content-item’).eq($(this).index()).addClass(oemcartProductCell.contentClass).siblings().removeClass(oemcartProductCell.contentClass);
$(‘.module-cell’).eq($(this).index()).addClass(oemcartProductCell.cellClass).siblings().removeClass(oemcartProductCell.cellClass);
},
handleMobileTabChange(){
if($(this).parent().hasClass(oemcartProductCell.cellClass)){
$(this).parent().removeClass(oemcartProductCell.cellClass)
}else{
const diffTop = $(this).parent().offset().top – $(window).scrollTop()
$(this).parent().addClass(oemcartProductCell.cellClass).siblings().removeClass(oemcartProductCell.cellClass);
$(‘.product-tabs-item’).eq($(this).parent().index()).addClass(oemcartProductCell.tabsClass).siblings().removeClass(oemcartProductCell.tabsClass);
$(‘.product-tabs-content-item’).eq($(this).parent().index()).addClass(oemcartProductCell.contentClass).siblings().removeClass(oemcartProductCell.contentClass);
if($(window).scrollTop() > $(this).parent().offset().top ){
$(“html,body”).stop().animate({ scrollTop: $(this).parent().offset().top – diffTop }, 0, “slow”);
}
}
},
event(){
$(‘.product-tabs-item’).click(oemcartProductCell.handleTabChange)
$(‘.module-cell .module-cell-header’).click(oemcartProductCell.handleMobileTabChange)
}
}
function addProductTab(tabData,classStr) {
if (!Array.isArray(tabData)) {
console.error(“tab data error”);
return false;
}
tabData.forEach((item) => {
var tabItem = $(`
${item.title}
`);
var mobileTabItem = $(`
`);
$(“.product-tabs”).append(tabItem);
$(“.module-box”).append(mobileTabItem);
$(“.product-tabs-content”).append(`
${item.content}
`);
tabItem.click(oemcartProductCell.handleTabChange)
mobileTabItem.find(“.module-cell-header”).click(oemcartProductCell.handleMobileTabChange)
});
}
$(function(){
oemcartProductCell.event()
})
$(function(){
var backBtn = “show”;
if(document.referrer === “” || backBtn == ‘hide’ ){
$(“.back-box”).hide()
}
var productDetail = new omesaasProduct({
product:oemcart_product,
data_from:’collection_detail’,
ec_currency_code: ‘USD’,
id:’#sku-option-3076780′,
block_id:”3076780″,
isMainProduct:true,
wishlist:”.wishlist-box”,
quantity:1,
})
window.cuurentProductDetail = productDetail;
//PayPal payment callback succeeded
moi.addEvent(‘paypalec_callback’, function (event) {
if(event.params.payId === ‘3076780’){
productDetail.callbackAddToCart();
}
})
moi.quantity({
dom: $(“#product_detail #mo-quantity”),
change(val) {
productDetail.setSelectedVal({quantity:val.value });
}
})
$(“#add-cart-7643485”).click(function () {
if(!productDetail.verifyOption(“cart”)){
return false
}
moi.addEvent(‘addCart’, function (event) {
productDetail.cartLayer();
},true)
var load = moi.nodeShowLoading(this, “mo-loading-black”)
productDetail.addCart(function () {load.close();}, function (data) {
if (!data.code) {
let ids = ”;
if (oemcart_product.collections.length) {
ids = oemcart_product.collections.map((item) => item.collection_id).join(“,”)
}
moi.onEvent(“addCart”,{
product_id: productDetail.product.id,
collection_id: ids
})
} else {
return moi.alert({
title: data.msg
});
}
})
})
$(“#buynow-7643485”).click(function () {
if(!productDetail.verifyOption(‘buy’)){
return false
}
var load = moi.nodeShowLoading(this)
productDetail.buynow(function () { load.close(); }, function (ret) {
if (!ret.code) {
window.location.href = ret.data.checkout_url
} else {
return moi.alert({
title: ret.msg
});
}
})
})
})
document.addEventListener(‘DOMContentLoaded’, (event) => {
$(“.product_view”).on(“click”, oemsaasQuickview);
$(‘html,body’).find(‘img[data-src]’).each(function() {
addLazyImages($(this))
});
})
var _app_googletranslate_api_url = ‘/app-api/googletranslate/48490’;
var _app_googletranslate_sort_weight = ‘0’;
var _app_detailmarkettool_api_url = ‘/app-api/detailmarkettool/48490’;
var _app_detailmarkettool_sort_weight = ‘160’;
var _app_recentsale_api_url = ‘/app-api/recentsale/48490’;
var _app_recentsale_sort_weight = ‘900’;
var _app_producttransaction_api_url = ‘/app-api/producttransaction/48490’;
var _app_producttransaction_sort_weight = ‘137’;
var _app_webpagebooster_api_url = ‘/app-api/webpagebooster/48490’;
var _app_webpagebooster_sort_weight = ‘0’;
var _app_holidaydecoration_api_url = ‘/app-api/holidaydecoration/48490’;
var _app_holidaydecoration_sort_weight = ‘0’;
var _app_cartshake_api_url = ‘/app-api/cartshake/48490′;
var _app_cartshake_sort_weight = ’50’;
var _app_virtualtrack_api_url = ‘/app-api/virtualtrack/48490’;
var _app_virtualtrack_sort_weight = ‘155’;
var _app_exitintent_api_url = ‘/app-api/exitintent/48490’;
var _app_exitintent_sort_weight = ‘0’;
var _app_reviewdb_api_url = ‘/app-api/reviewdb/48490’;
var _app_reviewdb_sort_weight = ‘0’;
var _app_countdown_api_url = ‘/app-api/countdown/48490’;
var _app_countdown_sort_weight = ‘140’;
var _app_buyat_api_url = ‘/app-api/buyat/48490’;
var _app_buyat_sort_weight = ‘150’;
var _app_trusttool_api_url = ‘/app-api/trusttool/48490’;
var _app_trusttool_sort_weight = ‘110’;
var _app_selectcopyscript_api_url = ‘/app-api/selectcopyscript/48490′;
var _app_selectcopyscript_sort_weight = ’50’;
var execution_time = 0.1126010418;