$product = {"id":7414956392547,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷紀念","handle":"iphone-12-mini-mod-nx-magsafe-printable-yf05","description":null,"published_at":"2024-06-11T17:54:05+08:00","created_at":"2024-05-05T19:55:35+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 12 mini","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":41910335340643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487776063587,"product_id":7414956392547,"position":7,"created_at":"2024-05-05T19:55:53+08:00","updated_at":"2024-05-05T19:55:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153","variant_ids":[41910335340643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷紀念 - 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-YF05","featured_media":{"alt":null,"id":23893119991907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d8723ca7aa80a4ebb3aaa57b2a05cf3a365c49b_b8ac0d46-cc5b-4dfc-828c-a25d578ff1e5.webp?v=1714910137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcfd56a48c7daa2df4db71d71610418952b5e110_68cb7cbe-a0b0-46f0-875c-2fcdba054428.webp?v=1714910140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24a094f62c09e123df7c0a1cb5322f3955383a36_e5916454-acb8-43b6-86b8-ab8fe665b1ac.webp?v=1714910143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ae492ffb3bf1af3ec2e78505f6d270c6322633_9083eb4d-5fed-4a42-bdae-d3f40339dd9a.webp?v=1714910145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ddce3c860f3e04b463f55c4f28c546a9c566b34_0c859e1c-b770-48f2-8080-f6e83a313952.webp?v=1714910148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0857f78de48cf16a84864ac51314e7f7464bea3_4b1552d4-b536-497b-9771-a10cf649d22f.webp?v=1714910151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74a8e01cc1ceccfa11e7b7c4bd2ed5a5670cd50f_9d7dcd44-c8b5-45d0-b587-2ea9d2393435.webp?v=1714910156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922fe9a036952a25f50053dfc683a9d2baaf097a_e394001b-270c-4734-a339-4e1d276d1b13.webp?v=1714910158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f3d983a58d0aaaf58e97faf4392859b1d6b5f4_71b99d37-5ac7-4882-a4d6-8a2c7a2ff099.webp?v=1714910161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927026c9278eb55af2b87417a0f367c5c453e51d_d623935e-366b-4f5a-9948-382def4e7023.webp?v=1714910163"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d8723ca7aa80a4ebb3aaa57b2a05cf3a365c49b_b8ac0d46-cc5b-4dfc-828c-a25d578ff1e5.webp?v=1714910137","options":["color"],"media":[{"alt":null,"id":23893116452963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d8723ca7aa80a4ebb3aaa57b2a05cf3a365c49b_b8ac0d46-cc5b-4dfc-828c-a25d578ff1e5.webp?v=1714910137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d8723ca7aa80a4ebb3aaa57b2a05cf3a365c49b_b8ac0d46-cc5b-4dfc-828c-a25d578ff1e5.webp?v=1714910137","width":2000},{"alt":null,"id":23893116813411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcfd56a48c7daa2df4db71d71610418952b5e110_68cb7cbe-a0b0-46f0-875c-2fcdba054428.webp?v=1714910140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcfd56a48c7daa2df4db71d71610418952b5e110_68cb7cbe-a0b0-46f0-875c-2fcdba054428.webp?v=1714910140","width":2000},{"alt":null,"id":23893117730915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24a094f62c09e123df7c0a1cb5322f3955383a36_e5916454-acb8-43b6-86b8-ab8fe665b1ac.webp?v=1714910143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24a094f62c09e123df7c0a1cb5322f3955383a36_e5916454-acb8-43b6-86b8-ab8fe665b1ac.webp?v=1714910143","width":2000},{"alt":null,"id":23893118287971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ae492ffb3bf1af3ec2e78505f6d270c6322633_9083eb4d-5fed-4a42-bdae-d3f40339dd9a.webp?v=1714910145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ae492ffb3bf1af3ec2e78505f6d270c6322633_9083eb4d-5fed-4a42-bdae-d3f40339dd9a.webp?v=1714910145","width":2000},{"alt":null,"id":23893119041635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ddce3c860f3e04b463f55c4f28c546a9c566b34_0c859e1c-b770-48f2-8080-f6e83a313952.webp?v=1714910148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ddce3c860f3e04b463f55c4f28c546a9c566b34_0c859e1c-b770-48f2-8080-f6e83a313952.webp?v=1714910148","width":2000},{"alt":null,"id":23893119565923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0857f78de48cf16a84864ac51314e7f7464bea3_4b1552d4-b536-497b-9771-a10cf649d22f.webp?v=1714910151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0857f78de48cf16a84864ac51314e7f7464bea3_4b1552d4-b536-497b-9771-a10cf649d22f.webp?v=1714910151","width":2000},{"alt":null,"id":23893119991907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153","width":2000},{"alt":null,"id":23893120319587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74a8e01cc1ceccfa11e7b7c4bd2ed5a5670cd50f_9d7dcd44-c8b5-45d0-b587-2ea9d2393435.webp?v=1714910156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74a8e01cc1ceccfa11e7b7c4bd2ed5a5670cd50f_9d7dcd44-c8b5-45d0-b587-2ea9d2393435.webp?v=1714910156","width":2000},{"alt":null,"id":23893120909411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922fe9a036952a25f50053dfc683a9d2baaf097a_e394001b-270c-4734-a339-4e1d276d1b13.webp?v=1714910158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922fe9a036952a25f50053dfc683a9d2baaf097a_e394001b-270c-4734-a339-4e1d276d1b13.webp?v=1714910158","width":2000},{"alt":null,"id":23893121695843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f3d983a58d0aaaf58e97faf4392859b1d6b5f4_71b99d37-5ac7-4882-a4d6-8a2c7a2ff099.webp?v=1714910161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f3d983a58d0aaaf58e97faf4392859b1d6b5f4_71b99d37-5ac7-4882-a4d6-8a2c7a2ff099.webp?v=1714910161","width":2000},{"alt":null,"id":23893122154595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927026c9278eb55af2b87417a0f367c5c453e51d_d623935e-366b-4f5a-9948-382def4e7023.webp?v=1714910163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927026c9278eb55af2b87417a0f367c5c453e51d_d623935e-366b-4f5a-9948-382def4e7023.webp?v=1714910163","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910335340643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487776063587,"product_id":7414956392547,"position":7,"created_at":"2024-05-05T19:55:53+08:00","updated_at":"2024-05-05T19:55:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153","variant_ids":[41910335340643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷紀念 - 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-YF05","featured_media":{"alt":null,"id":23893119991907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910335340643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487776063587,"product_id":7414956392547,"position":7,"created_at":"2024-05-05T19:55:53+08:00","updated_at":"2024-05-05T19:55:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153","variant_ids":[41910335340643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷紀念 - 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-YF05","featured_media":{"alt":null,"id":23893119991907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4446a6c5ca42afe960a98eb3d153e6b65ae9d6c9_3267320c-7c20-4e3c-8b7b-960fb3166d6b.webp?v=1714910153"}},"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: "停產" }