$product = {"id":7414969729123,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - The Powerpuff Girls - 花花","handle":"iphone-12-mini-mod-nx-magsafe-printable-sr05","description":null,"published_at":"2024-06-11T17:54:27+08:00","created_at":"2024-05-05T19:57:50+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":41910465724515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487806767203,"product_id":7414969729123,"position":6,"created_at":"2024-05-05T19:58:04+08:00","updated_at":"2024-05-05T19:58:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284","variant_ids":[41910465724515]},"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-SR05","featured_media":{"alt":null,"id":23893150695523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a387567fc825835d901d65d72c6393f6e7b63aba_7d0f0b20-4595-4f8a-a23f-317ba5454c37.webp?v=1714910272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2bbe49df56a4abb3ab25fe55203684307ec819a_03173652-12e9-4c2e-8e03-164e39e5b066.webp?v=1714910275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/983176b6fbb73869a16a247a153675c949bc22fd_cd37197d-1a5c-4f67-b55e-ca4ea698a890.webp?v=1714910277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d746a9080ac0f03685587ee6065ed98aa90e6132_6e7620e9-8480-497e-a09c-666f7b8b7111.webp?v=1714910279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7e64996239081f3b19d7ab2e28f1eec8b5e649_6c0b0318-4c94-4231-b1a7-f24c1535bab9.webp?v=1714910282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeee29354439a86e2c2beaab9352582a76b5898c_546e1236-7736-4823-bb16-034cc7844070.webp?v=1714910286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec7075f8014c7d2844f7316d3b69cb4caceeb4_9e816540-2547-4c39-a6ba-c7a58d456350.webp?v=1714910289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6224e1925f6f6ec8bd9d254e91fa96e3bf23470_d7ba9041-855d-47bc-a1dd-0a1722d98f1d.webp?v=1714910291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6676c3eb71b4de8cbc0b2e2f4c1e9bbc19d2d839_0b3abb8d-9f8c-4960-a440-c5dc603ea4ea.webp?v=1714910293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/168bbfaeda6ed9583fc9ca5f2b0896ea8719a1ec_4ea037a8-6158-4ef3-a883-f4049d790e2d.webp?v=1714910296"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a387567fc825835d901d65d72c6393f6e7b63aba_7d0f0b20-4595-4f8a-a23f-317ba5454c37.webp?v=1714910272","options":["color"],"media":[{"alt":null,"id":23893147484259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a387567fc825835d901d65d72c6393f6e7b63aba_7d0f0b20-4595-4f8a-a23f-317ba5454c37.webp?v=1714910272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a387567fc825835d901d65d72c6393f6e7b63aba_7d0f0b20-4595-4f8a-a23f-317ba5454c37.webp?v=1714910272","width":2000},{"alt":null,"id":23893148368995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2bbe49df56a4abb3ab25fe55203684307ec819a_03173652-12e9-4c2e-8e03-164e39e5b066.webp?v=1714910275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2bbe49df56a4abb3ab25fe55203684307ec819a_03173652-12e9-4c2e-8e03-164e39e5b066.webp?v=1714910275","width":2000},{"alt":null,"id":23893148926051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/983176b6fbb73869a16a247a153675c949bc22fd_cd37197d-1a5c-4f67-b55e-ca4ea698a890.webp?v=1714910277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/983176b6fbb73869a16a247a153675c949bc22fd_cd37197d-1a5c-4f67-b55e-ca4ea698a890.webp?v=1714910277","width":2000},{"alt":null,"id":23893149384803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d746a9080ac0f03685587ee6065ed98aa90e6132_6e7620e9-8480-497e-a09c-666f7b8b7111.webp?v=1714910279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d746a9080ac0f03685587ee6065ed98aa90e6132_6e7620e9-8480-497e-a09c-666f7b8b7111.webp?v=1714910279","width":2000},{"alt":null,"id":23893150105699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7e64996239081f3b19d7ab2e28f1eec8b5e649_6c0b0318-4c94-4231-b1a7-f24c1535bab9.webp?v=1714910282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7e64996239081f3b19d7ab2e28f1eec8b5e649_6c0b0318-4c94-4231-b1a7-f24c1535bab9.webp?v=1714910282","width":2000},{"alt":null,"id":23893150695523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284","width":2000},{"alt":null,"id":23893151219811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeee29354439a86e2c2beaab9352582a76b5898c_546e1236-7736-4823-bb16-034cc7844070.webp?v=1714910286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeee29354439a86e2c2beaab9352582a76b5898c_546e1236-7736-4823-bb16-034cc7844070.webp?v=1714910286","width":2000},{"alt":null,"id":23893152039011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec7075f8014c7d2844f7316d3b69cb4caceeb4_9e816540-2547-4c39-a6ba-c7a58d456350.webp?v=1714910289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec7075f8014c7d2844f7316d3b69cb4caceeb4_9e816540-2547-4c39-a6ba-c7a58d456350.webp?v=1714910289","width":2000},{"alt":null,"id":23893152596067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6224e1925f6f6ec8bd9d254e91fa96e3bf23470_d7ba9041-855d-47bc-a1dd-0a1722d98f1d.webp?v=1714910291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6224e1925f6f6ec8bd9d254e91fa96e3bf23470_d7ba9041-855d-47bc-a1dd-0a1722d98f1d.webp?v=1714910291","width":2000},{"alt":null,"id":23893153087587,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6676c3eb71b4de8cbc0b2e2f4c1e9bbc19d2d839_0b3abb8d-9f8c-4960-a440-c5dc603ea4ea.webp?v=1714910293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6676c3eb71b4de8cbc0b2e2f4c1e9bbc19d2d839_0b3abb8d-9f8c-4960-a440-c5dc603ea4ea.webp?v=1714910293","width":2000},{"alt":null,"id":23893154201699,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/168bbfaeda6ed9583fc9ca5f2b0896ea8719a1ec_4ea037a8-6158-4ef3-a883-f4049d790e2d.webp?v=1714910296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/168bbfaeda6ed9583fc9ca5f2b0896ea8719a1ec_4ea037a8-6158-4ef3-a883-f4049d790e2d.webp?v=1714910296","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910465724515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487806767203,"product_id":7414969729123,"position":6,"created_at":"2024-05-05T19:58:04+08:00","updated_at":"2024-05-05T19:58:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284","variant_ids":[41910465724515]},"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-SR05","featured_media":{"alt":null,"id":23893150695523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910465724515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487806767203,"product_id":7414969729123,"position":6,"created_at":"2024-05-05T19:58:04+08:00","updated_at":"2024-05-05T19:58:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284","variant_ids":[41910465724515]},"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-SR05","featured_media":{"alt":null,"id":23893150695523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4641247062bb648c41c974e8fa100003fff8da7_573ebd31-76cf-4890-935b-bfde0fa66fef.webp?v=1714910284"}},"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: "停產" }