$product = {"id":7369193029731,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Snoopy 史努比 - 開心小花","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pl65","description":null,"published_at":"2024-06-11T17:31:10+08:00","created_at":"2024-04-23T15:42:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-snoopy","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":41793464303715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387033632867,"product_id":7369193029731,"position":8,"created_at":"2024-04-23T15:42:39+08:00","updated_at":"2024-04-23T15:42:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159","variant_ids":[41793464303715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB0118724-PL65","featured_media":{"alt":null,"id":23789272236131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c8ecf5392ef4207f017b9f71662be93e7fae3e_7df31fdb-6ca0-4f8a-86f8-cf03517ecf03.webp?v=1713858142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0abcc2c3ce80c69778ca498a3e0d9a851e1418c_90f67eb3-2bf1-4e36-aa8b-51dae69c8d9e.webp?v=1713858144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5badffc80253c4cb2ddbfe03e1dd999175bf74ce_cd497a42-beea-4214-9ea0-4e0b8659e92a.webp?v=1713858147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb816e2ffe8d9e9434a9c1e54f195c1cb6801d8_44fea352-9755-466b-ac12-ef24fd07a68b.webp?v=1713858149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75d68ae5a3643272445700ff94e2b9f5ff41c8ae_1cffed1a-43fc-40e7-865b-ddcb07942dd6.webp?v=1713858151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a05a62e315e766ecb9662b3a0f8e2ad9ae0248_4c21c63b-3613-4372-84aa-9a5cb2210d33.webp?v=1713858154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a728b7b5f8f43f8bc79b57633cb8430d93a6b81_2bbc53d7-4d59-4942-a301-a892bfad5226.webp?v=1713858156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2022ba18b8401ee92f66a7019a96b7b433462a9e_4239b40f-db2b-439b-b540-35b4e827788c.webp?v=1713858161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a104bc2a7eb2f175780f90973d9c022f4f3cfb1_545f41bd-1fa8-48a9-816b-39846402ccf7.webp?v=1713858163"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c8ecf5392ef4207f017b9f71662be93e7fae3e_7df31fdb-6ca0-4f8a-86f8-cf03517ecf03.webp?v=1713858142","options":["color"],"media":[{"alt":null,"id":23789267877987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c8ecf5392ef4207f017b9f71662be93e7fae3e_7df31fdb-6ca0-4f8a-86f8-cf03517ecf03.webp?v=1713858142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c8ecf5392ef4207f017b9f71662be93e7fae3e_7df31fdb-6ca0-4f8a-86f8-cf03517ecf03.webp?v=1713858142","width":2000},{"alt":null,"id":23789268795491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0abcc2c3ce80c69778ca498a3e0d9a851e1418c_90f67eb3-2bf1-4e36-aa8b-51dae69c8d9e.webp?v=1713858144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0abcc2c3ce80c69778ca498a3e0d9a851e1418c_90f67eb3-2bf1-4e36-aa8b-51dae69c8d9e.webp?v=1713858144","width":2000},{"alt":null,"id":23789269352547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5badffc80253c4cb2ddbfe03e1dd999175bf74ce_cd497a42-beea-4214-9ea0-4e0b8659e92a.webp?v=1713858147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5badffc80253c4cb2ddbfe03e1dd999175bf74ce_cd497a42-beea-4214-9ea0-4e0b8659e92a.webp?v=1713858147","width":2000},{"alt":null,"id":23789269844067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb816e2ffe8d9e9434a9c1e54f195c1cb6801d8_44fea352-9755-466b-ac12-ef24fd07a68b.webp?v=1713858149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb816e2ffe8d9e9434a9c1e54f195c1cb6801d8_44fea352-9755-466b-ac12-ef24fd07a68b.webp?v=1713858149","width":2000},{"alt":null,"id":23789270433891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75d68ae5a3643272445700ff94e2b9f5ff41c8ae_1cffed1a-43fc-40e7-865b-ddcb07942dd6.webp?v=1713858151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75d68ae5a3643272445700ff94e2b9f5ff41c8ae_1cffed1a-43fc-40e7-865b-ddcb07942dd6.webp?v=1713858151","width":2000},{"alt":null,"id":23789271023715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a05a62e315e766ecb9662b3a0f8e2ad9ae0248_4c21c63b-3613-4372-84aa-9a5cb2210d33.webp?v=1713858154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a05a62e315e766ecb9662b3a0f8e2ad9ae0248_4c21c63b-3613-4372-84aa-9a5cb2210d33.webp?v=1713858154","width":2000},{"alt":null,"id":23789271548003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a728b7b5f8f43f8bc79b57633cb8430d93a6b81_2bbc53d7-4d59-4942-a301-a892bfad5226.webp?v=1713858156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a728b7b5f8f43f8bc79b57633cb8430d93a6b81_2bbc53d7-4d59-4942-a301-a892bfad5226.webp?v=1713858156","width":2000},{"alt":null,"id":23789272236131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159","width":2000},{"alt":null,"id":23789272858723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2022ba18b8401ee92f66a7019a96b7b433462a9e_4239b40f-db2b-439b-b540-35b4e827788c.webp?v=1713858161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2022ba18b8401ee92f66a7019a96b7b433462a9e_4239b40f-db2b-439b-b540-35b4e827788c.webp?v=1713858161","width":2000},{"alt":null,"id":23789273481315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a104bc2a7eb2f175780f90973d9c022f4f3cfb1_545f41bd-1fa8-48a9-816b-39846402ccf7.webp?v=1713858163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a104bc2a7eb2f175780f90973d9c022f4f3cfb1_545f41bd-1fa8-48a9-816b-39846402ccf7.webp?v=1713858163","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793464303715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387033632867,"product_id":7369193029731,"position":8,"created_at":"2024-04-23T15:42:39+08:00","updated_at":"2024-04-23T15:42:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159","variant_ids":[41793464303715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB0118724-PL65","featured_media":{"alt":null,"id":23789272236131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793464303715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387033632867,"product_id":7369193029731,"position":8,"created_at":"2024-04-23T15:42:39+08:00","updated_at":"2024-04-23T15:42:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159","variant_ids":[41793464303715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB0118724-PL65","featured_media":{"alt":null,"id":23789272236131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169d120c5ac08086f52d073221a866051f18f2f_d2bbe7dc-7092-49a5-8439-d828d3a2eba8.webp?v=1713858159"}},"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: "停產" }