$product = {"id":7414083813475,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-fz05","description":null,"published_at":"2024-06-11T17:48:50+08:00","created_at":"2024-05-05T14:08:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-shiba-says","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":41903971008611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632268899,"product_id":7414083813475,"position":2,"created_at":"2024-05-05T14:08:56+08:00","updated_at":"2024-05-05T14:08:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336","variant_ids":[41903971008611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-FZ05","featured_media":{"alt":null,"id":23889927438435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903971762275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484641443939,"product_id":7414083813475,"position":7,"created_at":"2024-05-05T14:09:07+08:00","updated_at":"2024-05-05T14:09:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c41a854892f217765f2f7b3b8638a18a318f1f_ee606d3e-341a-4a98-85a4-c050354b7dc9.webp?v=1714889347","variant_ids":[41903971762275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-FZ05","featured_media":{"alt":null,"id":23889936547939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c41a854892f217765f2f7b3b8638a18a318f1f_ee606d3e-341a-4a98-85a4-c050354b7dc9.webp?v=1714889347"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ca5285d50476503ccd0e8ddb30c5f2a9493d0a_dc1b3cc2-1c20-47e1-bb70-1f0a9ed50540.webp?v=1714889334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a6327ff7dfcfae5fbd0cf748e824aa0accdfc0_49aeacc1-9b70-46b8-8882-a57cf661319f.webp?v=1714889338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54f592ef82021fc484bc595d398707d2101f2e2_1e36405f-59b6-4250-b1c6-ae244ac2a12e.webp?v=1714889340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c0554d0bde32683e6299cdf09e0ebd7f051407b_422c7d0b-1944-43f4-893b-9dc10d678913.webp?v=1714889343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b72ac6f8a0dafeb1ee1ac3c00aa562c58c9261_8b7dca6c-220d-453c-a5eb-c4bec60f48d7.webp?v=1714889345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c41a854892f217765f2f7b3b8638a18a318f1f_ee606d3e-341a-4a98-85a4-c050354b7dc9.webp?v=1714889347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b339d162d0f4005390e482841a95fd93b6329590_096a66c0-9d26-4c2b-aaaa-603cc79d3916.webp?v=1714889350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c315a4755ebcefbd7bd5effe3de988cec3dba1_14f2d422-b3d3-4bf4-b8ec-413d80df93fc.webp?v=1714889352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12e2802b4cf7ebaa0194fc4c77888fb0d1b58adb_e188db70-861f-481d-82c9-d5877952c700.webp?v=1714889354"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ca5285d50476503ccd0e8ddb30c5f2a9493d0a_dc1b3cc2-1c20-47e1-bb70-1f0a9ed50540.webp?v=1714889334","options":["color"],"media":[{"alt":null,"id":23889926094947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ca5285d50476503ccd0e8ddb30c5f2a9493d0a_dc1b3cc2-1c20-47e1-bb70-1f0a9ed50540.webp?v=1714889334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ca5285d50476503ccd0e8ddb30c5f2a9493d0a_dc1b3cc2-1c20-47e1-bb70-1f0a9ed50540.webp?v=1714889334","width":2000},{"alt":null,"id":23889927438435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336","width":2000},{"alt":null,"id":23889928683619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a6327ff7dfcfae5fbd0cf748e824aa0accdfc0_49aeacc1-9b70-46b8-8882-a57cf661319f.webp?v=1714889338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a6327ff7dfcfae5fbd0cf748e824aa0accdfc0_49aeacc1-9b70-46b8-8882-a57cf661319f.webp?v=1714889338","width":2000},{"alt":null,"id":23889930256483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54f592ef82021fc484bc595d398707d2101f2e2_1e36405f-59b6-4250-b1c6-ae244ac2a12e.webp?v=1714889340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54f592ef82021fc484bc595d398707d2101f2e2_1e36405f-59b6-4250-b1c6-ae244ac2a12e.webp?v=1714889340","width":2000},{"alt":null,"id":23889933729891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c0554d0bde32683e6299cdf09e0ebd7f051407b_422c7d0b-1944-43f4-893b-9dc10d678913.webp?v=1714889343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c0554d0bde32683e6299cdf09e0ebd7f051407b_422c7d0b-1944-43f4-893b-9dc10d678913.webp?v=1714889343","width":2000},{"alt":null,"id":23889935138915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b72ac6f8a0dafeb1ee1ac3c00aa562c58c9261_8b7dca6c-220d-453c-a5eb-c4bec60f48d7.webp?v=1714889345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b72ac6f8a0dafeb1ee1ac3c00aa562c58c9261_8b7dca6c-220d-453c-a5eb-c4bec60f48d7.webp?v=1714889345","width":2000},{"alt":null,"id":23889936547939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c41a854892f217765f2f7b3b8638a18a318f1f_ee606d3e-341a-4a98-85a4-c050354b7dc9.webp?v=1714889347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c41a854892f217765f2f7b3b8638a18a318f1f_ee606d3e-341a-4a98-85a4-c050354b7dc9.webp?v=1714889347","width":2000},{"alt":null,"id":23889937989731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b339d162d0f4005390e482841a95fd93b6329590_096a66c0-9d26-4c2b-aaaa-603cc79d3916.webp?v=1714889350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b339d162d0f4005390e482841a95fd93b6329590_096a66c0-9d26-4c2b-aaaa-603cc79d3916.webp?v=1714889350","width":2000},{"alt":null,"id":23889939267683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c315a4755ebcefbd7bd5effe3de988cec3dba1_14f2d422-b3d3-4bf4-b8ec-413d80df93fc.webp?v=1714889352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c315a4755ebcefbd7bd5effe3de988cec3dba1_14f2d422-b3d3-4bf4-b8ec-413d80df93fc.webp?v=1714889352","width":2000},{"alt":null,"id":23889940316259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12e2802b4cf7ebaa0194fc4c77888fb0d1b58adb_e188db70-861f-481d-82c9-d5877952c700.webp?v=1714889354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12e2802b4cf7ebaa0194fc4c77888fb0d1b58adb_e188db70-861f-481d-82c9-d5877952c700.webp?v=1714889354","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903971008611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632268899,"product_id":7414083813475,"position":2,"created_at":"2024-05-05T14:08:56+08:00","updated_at":"2024-05-05T14:08:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336","variant_ids":[41903971008611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-FZ05","featured_media":{"alt":null,"id":23889927438435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903971762275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484641443939,"product_id":7414083813475,"position":7,"created_at":"2024-05-05T14:09:07+08:00","updated_at":"2024-05-05T14:09:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c41a854892f217765f2f7b3b8638a18a318f1f_ee606d3e-341a-4a98-85a4-c050354b7dc9.webp?v=1714889347","variant_ids":[41903971762275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-FZ05","featured_media":{"alt":null,"id":23889936547939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c41a854892f217765f2f7b3b8638a18a318f1f_ee606d3e-341a-4a98-85a4-c050354b7dc9.webp?v=1714889347"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903971008611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632268899,"product_id":7414083813475,"position":2,"created_at":"2024-05-05T14:08:56+08:00","updated_at":"2024-05-05T14:08:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336","variant_ids":[41903971008611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 超不穩的疊疊樂 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-FZ05","featured_media":{"alt":null,"id":23889927438435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd95b54005b1b88ee61a4e9b9852ba555ea56e9d_2ab710e6-9008-4664-a14a-b4ab2a82193c.webp?v=1714889336"}},"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: "停產" }