$product = {"id":7411041140835,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 熱帶音樂系列-慶祝","handle":"iphone-15-plus-mod-nx-magsafe-printable-yf04","description":null,"published_at":"2024-06-11T17:34:45+08:00","created_at":"2024-05-04T22:31:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41894380929123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479358914659,"product_id":7411041140835,"position":3,"created_at":"2024-05-04T22:31:56+08:00","updated_at":"2024-05-04T22:31:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117","variant_ids":[41894380929123]},"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-YF04","featured_media":{"alt":null,"id":23884606275683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894381158499,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479359406179,"product_id":7411041140835,"position":4,"created_at":"2024-05-04T22:31:59+08:00","updated_at":"2024-05-04T22:31:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3ddaea5c556487607914ad81f0417b233cc6c6_17f525dc-2698-4174-9a96-66912dceca4c.webp?v=1714833119","variant_ids":[41894381158499]},"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-YF04","featured_media":{"alt":null,"id":23884606799971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3ddaea5c556487607914ad81f0417b233cc6c6_17f525dc-2698-4174-9a96-66912dceca4c.webp?v=1714833119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee4cdcb02dacd0dd5cef2d71d15d37ef0049a4f_64a8cb6f-2299-43cb-82ff-c92eff96f322.webp?v=1714833112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3bc662be539739b8a8c6ff94dec85f9f08aca8_f85925bf-3749-4aff-80b9-4a339a6f966d.webp?v=1714833114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3ddaea5c556487607914ad81f0417b233cc6c6_17f525dc-2698-4174-9a96-66912dceca4c.webp?v=1714833119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a95e6866c6f72b20f5754874d9343159a2de50_7dfa13b1-006d-4617-b5b1-fb4c151b9031.webp?v=1714833121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b25cbae10ce798dfd8f3cd5d89e9dbf6a281923e_dd0c14eb-aa34-4a5c-9224-cf2f4d5f7d24.webp?v=1714833124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af89f77de333dd30af96476bdc9b119e35ffb82f_72ced5ab-bb22-43de-907c-f76b6e9929b3.webp?v=1714833126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bb9e265675d82ab4648fb7548cd1544157045f_75956649-a7f8-415c-baf6-1b1fc66dc8fc.webp?v=1714833128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a354e3505a56eddd79da925c464eacc7e44b992c_e20f4488-7024-49a1-9116-fbcf5457c697.webp?v=1714833131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c1e8a4aa01d3ba353e00fca166db9fe3e18caa_4c46d50e-0bf6-41d5-8b8d-045675113cc3.webp?v=1714833133"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee4cdcb02dacd0dd5cef2d71d15d37ef0049a4f_64a8cb6f-2299-43cb-82ff-c92eff96f322.webp?v=1714833112","options":["color"],"media":[{"alt":null,"id":23884605063267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee4cdcb02dacd0dd5cef2d71d15d37ef0049a4f_64a8cb6f-2299-43cb-82ff-c92eff96f322.webp?v=1714833112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee4cdcb02dacd0dd5cef2d71d15d37ef0049a4f_64a8cb6f-2299-43cb-82ff-c92eff96f322.webp?v=1714833112","width":2000},{"alt":null,"id":23884605620323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3bc662be539739b8a8c6ff94dec85f9f08aca8_f85925bf-3749-4aff-80b9-4a339a6f966d.webp?v=1714833114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3bc662be539739b8a8c6ff94dec85f9f08aca8_f85925bf-3749-4aff-80b9-4a339a6f966d.webp?v=1714833114","width":2000},{"alt":null,"id":23884606275683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117","width":2000},{"alt":null,"id":23884606799971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3ddaea5c556487607914ad81f0417b233cc6c6_17f525dc-2698-4174-9a96-66912dceca4c.webp?v=1714833119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3ddaea5c556487607914ad81f0417b233cc6c6_17f525dc-2698-4174-9a96-66912dceca4c.webp?v=1714833119","width":2000},{"alt":null,"id":23884607422563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a95e6866c6f72b20f5754874d9343159a2de50_7dfa13b1-006d-4617-b5b1-fb4c151b9031.webp?v=1714833121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a95e6866c6f72b20f5754874d9343159a2de50_7dfa13b1-006d-4617-b5b1-fb4c151b9031.webp?v=1714833121","width":2000},{"alt":null,"id":23884607946851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b25cbae10ce798dfd8f3cd5d89e9dbf6a281923e_dd0c14eb-aa34-4a5c-9224-cf2f4d5f7d24.webp?v=1714833124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b25cbae10ce798dfd8f3cd5d89e9dbf6a281923e_dd0c14eb-aa34-4a5c-9224-cf2f4d5f7d24.webp?v=1714833124","width":2000},{"alt":null,"id":23884608503907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af89f77de333dd30af96476bdc9b119e35ffb82f_72ced5ab-bb22-43de-907c-f76b6e9929b3.webp?v=1714833126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af89f77de333dd30af96476bdc9b119e35ffb82f_72ced5ab-bb22-43de-907c-f76b6e9929b3.webp?v=1714833126","width":2000},{"alt":null,"id":23884609028195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bb9e265675d82ab4648fb7548cd1544157045f_75956649-a7f8-415c-baf6-1b1fc66dc8fc.webp?v=1714833128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7bb9e265675d82ab4648fb7548cd1544157045f_75956649-a7f8-415c-baf6-1b1fc66dc8fc.webp?v=1714833128","width":2000},{"alt":null,"id":23884610076771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a354e3505a56eddd79da925c464eacc7e44b992c_e20f4488-7024-49a1-9116-fbcf5457c697.webp?v=1714833131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a354e3505a56eddd79da925c464eacc7e44b992c_e20f4488-7024-49a1-9116-fbcf5457c697.webp?v=1714833131","width":2000},{"alt":null,"id":23884610732131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c1e8a4aa01d3ba353e00fca166db9fe3e18caa_4c46d50e-0bf6-41d5-8b8d-045675113cc3.webp?v=1714833133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c1e8a4aa01d3ba353e00fca166db9fe3e18caa_4c46d50e-0bf6-41d5-8b8d-045675113cc3.webp?v=1714833133","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894380929123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479358914659,"product_id":7411041140835,"position":3,"created_at":"2024-05-04T22:31:56+08:00","updated_at":"2024-05-04T22:31:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117","variant_ids":[41894380929123]},"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-YF04","featured_media":{"alt":null,"id":23884606275683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894381158499,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479359406179,"product_id":7411041140835,"position":4,"created_at":"2024-05-04T22:31:59+08:00","updated_at":"2024-05-04T22:31:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3ddaea5c556487607914ad81f0417b233cc6c6_17f525dc-2698-4174-9a96-66912dceca4c.webp?v=1714833119","variant_ids":[41894381158499]},"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-YF04","featured_media":{"alt":null,"id":23884606799971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3ddaea5c556487607914ad81f0417b233cc6c6_17f525dc-2698-4174-9a96-66912dceca4c.webp?v=1714833119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894380929123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479358914659,"product_id":7411041140835,"position":3,"created_at":"2024-05-04T22:31:56+08:00","updated_at":"2024-05-04T22:31:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117","variant_ids":[41894380929123]},"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-YF04","featured_media":{"alt":null,"id":23884606275683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98eddc8cef4341648501899bd301c923a657bd92_7e102654-227e-4b35-b3f3-1a3a7383d699.webp?v=1714833117"}},"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: "停產" }