$product = {"id":7411409748067,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Work Day","handle":"iphone-14-plus-mod-nx-magsafe-printable-hq03","description":null,"published_at":"2024-06-11T17:44:12+08:00","created_at":"2024-05-05T00:24:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41898528243811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480354406499,"product_id":7411409748067,"position":1,"created_at":"2024-05-05T00:24:19+08:00","updated_at":"2024-05-05T00:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859","variant_ids":[41898528243811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Work Day - 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-HQ03","featured_media":{"alt":null,"id":23885605961827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b0e14edfb559db74e19190eeebbf871182cc2d_47ea7f47-5492-4c01-a583-5a8f04f6789b.webp?v=1714839861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0dce77a586f1b60036453269de1b9444cf1c2a_6b5aa765-3790-46df-85b6-f53b9d921239.webp?v=1714839864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8665524cc4ada8cece452b2baf4f0ff63efdd38e_1e5a4ff6-e74f-4368-9f86-39966e2d48fd.webp?v=1714839867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cfd7f4181fd11fa70d61e018cc09b3c8f16366_c9968401-87b2-4102-95bb-9d0ba47e4588.webp?v=1714839870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17ab1284ec9c8edb9bdbd0a6e75c1b9dfbf371e_416c4b12-06b9-45a8-a195-f7f8d958e00f.webp?v=1714839872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ddaa9dc5046217de0908ed7ef0de9e9ef6f311_03398f9f-5cee-4507-8d63-b4b4a1ea44b8.webp?v=1714839874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b11c4fecb191ec7da8af53281e9e49186f04777_9c812d57-a550-4c3b-ac41-ad66243f44ee.webp?v=1714839877","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b249b5749d555984340bf67ff5371aa4eadba9_a5db8749-b453-4c3c-a8c8-48c9fd4dd3db.webp?v=1714839879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba6027d95caae11db0fdbb2d5889eee9e758caf_2b1b6f2b-d1cf-403a-924f-30233369047c.webp?v=1714839881"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859","options":["color"],"media":[{"alt":null,"id":23885605961827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859","width":2000},{"alt":null,"id":23885606355043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b0e14edfb559db74e19190eeebbf871182cc2d_47ea7f47-5492-4c01-a583-5a8f04f6789b.webp?v=1714839861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b0e14edfb559db74e19190eeebbf871182cc2d_47ea7f47-5492-4c01-a583-5a8f04f6789b.webp?v=1714839861","width":2000},{"alt":null,"id":23885607075939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0dce77a586f1b60036453269de1b9444cf1c2a_6b5aa765-3790-46df-85b6-f53b9d921239.webp?v=1714839864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0dce77a586f1b60036453269de1b9444cf1c2a_6b5aa765-3790-46df-85b6-f53b9d921239.webp?v=1714839864","width":2000},{"alt":null,"id":23885607731299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8665524cc4ada8cece452b2baf4f0ff63efdd38e_1e5a4ff6-e74f-4368-9f86-39966e2d48fd.webp?v=1714839867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8665524cc4ada8cece452b2baf4f0ff63efdd38e_1e5a4ff6-e74f-4368-9f86-39966e2d48fd.webp?v=1714839867","width":2000},{"alt":null,"id":23885608255587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cfd7f4181fd11fa70d61e018cc09b3c8f16366_c9968401-87b2-4102-95bb-9d0ba47e4588.webp?v=1714839870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cfd7f4181fd11fa70d61e018cc09b3c8f16366_c9968401-87b2-4102-95bb-9d0ba47e4588.webp?v=1714839870","width":2000},{"alt":null,"id":23885608878179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17ab1284ec9c8edb9bdbd0a6e75c1b9dfbf371e_416c4b12-06b9-45a8-a195-f7f8d958e00f.webp?v=1714839872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17ab1284ec9c8edb9bdbd0a6e75c1b9dfbf371e_416c4b12-06b9-45a8-a195-f7f8d958e00f.webp?v=1714839872","width":2000},{"alt":null,"id":23885609369699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ddaa9dc5046217de0908ed7ef0de9e9ef6f311_03398f9f-5cee-4507-8d63-b4b4a1ea44b8.webp?v=1714839874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ddaa9dc5046217de0908ed7ef0de9e9ef6f311_03398f9f-5cee-4507-8d63-b4b4a1ea44b8.webp?v=1714839874","width":2000},{"alt":null,"id":23885609795683,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b11c4fecb191ec7da8af53281e9e49186f04777_9c812d57-a550-4c3b-ac41-ad66243f44ee.webp?v=1714839877"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b11c4fecb191ec7da8af53281e9e49186f04777_9c812d57-a550-4c3b-ac41-ad66243f44ee.webp?v=1714839877","width":2000},{"alt":null,"id":23885610319971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b249b5749d555984340bf67ff5371aa4eadba9_a5db8749-b453-4c3c-a8c8-48c9fd4dd3db.webp?v=1714839879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b249b5749d555984340bf67ff5371aa4eadba9_a5db8749-b453-4c3c-a8c8-48c9fd4dd3db.webp?v=1714839879","width":2000},{"alt":null,"id":23885610778723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba6027d95caae11db0fdbb2d5889eee9e758caf_2b1b6f2b-d1cf-403a-924f-30233369047c.webp?v=1714839881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba6027d95caae11db0fdbb2d5889eee9e758caf_2b1b6f2b-d1cf-403a-924f-30233369047c.webp?v=1714839881","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898528243811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480354406499,"product_id":7411409748067,"position":1,"created_at":"2024-05-05T00:24:19+08:00","updated_at":"2024-05-05T00:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859","variant_ids":[41898528243811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Work Day - 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-HQ03","featured_media":{"alt":null,"id":23885605961827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898528243811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480354406499,"product_id":7411409748067,"position":1,"created_at":"2024-05-05T00:24:19+08:00","updated_at":"2024-05-05T00:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859","variant_ids":[41898528243811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - Work Day - 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-HQ03","featured_media":{"alt":null,"id":23885605961827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cc0cfcc17b4deb537b7330faca7a3425b46dfe_d5620f61-b2ad-4a61-8904-92f17b32e126.webp?v=1714839859"}},"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: "停產" }