$product = {"id":7411234275427,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb84","description":null,"published_at":"2024-06-11T17:39:29+08:00","created_at":"2024-05-04T23:50:34+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 14 Plus","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":41896326692963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31479918985315,"product_id":7411234275427,"position":3,"created_at":"2024-05-04T23:50:41+08:00","updated_at":"2024-05-04T23:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841","variant_ids":[41896326692963]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB84","featured_media":{"alt":null,"id":23885169360995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4edb36419e8b88713243fd1c663bf22cfafea1c_9215efaf-4f7f-448a-b5de-8b19df6ccbca.webp?v=1714837837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/037c56ffab0d78e4f771db3b159c952747dbbf77_b8c04ac6-4367-474c-aed4-e709c23b0404.webp?v=1714837839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94d380ed0e4c1c87b2e442e371911b407287390_725a7946-4ddb-4f63-a661-0739453cc8db.webp?v=1714837844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ed15c95d5a9f667f3e0dd4f745b2b90b693ac6_bdca7105-d461-4101-b75f-d33b96c19e8f.webp?v=1714837846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b3e313f6194899e032f7fdba4384b63705118e_a84a7918-7e89-4aad-b336-20f8c379fd74.webp?v=1714837849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2c4a2ee0f8166e727aae19011b471c3d403104_8d6eaf36-f4ba-4978-8254-b9556d84a34b.webp?v=1714837851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58134839dd6f6388dc497ccb58d39203c206b8e3_467a819e-8619-41cb-92b6-6c45c5378eae.webp?v=1714837854","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cff292dd9bf6166ff445a91d23ecbaf6776de7_2107d20b-ad07-4051-9fe0-1f08ceac4709.webp?v=1714837856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efae81cbfe6cfb3a0c030a465642a64e4fc8bea9_3ecdb0bf-4adb-436b-b480-22a08ab3e8a3.webp?v=1714837858"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4edb36419e8b88713243fd1c663bf22cfafea1c_9215efaf-4f7f-448a-b5de-8b19df6ccbca.webp?v=1714837837","options":["color"],"media":[{"alt":null,"id":23885168476259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4edb36419e8b88713243fd1c663bf22cfafea1c_9215efaf-4f7f-448a-b5de-8b19df6ccbca.webp?v=1714837837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4edb36419e8b88713243fd1c663bf22cfafea1c_9215efaf-4f7f-448a-b5de-8b19df6ccbca.webp?v=1714837837","width":2000},{"alt":null,"id":23885168935011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/037c56ffab0d78e4f771db3b159c952747dbbf77_b8c04ac6-4367-474c-aed4-e709c23b0404.webp?v=1714837839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/037c56ffab0d78e4f771db3b159c952747dbbf77_b8c04ac6-4367-474c-aed4-e709c23b0404.webp?v=1714837839","width":2000},{"alt":null,"id":23885169360995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841","width":2000},{"alt":null,"id":23885170081891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94d380ed0e4c1c87b2e442e371911b407287390_725a7946-4ddb-4f63-a661-0739453cc8db.webp?v=1714837844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94d380ed0e4c1c87b2e442e371911b407287390_725a7946-4ddb-4f63-a661-0739453cc8db.webp?v=1714837844","width":2000},{"alt":null,"id":23885170540643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ed15c95d5a9f667f3e0dd4f745b2b90b693ac6_bdca7105-d461-4101-b75f-d33b96c19e8f.webp?v=1714837846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ed15c95d5a9f667f3e0dd4f745b2b90b693ac6_bdca7105-d461-4101-b75f-d33b96c19e8f.webp?v=1714837846","width":2000},{"alt":null,"id":23885171032163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b3e313f6194899e032f7fdba4384b63705118e_a84a7918-7e89-4aad-b336-20f8c379fd74.webp?v=1714837849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b3e313f6194899e032f7fdba4384b63705118e_a84a7918-7e89-4aad-b336-20f8c379fd74.webp?v=1714837849","width":2000},{"alt":null,"id":23885171359843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2c4a2ee0f8166e727aae19011b471c3d403104_8d6eaf36-f4ba-4978-8254-b9556d84a34b.webp?v=1714837851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2c4a2ee0f8166e727aae19011b471c3d403104_8d6eaf36-f4ba-4978-8254-b9556d84a34b.webp?v=1714837851","width":2000},{"alt":null,"id":23885171654755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58134839dd6f6388dc497ccb58d39203c206b8e3_467a819e-8619-41cb-92b6-6c45c5378eae.webp?v=1714837854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58134839dd6f6388dc497ccb58d39203c206b8e3_467a819e-8619-41cb-92b6-6c45c5378eae.webp?v=1714837854","width":2000},{"alt":null,"id":23885171884131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cff292dd9bf6166ff445a91d23ecbaf6776de7_2107d20b-ad07-4051-9fe0-1f08ceac4709.webp?v=1714837856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cff292dd9bf6166ff445a91d23ecbaf6776de7_2107d20b-ad07-4051-9fe0-1f08ceac4709.webp?v=1714837856","width":2000},{"alt":null,"id":23885172342883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efae81cbfe6cfb3a0c030a465642a64e4fc8bea9_3ecdb0bf-4adb-436b-b480-22a08ab3e8a3.webp?v=1714837858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efae81cbfe6cfb3a0c030a465642a64e4fc8bea9_3ecdb0bf-4adb-436b-b480-22a08ab3e8a3.webp?v=1714837858","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896326692963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31479918985315,"product_id":7411234275427,"position":3,"created_at":"2024-05-04T23:50:41+08:00","updated_at":"2024-05-04T23:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841","variant_ids":[41896326692963]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB84","featured_media":{"alt":null,"id":23885169360995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896326692963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31479918985315,"product_id":7411234275427,"position":3,"created_at":"2024-05-04T23:50:41+08:00","updated_at":"2024-05-04T23:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841","variant_ids":[41896326692963]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB84","featured_media":{"alt":null,"id":23885169360995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360e02f2db350551355cc516c0be492995f025bd_ee1331a0-1da8-4a48-a272-1a2d07d1b2c3.webp?v=1714837841"}},"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: "停產" }