$product = {"id":7414303195235,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yf09","description":null,"published_at":"2024-06-11T17:50:38+08:00","created_at":"2024-05-05T14:21:06+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 13 Pro Max","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":41905573953635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485114810467,"product_id":7414303195235,"position":5,"created_at":"2024-05-05T14:21:18+08:00","updated_at":"2024-05-05T14:21:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078","variant_ids":[41905573953635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"MPB0123224-YF09","featured_media":{"alt":null,"id":23890429870179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905574281315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485126606947,"product_id":7414303195235,"position":10,"created_at":"2024-05-05T14:21:30+08:00","updated_at":"2024-05-05T14:21:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75c03a80ece30b5147a3ecae203ee8c2a03666f_76e13968-68d1-428c-b8c8-5fd4590c55a3.webp?v=1714890090","variant_ids":[41905574281315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"MPB01232J5-YF09","featured_media":{"alt":null,"id":23890442780771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75c03a80ece30b5147a3ecae203ee8c2a03666f_76e13968-68d1-428c-b8c8-5fd4590c55a3.webp?v=1714890090"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf08035afd59532ee20e6b1509ef066d70c9b00_91870111-acf4-415a-86af-291975f99bd3.webp?v=1714890069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b90ca8c11af8092a9cb148113f5b641cdd2cb80d_a992edb3-fcf1-4ecd-bb03-21cebc4f34e0.webp?v=1714890071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb5ad6c21b76e2aa5876848924f9acc9b8af735_87fa5acf-b780-483e-ac32-3f12c40f8e5d.webp?v=1714890074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f377696f352aff80f3bcbe57351c5f1094c67a1f_8aec7c41-2c8f-4fa6-be6c-8f6f7cc36811.webp?v=1714890076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af373592808f25f77d48998ebba9cf2f0e68eb41_11410cc4-91b9-46bb-bf61-73a0971d244c.webp?v=1714890081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd36532a0c549e3f4ce49be778771e6f492ade7c_a926bed3-ef80-4dc1-8299-f00dc84cc084.webp?v=1714890083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed175752ef2d837cc5006b680fce49a9dfa0a13_e31d9c73-278a-4492-91fa-888f6009fe38.webp?v=1714890085","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84d3f2b3f77a12dbf4c67152cec6e4331db067_3d4ea3cb-e618-4463-a3db-6fd8292548c2.webp?v=1714890088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75c03a80ece30b5147a3ecae203ee8c2a03666f_76e13968-68d1-428c-b8c8-5fd4590c55a3.webp?v=1714890090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b454ae7fbf842dacaa430e280f6a60b7509e9efb_ec4a4bff-b069-41a4-87d7-2e275b001a90.webp?v=1714890092"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf08035afd59532ee20e6b1509ef066d70c9b00_91870111-acf4-415a-86af-291975f99bd3.webp?v=1714890069","options":["color"],"media":[{"alt":null,"id":23890423611491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf08035afd59532ee20e6b1509ef066d70c9b00_91870111-acf4-415a-86af-291975f99bd3.webp?v=1714890069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf08035afd59532ee20e6b1509ef066d70c9b00_91870111-acf4-415a-86af-291975f99bd3.webp?v=1714890069","width":2000},{"alt":null,"id":23890425380963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b90ca8c11af8092a9cb148113f5b641cdd2cb80d_a992edb3-fcf1-4ecd-bb03-21cebc4f34e0.webp?v=1714890071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b90ca8c11af8092a9cb148113f5b641cdd2cb80d_a992edb3-fcf1-4ecd-bb03-21cebc4f34e0.webp?v=1714890071","width":2000},{"alt":null,"id":23890426953827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb5ad6c21b76e2aa5876848924f9acc9b8af735_87fa5acf-b780-483e-ac32-3f12c40f8e5d.webp?v=1714890074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb5ad6c21b76e2aa5876848924f9acc9b8af735_87fa5acf-b780-483e-ac32-3f12c40f8e5d.webp?v=1714890074","width":2000},{"alt":null,"id":23890428526691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f377696f352aff80f3bcbe57351c5f1094c67a1f_8aec7c41-2c8f-4fa6-be6c-8f6f7cc36811.webp?v=1714890076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f377696f352aff80f3bcbe57351c5f1094c67a1f_8aec7c41-2c8f-4fa6-be6c-8f6f7cc36811.webp?v=1714890076","width":2000},{"alt":null,"id":23890429870179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078","width":2000},{"alt":null,"id":23890432098403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af373592808f25f77d48998ebba9cf2f0e68eb41_11410cc4-91b9-46bb-bf61-73a0971d244c.webp?v=1714890081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af373592808f25f77d48998ebba9cf2f0e68eb41_11410cc4-91b9-46bb-bf61-73a0971d244c.webp?v=1714890081","width":2000},{"alt":null,"id":23890434523235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd36532a0c549e3f4ce49be778771e6f492ade7c_a926bed3-ef80-4dc1-8299-f00dc84cc084.webp?v=1714890083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd36532a0c549e3f4ce49be778771e6f492ade7c_a926bed3-ef80-4dc1-8299-f00dc84cc084.webp?v=1714890083","width":2000},{"alt":null,"id":23890437275747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed175752ef2d837cc5006b680fce49a9dfa0a13_e31d9c73-278a-4492-91fa-888f6009fe38.webp?v=1714890085"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed175752ef2d837cc5006b680fce49a9dfa0a13_e31d9c73-278a-4492-91fa-888f6009fe38.webp?v=1714890085","width":2000},{"alt":null,"id":23890440061027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84d3f2b3f77a12dbf4c67152cec6e4331db067_3d4ea3cb-e618-4463-a3db-6fd8292548c2.webp?v=1714890088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84d3f2b3f77a12dbf4c67152cec6e4331db067_3d4ea3cb-e618-4463-a3db-6fd8292548c2.webp?v=1714890088","width":2000},{"alt":null,"id":23890442780771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75c03a80ece30b5147a3ecae203ee8c2a03666f_76e13968-68d1-428c-b8c8-5fd4590c55a3.webp?v=1714890090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75c03a80ece30b5147a3ecae203ee8c2a03666f_76e13968-68d1-428c-b8c8-5fd4590c55a3.webp?v=1714890090","width":2000},{"alt":null,"id":23890445205603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b454ae7fbf842dacaa430e280f6a60b7509e9efb_ec4a4bff-b069-41a4-87d7-2e275b001a90.webp?v=1714890092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b454ae7fbf842dacaa430e280f6a60b7509e9efb_ec4a4bff-b069-41a4-87d7-2e275b001a90.webp?v=1714890092","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905573953635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485114810467,"product_id":7414303195235,"position":5,"created_at":"2024-05-05T14:21:18+08:00","updated_at":"2024-05-05T14:21:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078","variant_ids":[41905573953635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"MPB0123224-YF09","featured_media":{"alt":null,"id":23890429870179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905574281315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485126606947,"product_id":7414303195235,"position":10,"created_at":"2024-05-05T14:21:30+08:00","updated_at":"2024-05-05T14:21:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75c03a80ece30b5147a3ecae203ee8c2a03666f_76e13968-68d1-428c-b8c8-5fd4590c55a3.webp?v=1714890090","variant_ids":[41905574281315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"MPB01232J5-YF09","featured_media":{"alt":null,"id":23890442780771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75c03a80ece30b5147a3ecae203ee8c2a03666f_76e13968-68d1-428c-b8c8-5fd4590c55a3.webp?v=1714890090"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905573953635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485114810467,"product_id":7414303195235,"position":5,"created_at":"2024-05-05T14:21:18+08:00","updated_at":"2024-05-05T14:21:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078","variant_ids":[41905573953635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"MPB0123224-YF09","featured_media":{"alt":null,"id":23890429870179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/309fd6a0bcbebe86f7326ec1c2e1dae4bc6a1da8_9ba81710-195d-49e9-83e4-9c23f6d66846.webp?v=1714890078"}},"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: "停產" }