$product = {"id":7407599288419,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列","handle":"iphone-15-plus-mod-nx-printable-pb110","description":null,"published_at":"2024-06-11T16:20:11+08:00","created_at":"2024-05-03T10:17:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 15 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41876659273827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31470000275555,"product_id":7407599288419,"position":5,"created_at":"2024-05-03T10:17:59+08:00","updated_at":"2024-05-03T10:17:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679","variant_ids":[41876659273827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB110","featured_media":{"alt":null,"id":23874902392931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876659404899,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31470000930915,"product_id":7407599288419,"position":6,"created_at":"2024-05-03T10:18:01+08:00","updated_at":"2024-05-03T10:18:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef13a3d6d2c21067a92137f2925f74b97171933_86dda8e8-a5d8-4bbd-937f-4c17195210a8.webp?v=1714702681","variant_ids":[41876659404899]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129657-PB110","featured_media":{"alt":null,"id":23874903179363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef13a3d6d2c21067a92137f2925f74b97171933_86dda8e8-a5d8-4bbd-937f-4c17195210a8.webp?v=1714702681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed84e0aa28c746c654e303db228199e0b47c746f_27534390-9e70-4497-9bc3-49d0fd1e2821.webp?v=1714702669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99471199c0cccea3551942cd2765244642644592_93e7ad79-9921-45cf-92ff-c63bcb37a4ae.webp?v=1714702671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/067383713dcb2612540f6f4a48e4e59a3aab058c_ea8c6c03-f419-43c4-8c7b-c536fe02facc.webp?v=1714702674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d9fd367fcdbe2563d282f5a243fe7d75848fa5_288cb2b5-31be-4bea-8c43-b2488bcaae63.webp?v=1714702676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef13a3d6d2c21067a92137f2925f74b97171933_86dda8e8-a5d8-4bbd-937f-4c17195210a8.webp?v=1714702681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386622f8c89be3d9c34bd702cf4a99ad55d24251_f8090219-68eb-4ba4-a5ea-4706fed20778.webp?v=1714702684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5fbb047f865ecc09257220ac24fc306360fdf4_d84ebca0-8307-4c63-9f37-df2e1b218303.webp?v=1714702686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a149c7dbf8e207289e163f1847978b390ca2a5_6203faec-95b5-49aa-9931-62faabe6b6d1.webp?v=1714702689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02bbdd1066ea6f96b6773e293a1d6f283520b77_ca1d4b3d-e14d-4755-8177-b4f849c9fb01.webp?v=1714702691"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed84e0aa28c746c654e303db228199e0b47c746f_27534390-9e70-4497-9bc3-49d0fd1e2821.webp?v=1714702669","options":["color"],"media":[{"alt":null,"id":23874900295779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed84e0aa28c746c654e303db228199e0b47c746f_27534390-9e70-4497-9bc3-49d0fd1e2821.webp?v=1714702669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed84e0aa28c746c654e303db228199e0b47c746f_27534390-9e70-4497-9bc3-49d0fd1e2821.webp?v=1714702669","width":2000},{"alt":null,"id":23874900721763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99471199c0cccea3551942cd2765244642644592_93e7ad79-9921-45cf-92ff-c63bcb37a4ae.webp?v=1714702671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99471199c0cccea3551942cd2765244642644592_93e7ad79-9921-45cf-92ff-c63bcb37a4ae.webp?v=1714702671","width":2000},{"alt":null,"id":23874901508195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/067383713dcb2612540f6f4a48e4e59a3aab058c_ea8c6c03-f419-43c4-8c7b-c536fe02facc.webp?v=1714702674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/067383713dcb2612540f6f4a48e4e59a3aab058c_ea8c6c03-f419-43c4-8c7b-c536fe02facc.webp?v=1714702674","width":2000},{"alt":null,"id":23874901934179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d9fd367fcdbe2563d282f5a243fe7d75848fa5_288cb2b5-31be-4bea-8c43-b2488bcaae63.webp?v=1714702676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d9fd367fcdbe2563d282f5a243fe7d75848fa5_288cb2b5-31be-4bea-8c43-b2488bcaae63.webp?v=1714702676","width":2000},{"alt":null,"id":23874902392931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679","width":2000},{"alt":null,"id":23874903179363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef13a3d6d2c21067a92137f2925f74b97171933_86dda8e8-a5d8-4bbd-937f-4c17195210a8.webp?v=1714702681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef13a3d6d2c21067a92137f2925f74b97171933_86dda8e8-a5d8-4bbd-937f-4c17195210a8.webp?v=1714702681","width":2000},{"alt":null,"id":23874903670883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386622f8c89be3d9c34bd702cf4a99ad55d24251_f8090219-68eb-4ba4-a5ea-4706fed20778.webp?v=1714702684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386622f8c89be3d9c34bd702cf4a99ad55d24251_f8090219-68eb-4ba4-a5ea-4706fed20778.webp?v=1714702684","width":2000},{"alt":null,"id":23874904391779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5fbb047f865ecc09257220ac24fc306360fdf4_d84ebca0-8307-4c63-9f37-df2e1b218303.webp?v=1714702686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5fbb047f865ecc09257220ac24fc306360fdf4_d84ebca0-8307-4c63-9f37-df2e1b218303.webp?v=1714702686","width":2000},{"alt":null,"id":23874904850531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a149c7dbf8e207289e163f1847978b390ca2a5_6203faec-95b5-49aa-9931-62faabe6b6d1.webp?v=1714702689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a149c7dbf8e207289e163f1847978b390ca2a5_6203faec-95b5-49aa-9931-62faabe6b6d1.webp?v=1714702689","width":2000},{"alt":null,"id":23874905374819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02bbdd1066ea6f96b6773e293a1d6f283520b77_ca1d4b3d-e14d-4755-8177-b4f849c9fb01.webp?v=1714702691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02bbdd1066ea6f96b6773e293a1d6f283520b77_ca1d4b3d-e14d-4755-8177-b4f849c9fb01.webp?v=1714702691","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876659273827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31470000275555,"product_id":7407599288419,"position":5,"created_at":"2024-05-03T10:17:59+08:00","updated_at":"2024-05-03T10:17:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679","variant_ids":[41876659273827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB110","featured_media":{"alt":null,"id":23874902392931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876659404899,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31470000930915,"product_id":7407599288419,"position":6,"created_at":"2024-05-03T10:18:01+08:00","updated_at":"2024-05-03T10:18:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef13a3d6d2c21067a92137f2925f74b97171933_86dda8e8-a5d8-4bbd-937f-4c17195210a8.webp?v=1714702681","variant_ids":[41876659404899]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129657-PB110","featured_media":{"alt":null,"id":23874903179363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef13a3d6d2c21067a92137f2925f74b97171933_86dda8e8-a5d8-4bbd-937f-4c17195210a8.webp?v=1714702681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876659273827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31470000275555,"product_id":7407599288419,"position":5,"created_at":"2024-05-03T10:17:59+08:00","updated_at":"2024-05-03T10:17:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679","variant_ids":[41876659273827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB110","featured_media":{"alt":null,"id":23874902392931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb16df5ccb5f2735eb2f4af7c1fafafdd986f9a5_4b28ea4a-57ec-48e8-92ac-823e828aae41.webp?v=1714702679"}},"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: "停產" }