$product = {"id":7411236307043,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - The Powerpuff Girls - 愛心徽章","handle":"iphone-14-plus-mod-nx-magsafe-printable-sr02","description":null,"published_at":"2024-06-11T17:39:32+08:00","created_at":"2024-05-04T23:50:59+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 14 Plus","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":41896351858787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479922819171,"product_id":7411236307043,"position":2,"created_at":"2024-05-04T23:51:04+08:00","updated_at":"2024-05-04T23:51:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864","variant_ids":[41896351858787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 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":"MPB0126124-SR02","featured_media":{"alt":null,"id":23885173260387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0d50c15de748c61cd047d8a9fdbe663c935a9a_b0ef9f63-01a4-4616-9441-9ac5d5b45c48.webp?v=1714837862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a316e427838d189bbc91038cea7fced5132f3f2_6a206892-5220-4806-8fbf-d5971d289a20.webp?v=1714837866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89268dcd4ff7e2088e3274a5fccddb75035bdc6f_ab640ee9-ffed-4d11-871c-beb81f221c94.webp?v=1714837868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9f50013827eb53b1096d47ce43668e8af1d7f0_c3f39af9-b86e-45d5-8f4b-e256cc422a1f.webp?v=1714837871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b315d4a45bfe698b358932199aea769f2bb4c62e_24d59196-020d-42f9-83d5-3778ac37379a.webp?v=1714837873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5323e905b62e65c0d874ff84153bcd5fa8d948_13330348-7ac3-489c-bdfe-0e448d2d4a16.webp?v=1714837875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd00d0b46f3d8f4232c299d32b1468ab69a7daec_7dbea533-dafc-4e2a-ac13-52745d30b963.webp?v=1714837878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d642d536bc4716ba9f961609a617f3c37fe24e1c_5fda46a5-cf1f-403c-9b71-97555c767cfa.webp?v=1714837880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc23a67afd41c66a8265a4483e3fa772cb65209a_7e3f115b-42e1-495f-9f43-5c60435123c7.webp?v=1714837882"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0d50c15de748c61cd047d8a9fdbe663c935a9a_b0ef9f63-01a4-4616-9441-9ac5d5b45c48.webp?v=1714837862","options":["color"],"media":[{"alt":null,"id":23885172899939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0d50c15de748c61cd047d8a9fdbe663c935a9a_b0ef9f63-01a4-4616-9441-9ac5d5b45c48.webp?v=1714837862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0d50c15de748c61cd047d8a9fdbe663c935a9a_b0ef9f63-01a4-4616-9441-9ac5d5b45c48.webp?v=1714837862","width":2000},{"alt":null,"id":23885173260387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864","width":2000},{"alt":null,"id":23885173686371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a316e427838d189bbc91038cea7fced5132f3f2_6a206892-5220-4806-8fbf-d5971d289a20.webp?v=1714837866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a316e427838d189bbc91038cea7fced5132f3f2_6a206892-5220-4806-8fbf-d5971d289a20.webp?v=1714837866","width":2000},{"alt":null,"id":23885174177891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89268dcd4ff7e2088e3274a5fccddb75035bdc6f_ab640ee9-ffed-4d11-871c-beb81f221c94.webp?v=1714837868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89268dcd4ff7e2088e3274a5fccddb75035bdc6f_ab640ee9-ffed-4d11-871c-beb81f221c94.webp?v=1714837868","width":2000},{"alt":null,"id":23885174538339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9f50013827eb53b1096d47ce43668e8af1d7f0_c3f39af9-b86e-45d5-8f4b-e256cc422a1f.webp?v=1714837871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9f50013827eb53b1096d47ce43668e8af1d7f0_c3f39af9-b86e-45d5-8f4b-e256cc422a1f.webp?v=1714837871","width":2000},{"alt":null,"id":23885175029859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b315d4a45bfe698b358932199aea769f2bb4c62e_24d59196-020d-42f9-83d5-3778ac37379a.webp?v=1714837873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b315d4a45bfe698b358932199aea769f2bb4c62e_24d59196-020d-42f9-83d5-3778ac37379a.webp?v=1714837873","width":2000},{"alt":null,"id":23885175554147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5323e905b62e65c0d874ff84153bcd5fa8d948_13330348-7ac3-489c-bdfe-0e448d2d4a16.webp?v=1714837875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5323e905b62e65c0d874ff84153bcd5fa8d948_13330348-7ac3-489c-bdfe-0e448d2d4a16.webp?v=1714837875","width":2000},{"alt":null,"id":23885176012899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd00d0b46f3d8f4232c299d32b1468ab69a7daec_7dbea533-dafc-4e2a-ac13-52745d30b963.webp?v=1714837878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd00d0b46f3d8f4232c299d32b1468ab69a7daec_7dbea533-dafc-4e2a-ac13-52745d30b963.webp?v=1714837878","width":2000},{"alt":null,"id":23885176602723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d642d536bc4716ba9f961609a617f3c37fe24e1c_5fda46a5-cf1f-403c-9b71-97555c767cfa.webp?v=1714837880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d642d536bc4716ba9f961609a617f3c37fe24e1c_5fda46a5-cf1f-403c-9b71-97555c767cfa.webp?v=1714837880","width":2000},{"alt":null,"id":23885177159779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc23a67afd41c66a8265a4483e3fa772cb65209a_7e3f115b-42e1-495f-9f43-5c60435123c7.webp?v=1714837882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc23a67afd41c66a8265a4483e3fa772cb65209a_7e3f115b-42e1-495f-9f43-5c60435123c7.webp?v=1714837882","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896351858787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479922819171,"product_id":7411236307043,"position":2,"created_at":"2024-05-04T23:51:04+08:00","updated_at":"2024-05-04T23:51:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864","variant_ids":[41896351858787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 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":"MPB0126124-SR02","featured_media":{"alt":null,"id":23885173260387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896351858787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479922819171,"product_id":7411236307043,"position":2,"created_at":"2024-05-04T23:51:04+08:00","updated_at":"2024-05-04T23:51:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864","variant_ids":[41896351858787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 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":"MPB0126124-SR02","featured_media":{"alt":null,"id":23885173260387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c24a1c1052567ab2e92b47c0bb6c7226b8f85a9_fd3e2226-3dea-462b-8965-4ef9c6122a85.webp?v=1714837864"}},"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: "停產" }