$product = {"id":7411315834979,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 美食派對","handle":"iphone-14-plus-mod-nx-magsafe-printable-yb11","description":null,"published_at":"2024-06-11T17:41:38+08:00","created_at":"2024-05-05T00:06:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41897348759651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120344675,"product_id":7411315834979,"position":1,"created_at":"2024-05-05T00:06:08+08:00","updated_at":"2024-05-05T00:06:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768","variant_ids":[41897348759651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 美食派對 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB11","featured_media":{"alt":null,"id":23885371310179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750cdc28cf67c20e84dd16f583258b8eb314ce3e_bc32d60e-de62-4325-b5ae-4e997fb24e1e.webp?v=1714838770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90d5aebcd08a123d986a4b1bcc49f7ed4173487_90685b06-60a9-40d9-ae9c-77bb489f204a.webp?v=1714838773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8906759344128c69c0786c1ca5c92b85de0d63_5a728d39-8e0b-4c6c-8d60-160f7075a64c.webp?v=1714838775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1da8658ac7914060f677fdee2a3e2a60ef39ac9_16efd952-29c8-47a8-b4b1-f83ddf78a0db.webp?v=1714838778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dcb26ce7c72006ea4dde479570ae5ab66be8a7d_f33d3a57-c34b-4ff9-aa44-908d6f7c8e67.webp?v=1714838780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27211203dfa0c6860fa313bb9ab863fa78d6977c_fa54a4cc-6ffc-4551-bab7-82e71763c37c.webp?v=1714838783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24a03693a78afb4b47e446b4741b9cd8557682e7_fc862646-2ee7-4f96-a060-4f09ae3a337a.webp?v=1714838785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0778ae40a126e1e9f78b4548bd262b88058f1227_00a94a2e-8a8e-4cec-85be-72ba1ac9350b.webp?v=1714838788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc39d7287bb7cfabd2a61efaaea96317029a663_89ebba7b-00d6-4384-a2df-bc889932b3e1.webp?v=1714838790"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768","options":["color"],"media":[{"alt":null,"id":23885371310179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768","width":2000},{"alt":null,"id":23885371965539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750cdc28cf67c20e84dd16f583258b8eb314ce3e_bc32d60e-de62-4325-b5ae-4e997fb24e1e.webp?v=1714838770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750cdc28cf67c20e84dd16f583258b8eb314ce3e_bc32d60e-de62-4325-b5ae-4e997fb24e1e.webp?v=1714838770","width":2000},{"alt":null,"id":23885372850275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90d5aebcd08a123d986a4b1bcc49f7ed4173487_90685b06-60a9-40d9-ae9c-77bb489f204a.webp?v=1714838773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90d5aebcd08a123d986a4b1bcc49f7ed4173487_90685b06-60a9-40d9-ae9c-77bb489f204a.webp?v=1714838773","width":2000},{"alt":null,"id":23885373341795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8906759344128c69c0786c1ca5c92b85de0d63_5a728d39-8e0b-4c6c-8d60-160f7075a64c.webp?v=1714838775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8906759344128c69c0786c1ca5c92b85de0d63_5a728d39-8e0b-4c6c-8d60-160f7075a64c.webp?v=1714838775","width":2000},{"alt":null,"id":23885373964387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1da8658ac7914060f677fdee2a3e2a60ef39ac9_16efd952-29c8-47a8-b4b1-f83ddf78a0db.webp?v=1714838778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1da8658ac7914060f677fdee2a3e2a60ef39ac9_16efd952-29c8-47a8-b4b1-f83ddf78a0db.webp?v=1714838778","width":2000},{"alt":null,"id":23885374357603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dcb26ce7c72006ea4dde479570ae5ab66be8a7d_f33d3a57-c34b-4ff9-aa44-908d6f7c8e67.webp?v=1714838780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dcb26ce7c72006ea4dde479570ae5ab66be8a7d_f33d3a57-c34b-4ff9-aa44-908d6f7c8e67.webp?v=1714838780","width":2000},{"alt":null,"id":23885374849123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27211203dfa0c6860fa313bb9ab863fa78d6977c_fa54a4cc-6ffc-4551-bab7-82e71763c37c.webp?v=1714838783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27211203dfa0c6860fa313bb9ab863fa78d6977c_fa54a4cc-6ffc-4551-bab7-82e71763c37c.webp?v=1714838783","width":2000},{"alt":null,"id":23885375209571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24a03693a78afb4b47e446b4741b9cd8557682e7_fc862646-2ee7-4f96-a060-4f09ae3a337a.webp?v=1714838785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24a03693a78afb4b47e446b4741b9cd8557682e7_fc862646-2ee7-4f96-a060-4f09ae3a337a.webp?v=1714838785","width":2000},{"alt":null,"id":23885375832163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0778ae40a126e1e9f78b4548bd262b88058f1227_00a94a2e-8a8e-4cec-85be-72ba1ac9350b.webp?v=1714838788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0778ae40a126e1e9f78b4548bd262b88058f1227_00a94a2e-8a8e-4cec-85be-72ba1ac9350b.webp?v=1714838788","width":2000},{"alt":null,"id":23885376258147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc39d7287bb7cfabd2a61efaaea96317029a663_89ebba7b-00d6-4384-a2df-bc889932b3e1.webp?v=1714838790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc39d7287bb7cfabd2a61efaaea96317029a663_89ebba7b-00d6-4384-a2df-bc889932b3e1.webp?v=1714838790","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897348759651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120344675,"product_id":7411315834979,"position":1,"created_at":"2024-05-05T00:06:08+08:00","updated_at":"2024-05-05T00:06:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768","variant_ids":[41897348759651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 美食派對 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB11","featured_media":{"alt":null,"id":23885371310179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897348759651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120344675,"product_id":7411315834979,"position":1,"created_at":"2024-05-05T00:06:08+08:00","updated_at":"2024-05-05T00:06:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768","variant_ids":[41897348759651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 美食派對 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB11","featured_media":{"alt":null,"id":23885371310179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa442aab21da233546e1263abd3d5c7f52141b35_e84fba98-5722-44cb-ad51-24d8d40f16af.webp?v=1714838768"}},"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: "停產" }