$product = {"id":7415102734435,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - The Powerpuff Girls - 魔人啾啾的攻擊","handle":"iphone-12-mini-mod-nx-magsafe-printable-sr04","description":null,"published_at":"2024-06-11T17:58:02+08:00","created_at":"2024-05-05T20:23:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-the-power-puff-girls","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41911890739299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31488167018595,"product_id":7415102734435,"position":4,"created_at":"2024-05-05T20:23:25+08:00","updated_at":"2024-05-05T20:23:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805","variant_ids":[41911890739299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-SR04","featured_media":{"alt":null,"id":23893511700579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d095f3af20e597810709ad4b7a92aa504de8635_fbbcb0da-9d33-42ae-89da-0d4626c4e988.webp?v=1714911797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ba2b7ece1979864a182b104cc3f061e8be5ca1_bff35df2-2d01-47d4-8b7d-112fd1399683.webp?v=1714911800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340fef576cc4960576ffedd18c038f4cc7702352_e71da3b2-4ac6-465b-b8d0-bd95c66a2a3e.webp?v=1714911802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee977c9005b26bf648ca72cd78985714c4aef60_bec776c8-5d9d-48ab-89bb-91c918e968eb.webp?v=1714911807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129a6f98ade8efb31e9bc787a159490a7e45151a_92a6e681-c1c7-4880-a2f8-d0a5c3d72024.webp?v=1714911809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4583135311ebe1a332556ca35c60c157421b068f_f7c5473b-5c49-4609-b82b-5d275152d88d.webp?v=1714911812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779e6abc25620c4ccc5f67edbe5e6d702e7da18d_875fa6bf-0941-4810-bbf8-5ea4045ebe85.webp?v=1714911814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952675e8901cb19f29ba1aabe35a35703b01d82c_b81086d2-d4cc-4843-8da8-52f521eefeab.webp?v=1714911817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611881ba11995884f855a70551a1184eae0131_3f8ab631-bf1f-436f-a721-705320dbe561.webp?v=1714911819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1691c4d7a10e01af840ba740c6cc80d96357891_2e49db19-feca-4046-a1e6-2a9a5e59ddd2.webp?v=1714911822"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d095f3af20e597810709ad4b7a92aa504de8635_fbbcb0da-9d33-42ae-89da-0d4626c4e988.webp?v=1714911797","options":["color"],"media":[{"alt":null,"id":23893509406819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d095f3af20e597810709ad4b7a92aa504de8635_fbbcb0da-9d33-42ae-89da-0d4626c4e988.webp?v=1714911797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d095f3af20e597810709ad4b7a92aa504de8635_fbbcb0da-9d33-42ae-89da-0d4626c4e988.webp?v=1714911797","width":2000},{"alt":null,"id":23893509996643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ba2b7ece1979864a182b104cc3f061e8be5ca1_bff35df2-2d01-47d4-8b7d-112fd1399683.webp?v=1714911800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ba2b7ece1979864a182b104cc3f061e8be5ca1_bff35df2-2d01-47d4-8b7d-112fd1399683.webp?v=1714911800","width":2000},{"alt":null,"id":23893510553699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340fef576cc4960576ffedd18c038f4cc7702352_e71da3b2-4ac6-465b-b8d0-bd95c66a2a3e.webp?v=1714911802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340fef576cc4960576ffedd18c038f4cc7702352_e71da3b2-4ac6-465b-b8d0-bd95c66a2a3e.webp?v=1714911802","width":2000},{"alt":null,"id":23893511700579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805","width":2000},{"alt":null,"id":23893512093795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee977c9005b26bf648ca72cd78985714c4aef60_bec776c8-5d9d-48ab-89bb-91c918e968eb.webp?v=1714911807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee977c9005b26bf648ca72cd78985714c4aef60_bec776c8-5d9d-48ab-89bb-91c918e968eb.webp?v=1714911807","width":2000},{"alt":null,"id":23893512847459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129a6f98ade8efb31e9bc787a159490a7e45151a_92a6e681-c1c7-4880-a2f8-d0a5c3d72024.webp?v=1714911809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129a6f98ade8efb31e9bc787a159490a7e45151a_92a6e681-c1c7-4880-a2f8-d0a5c3d72024.webp?v=1714911809","width":2000},{"alt":null,"id":23893513535587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4583135311ebe1a332556ca35c60c157421b068f_f7c5473b-5c49-4609-b82b-5d275152d88d.webp?v=1714911812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4583135311ebe1a332556ca35c60c157421b068f_f7c5473b-5c49-4609-b82b-5d275152d88d.webp?v=1714911812","width":2000},{"alt":null,"id":23893513994339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779e6abc25620c4ccc5f67edbe5e6d702e7da18d_875fa6bf-0941-4810-bbf8-5ea4045ebe85.webp?v=1714911814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779e6abc25620c4ccc5f67edbe5e6d702e7da18d_875fa6bf-0941-4810-bbf8-5ea4045ebe85.webp?v=1714911814","width":2000},{"alt":null,"id":23893514354787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952675e8901cb19f29ba1aabe35a35703b01d82c_b81086d2-d4cc-4843-8da8-52f521eefeab.webp?v=1714911817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952675e8901cb19f29ba1aabe35a35703b01d82c_b81086d2-d4cc-4843-8da8-52f521eefeab.webp?v=1714911817","width":2000},{"alt":null,"id":23893514551395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611881ba11995884f855a70551a1184eae0131_3f8ab631-bf1f-436f-a721-705320dbe561.webp?v=1714911819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611881ba11995884f855a70551a1184eae0131_3f8ab631-bf1f-436f-a721-705320dbe561.webp?v=1714911819","width":2000},{"alt":null,"id":23893515108451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1691c4d7a10e01af840ba740c6cc80d96357891_2e49db19-feca-4046-a1e6-2a9a5e59ddd2.webp?v=1714911822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1691c4d7a10e01af840ba740c6cc80d96357891_2e49db19-feca-4046-a1e6-2a9a5e59ddd2.webp?v=1714911822","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911890739299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31488167018595,"product_id":7415102734435,"position":4,"created_at":"2024-05-05T20:23:25+08:00","updated_at":"2024-05-05T20:23:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805","variant_ids":[41911890739299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-SR04","featured_media":{"alt":null,"id":23893511700579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911890739299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31488167018595,"product_id":7415102734435,"position":4,"created_at":"2024-05-05T20:23:25+08:00","updated_at":"2024-05-05T20:23:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805","variant_ids":[41911890739299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - The Powerpuff Girls - 魔人啾啾的攻擊 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-SR04","featured_media":{"alt":null,"id":23893511700579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4ee8c29e2fad4ebc9d8677e47fca35633614b_4a457958-f65c-40c0-ac74-bb6f226bc67f.webp?v=1714911805"}},"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: "停產" }