$product = {"id":7416352243811,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 The Powerpuff Girls - 魔人啾啾的攻擊","handle":"iphone-8-mod-nx-printable-sr04","description":null,"published_at":"2024-06-11T16:56:42+08:00","created_at":"2024-05-06T14:40:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-the-power-puff-girls","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41918809702499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491918889059,"product_id":7416352243811,"position":7,"created_at":"2024-05-06T14:40:36+08:00","updated_at":"2024-05-06T14:40:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636","variant_ids":[41918809702499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-SR04","featured_media":{"alt":null,"id":23897331892323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacaa0b08e9cc6575fdc35ba4d74c502ba2891ae_37c50e4c-709f-41b5-a075-4a8e4cabca33.webp?v=1714977622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ace197e7b5ad49b5fd778c5efbd18fe00aa1001_bb293422-c51a-43ae-be86-ec0522216f0d.webp?v=1714977624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc28f47dfdd3e73f162bd46adae4e7b7bde00011_9fd92e9c-d15d-4226-a2f3-5b86e75ea88b.webp?v=1714977627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ba044a927967d37faa12025acd35bb1452d284_d82d5bb5-c091-434b-b14d-479efce17e38.webp?v=1714977629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20cfcc3b6e748e71b28890df7f4c5fc80c61e89a_94b65893-a1a1-484a-a2a7-d82736af07a9.webp?v=1714977632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597d9d218b6d9db293ab3e1c90696e0d41610f25_a3afccef-7f1a-4020-9e00-16a30b54c634.webp?v=1714977634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0be70cb256fd8c3485597b822d218a2a79dcb3d1_86bec50a-1795-45cf-aacc-9cb14c3c35b6.webp?v=1714977639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e30ee56a314a473eb17474b7304879dc56944c7f_e4b27db7-f830-47f1-a98a-017bdb48dd78.webp?v=1714977641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab767de298a8f6a1b3d5e493e42a2313702f81ca_fc0d71a2-b961-45aa-9544-d2f709b4381e.webp?v=1714977644"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacaa0b08e9cc6575fdc35ba4d74c502ba2891ae_37c50e4c-709f-41b5-a075-4a8e4cabca33.webp?v=1714977622","options":["color"],"media":[{"alt":null,"id":23897328779363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacaa0b08e9cc6575fdc35ba4d74c502ba2891ae_37c50e4c-709f-41b5-a075-4a8e4cabca33.webp?v=1714977622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacaa0b08e9cc6575fdc35ba4d74c502ba2891ae_37c50e4c-709f-41b5-a075-4a8e4cabca33.webp?v=1714977622","width":2000},{"alt":null,"id":23897329205347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ace197e7b5ad49b5fd778c5efbd18fe00aa1001_bb293422-c51a-43ae-be86-ec0522216f0d.webp?v=1714977624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ace197e7b5ad49b5fd778c5efbd18fe00aa1001_bb293422-c51a-43ae-be86-ec0522216f0d.webp?v=1714977624","width":2000},{"alt":null,"id":23897329631331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc28f47dfdd3e73f162bd46adae4e7b7bde00011_9fd92e9c-d15d-4226-a2f3-5b86e75ea88b.webp?v=1714977627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc28f47dfdd3e73f162bd46adae4e7b7bde00011_9fd92e9c-d15d-4226-a2f3-5b86e75ea88b.webp?v=1714977627","width":2000},{"alt":null,"id":23897330319459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ba044a927967d37faa12025acd35bb1452d284_d82d5bb5-c091-434b-b14d-479efce17e38.webp?v=1714977629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ba044a927967d37faa12025acd35bb1452d284_d82d5bb5-c091-434b-b14d-479efce17e38.webp?v=1714977629","width":2000},{"alt":null,"id":23897330876515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20cfcc3b6e748e71b28890df7f4c5fc80c61e89a_94b65893-a1a1-484a-a2a7-d82736af07a9.webp?v=1714977632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20cfcc3b6e748e71b28890df7f4c5fc80c61e89a_94b65893-a1a1-484a-a2a7-d82736af07a9.webp?v=1714977632","width":2000},{"alt":null,"id":23897331236963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597d9d218b6d9db293ab3e1c90696e0d41610f25_a3afccef-7f1a-4020-9e00-16a30b54c634.webp?v=1714977634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597d9d218b6d9db293ab3e1c90696e0d41610f25_a3afccef-7f1a-4020-9e00-16a30b54c634.webp?v=1714977634","width":2000},{"alt":null,"id":23897331892323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636","width":2000},{"alt":null,"id":23897332318307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0be70cb256fd8c3485597b822d218a2a79dcb3d1_86bec50a-1795-45cf-aacc-9cb14c3c35b6.webp?v=1714977639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0be70cb256fd8c3485597b822d218a2a79dcb3d1_86bec50a-1795-45cf-aacc-9cb14c3c35b6.webp?v=1714977639","width":2000},{"alt":null,"id":23897332875363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e30ee56a314a473eb17474b7304879dc56944c7f_e4b27db7-f830-47f1-a98a-017bdb48dd78.webp?v=1714977641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e30ee56a314a473eb17474b7304879dc56944c7f_e4b27db7-f830-47f1-a98a-017bdb48dd78.webp?v=1714977641","width":2000},{"alt":null,"id":23897333203043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab767de298a8f6a1b3d5e493e42a2313702f81ca_fc0d71a2-b961-45aa-9544-d2f709b4381e.webp?v=1714977644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab767de298a8f6a1b3d5e493e42a2313702f81ca_fc0d71a2-b961-45aa-9544-d2f709b4381e.webp?v=1714977644","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918809702499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491918889059,"product_id":7416352243811,"position":7,"created_at":"2024-05-06T14:40:36+08:00","updated_at":"2024-05-06T14:40:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636","variant_ids":[41918809702499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-SR04","featured_media":{"alt":null,"id":23897331892323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918809702499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491918889059,"product_id":7416352243811,"position":7,"created_at":"2024-05-06T14:40:36+08:00","updated_at":"2024-05-06T14:40:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636","variant_ids":[41918809702499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-SR04","featured_media":{"alt":null,"id":23897331892323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c0e4f2a80656bfee260a44f9e4c0d851a1ffc9e_e672cf11-c21e-4b06-b123-50bc37e6d9db.webp?v=1714977636"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }