$product = {"id":7413974630499,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb65","description":null,"published_at":"2024-06-11T17:46:37+08:00","created_at":"2024-05-05T13:53:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41902884749411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31484364652643,"product_id":7413974630499,"position":1,"created_at":"2024-05-05T13:53:39+08:00","updated_at":"2024-05-05T13:53:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419","variant_ids":[41902884749411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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-PB65","featured_media":{"alt":null,"id":23889658380387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902885044323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31484365668451,"product_id":7413974630499,"position":3,"created_at":"2024-05-05T13:53:44+08:00","updated_at":"2024-05-05T13:53:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbe04e0b9545e4475adf384288cb1159450b9cf_fe83ff40-6b5f-415d-8910-2b61be7bad2b.webp?v=1714888424","variant_ids":[41902885044323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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-PB65","featured_media":{"alt":null,"id":23889659428963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbe04e0b9545e4475adf384288cb1159450b9cf_fe83ff40-6b5f-415d-8910-2b61be7bad2b.webp?v=1714888424"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b40084b936b3bb05488fad3689ec37202b889c1_5ddd5e5d-1a96-4f1c-b995-dbe09fcb62c1.webp?v=1714888421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbe04e0b9545e4475adf384288cb1159450b9cf_fe83ff40-6b5f-415d-8910-2b61be7bad2b.webp?v=1714888424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fc9f2a247d5b7a33c1d48aab4eb63daaad5a0fe_759eed47-589f-46d6-b937-71886cda6b3d.webp?v=1714888426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab3b96010f485142442a849fcd2ec188f5e2bb3_9ffd0533-4b44-4db2-b3c7-0a2151b00fe7.webp?v=1714888428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db923420a8a5f23fa845f9cad747d08bf2d1098b_8292dd50-0617-4362-aa77-a0fd1b33298f.webp?v=1714888430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab53cdb94ce0dd414f93e881545156ac903e29f_a9cfa1c7-1804-47e6-b763-2e1bab25aa93.webp?v=1714888432","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d264e248d12787427430dda41fd0eac816165a_83afab7e-fc2f-4586-84b4-4b7a29a72518.webp?v=1714888435","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9055f25b694fdd1e52433aef0667f4e8c031849_a9135bb5-04bc-44ff-9d33-e1f43968a81e.webp?v=1714888437","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2372e1dc69200914390ff46f45178715025a0d66_161829a8-450a-4fc6-9e52-6b824f06431a.webp?v=1714888439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3597e991c8aed3889070c9738bcd497f7ad37e95_032806bd-3bb2-4f2d-b7f9-64e773ccc086.webp?v=1714888442"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419","options":["color"],"media":[{"alt":null,"id":23889658380387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419","width":2000},{"alt":null,"id":23889659002979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b40084b936b3bb05488fad3689ec37202b889c1_5ddd5e5d-1a96-4f1c-b995-dbe09fcb62c1.webp?v=1714888421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b40084b936b3bb05488fad3689ec37202b889c1_5ddd5e5d-1a96-4f1c-b995-dbe09fcb62c1.webp?v=1714888421","width":2000},{"alt":null,"id":23889659428963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbe04e0b9545e4475adf384288cb1159450b9cf_fe83ff40-6b5f-415d-8910-2b61be7bad2b.webp?v=1714888424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbe04e0b9545e4475adf384288cb1159450b9cf_fe83ff40-6b5f-415d-8910-2b61be7bad2b.webp?v=1714888424","width":2000},{"alt":null,"id":23889659723875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fc9f2a247d5b7a33c1d48aab4eb63daaad5a0fe_759eed47-589f-46d6-b937-71886cda6b3d.webp?v=1714888426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fc9f2a247d5b7a33c1d48aab4eb63daaad5a0fe_759eed47-589f-46d6-b937-71886cda6b3d.webp?v=1714888426","width":2000},{"alt":null,"id":23889660117091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab3b96010f485142442a849fcd2ec188f5e2bb3_9ffd0533-4b44-4db2-b3c7-0a2151b00fe7.webp?v=1714888428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab3b96010f485142442a849fcd2ec188f5e2bb3_9ffd0533-4b44-4db2-b3c7-0a2151b00fe7.webp?v=1714888428","width":2000},{"alt":null,"id":23889660608611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db923420a8a5f23fa845f9cad747d08bf2d1098b_8292dd50-0617-4362-aa77-a0fd1b33298f.webp?v=1714888430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db923420a8a5f23fa845f9cad747d08bf2d1098b_8292dd50-0617-4362-aa77-a0fd1b33298f.webp?v=1714888430","width":2000},{"alt":null,"id":23889661198435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab53cdb94ce0dd414f93e881545156ac903e29f_a9cfa1c7-1804-47e6-b763-2e1bab25aa93.webp?v=1714888432"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab53cdb94ce0dd414f93e881545156ac903e29f_a9cfa1c7-1804-47e6-b763-2e1bab25aa93.webp?v=1714888432","width":2000},{"alt":null,"id":23889661689955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d264e248d12787427430dda41fd0eac816165a_83afab7e-fc2f-4586-84b4-4b7a29a72518.webp?v=1714888435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d264e248d12787427430dda41fd0eac816165a_83afab7e-fc2f-4586-84b4-4b7a29a72518.webp?v=1714888435","width":2000},{"alt":null,"id":23889662115939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9055f25b694fdd1e52433aef0667f4e8c031849_a9135bb5-04bc-44ff-9d33-e1f43968a81e.webp?v=1714888437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9055f25b694fdd1e52433aef0667f4e8c031849_a9135bb5-04bc-44ff-9d33-e1f43968a81e.webp?v=1714888437","width":2000},{"alt":null,"id":23889662705763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2372e1dc69200914390ff46f45178715025a0d66_161829a8-450a-4fc6-9e52-6b824f06431a.webp?v=1714888439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2372e1dc69200914390ff46f45178715025a0d66_161829a8-450a-4fc6-9e52-6b824f06431a.webp?v=1714888439","width":2000},{"alt":null,"id":23889663295587,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3597e991c8aed3889070c9738bcd497f7ad37e95_032806bd-3bb2-4f2d-b7f9-64e773ccc086.webp?v=1714888442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3597e991c8aed3889070c9738bcd497f7ad37e95_032806bd-3bb2-4f2d-b7f9-64e773ccc086.webp?v=1714888442","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902884749411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31484364652643,"product_id":7413974630499,"position":1,"created_at":"2024-05-05T13:53:39+08:00","updated_at":"2024-05-05T13:53:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419","variant_ids":[41902884749411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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-PB65","featured_media":{"alt":null,"id":23889658380387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902885044323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31484365668451,"product_id":7413974630499,"position":3,"created_at":"2024-05-05T13:53:44+08:00","updated_at":"2024-05-05T13:53:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbe04e0b9545e4475adf384288cb1159450b9cf_fe83ff40-6b5f-415d-8910-2b61be7bad2b.webp?v=1714888424","variant_ids":[41902885044323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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-PB65","featured_media":{"alt":null,"id":23889659428963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbe04e0b9545e4475adf384288cb1159450b9cf_fe83ff40-6b5f-415d-8910-2b61be7bad2b.webp?v=1714888424"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902884749411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31484364652643,"product_id":7413974630499,"position":1,"created_at":"2024-05-05T13:53:39+08:00","updated_at":"2024-05-05T13:53:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419","variant_ids":[41902884749411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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-PB65","featured_media":{"alt":null,"id":23889658380387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0453bf2690c93006047c64b364b5c18b9947b3_ec0fa010-3ca2-4507-bce6-357214251905.webp?v=1714888419"}},"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: "停產" }