$product = {"id":7411029475427,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 願傷疤開花(恆春)","handle":"iphone-15-plus-mod-nx-magsafe-printable-ae01","description":null,"published_at":"2024-06-11T17:34:26+08:00","created_at":"2024-05-04T22:29:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 15 Plus","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41894272172131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479326998627,"product_id":7411029475427,"position":1,"created_at":"2024-05-04T22:29:47+08:00","updated_at":"2024-05-04T22:29:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987","variant_ids":[41894272172131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0129624-AE01","featured_media":{"alt":null,"id":23884574228579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894272303203,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479327719523,"product_id":7411029475427,"position":2,"created_at":"2024-05-04T22:29:49+08:00","updated_at":"2024-05-04T22:29:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3685e90e2e4de570098b0de6b554eaa7f6e7294_de356299-f58c-434a-bcc5-c3cd9f2c50d5.webp?v=1714832989","variant_ids":[41894272303203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0129657-AE01","featured_media":{"alt":null,"id":23884575015011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3685e90e2e4de570098b0de6b554eaa7f6e7294_de356299-f58c-434a-bcc5-c3cd9f2c50d5.webp?v=1714832989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3685e90e2e4de570098b0de6b554eaa7f6e7294_de356299-f58c-434a-bcc5-c3cd9f2c50d5.webp?v=1714832989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a89782b517edf7fe53311caf00214f0e545a437_88c51161-403d-40f4-9288-48dca68f2fdf.webp?v=1714832992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0c76873bc43b45e3185bb9a53895f950b2e73c2_3022d195-2b20-4117-a772-7d573e9673bb.webp?v=1714832994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5507b7ad70c5fdc9ad944fe873f7f97486ef3a1_d31f0ef3-eca4-4313-8915-6da975766412.webp?v=1714832997","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a99a8e219e515f33491c680c95d3795a5219a0_8fecdaea-96c2-42e7-b50f-b5d2e8143824.webp?v=1714832999","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f08e351b86f8e2efac8063b9f9d898835ab4f3_5a137a30-1059-4940-93a3-6d2d09a5367d.webp?v=1714833002","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a651cf2646f774d2d9d35d1561ab38214ac98b3_4baa05f7-c499-4ca3-bbcb-3e60b2d3d069.webp?v=1714833004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3558274003373827efdf70b5acfd6493d75b1a1c_d049514b-4b5e-4a5d-ae4a-4ca544fd38bf.webp?v=1714833006","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3857b2c5d28b9671a44490bff22f6e3175cd80_e52b8703-b681-461c-9e7d-ecd4e03311dc.webp?v=1714833009"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987","options":["color"],"media":[{"alt":null,"id":23884574228579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987","width":2000},{"alt":null,"id":23884575015011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3685e90e2e4de570098b0de6b554eaa7f6e7294_de356299-f58c-434a-bcc5-c3cd9f2c50d5.webp?v=1714832989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3685e90e2e4de570098b0de6b554eaa7f6e7294_de356299-f58c-434a-bcc5-c3cd9f2c50d5.webp?v=1714832989","width":2000},{"alt":null,"id":23884575506531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a89782b517edf7fe53311caf00214f0e545a437_88c51161-403d-40f4-9288-48dca68f2fdf.webp?v=1714832992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a89782b517edf7fe53311caf00214f0e545a437_88c51161-403d-40f4-9288-48dca68f2fdf.webp?v=1714832992","width":2000},{"alt":null,"id":23884576161891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0c76873bc43b45e3185bb9a53895f950b2e73c2_3022d195-2b20-4117-a772-7d573e9673bb.webp?v=1714832994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0c76873bc43b45e3185bb9a53895f950b2e73c2_3022d195-2b20-4117-a772-7d573e9673bb.webp?v=1714832994","width":2000},{"alt":null,"id":23884576784483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5507b7ad70c5fdc9ad944fe873f7f97486ef3a1_d31f0ef3-eca4-4313-8915-6da975766412.webp?v=1714832997"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5507b7ad70c5fdc9ad944fe873f7f97486ef3a1_d31f0ef3-eca4-4313-8915-6da975766412.webp?v=1714832997","width":2000},{"alt":null,"id":23884577439843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a99a8e219e515f33491c680c95d3795a5219a0_8fecdaea-96c2-42e7-b50f-b5d2e8143824.webp?v=1714832999"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a99a8e219e515f33491c680c95d3795a5219a0_8fecdaea-96c2-42e7-b50f-b5d2e8143824.webp?v=1714832999","width":2000},{"alt":null,"id":23884577734755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f08e351b86f8e2efac8063b9f9d898835ab4f3_5a137a30-1059-4940-93a3-6d2d09a5367d.webp?v=1714833002"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f08e351b86f8e2efac8063b9f9d898835ab4f3_5a137a30-1059-4940-93a3-6d2d09a5367d.webp?v=1714833002","width":2000},{"alt":null,"id":23884578324579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a651cf2646f774d2d9d35d1561ab38214ac98b3_4baa05f7-c499-4ca3-bbcb-3e60b2d3d069.webp?v=1714833004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a651cf2646f774d2d9d35d1561ab38214ac98b3_4baa05f7-c499-4ca3-bbcb-3e60b2d3d069.webp?v=1714833004","width":2000},{"alt":null,"id":23884578848867,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3558274003373827efdf70b5acfd6493d75b1a1c_d049514b-4b5e-4a5d-ae4a-4ca544fd38bf.webp?v=1714833006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3558274003373827efdf70b5acfd6493d75b1a1c_d049514b-4b5e-4a5d-ae4a-4ca544fd38bf.webp?v=1714833006","width":2000},{"alt":null,"id":23884579438691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3857b2c5d28b9671a44490bff22f6e3175cd80_e52b8703-b681-461c-9e7d-ecd4e03311dc.webp?v=1714833009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db3857b2c5d28b9671a44490bff22f6e3175cd80_e52b8703-b681-461c-9e7d-ecd4e03311dc.webp?v=1714833009","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894272172131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479326998627,"product_id":7411029475427,"position":1,"created_at":"2024-05-04T22:29:47+08:00","updated_at":"2024-05-04T22:29:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987","variant_ids":[41894272172131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0129624-AE01","featured_media":{"alt":null,"id":23884574228579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894272303203,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479327719523,"product_id":7411029475427,"position":2,"created_at":"2024-05-04T22:29:49+08:00","updated_at":"2024-05-04T22:29:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3685e90e2e4de570098b0de6b554eaa7f6e7294_de356299-f58c-434a-bcc5-c3cd9f2c50d5.webp?v=1714832989","variant_ids":[41894272303203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0129657-AE01","featured_media":{"alt":null,"id":23884575015011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3685e90e2e4de570098b0de6b554eaa7f6e7294_de356299-f58c-434a-bcc5-c3cd9f2c50d5.webp?v=1714832989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894272172131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479326998627,"product_id":7411029475427,"position":1,"created_at":"2024-05-04T22:29:47+08:00","updated_at":"2024-05-04T22:29:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987","variant_ids":[41894272172131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0129624-AE01","featured_media":{"alt":null,"id":23884574228579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8edd6ee04e397f5f5ca2ac92b76b7ba91ecd00_83fa738a-74d6-479f-8af3-9da4b4e08d5f.webp?v=1714832987"}},"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: "停產" }