$product = {"id":7416014864483,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術","handle":"iphone-xs-max-mod-nx-printable-pb36","description":null,"published_at":"2024-06-11T16:50:27+08:00","created_at":"2024-05-06T12:42:33+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 XS Max","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":41916523970659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31490991521891,"product_id":7416014864483,"position":5,"created_at":"2024-05-06T12:42:44+08:00","updated_at":"2024-05-06T12:42:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564","variant_ids":[41916523970659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術 - 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":"NPB0108624-PB36","featured_media":{"alt":null,"id":23896398692451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df72c70e653905f9d7a876259e5eb238a72501b5_690f023c-7978-462b-b139-a74332a453b1.webp?v=1714970555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655c6fca1eb1f6fe9dd8182d3ecc323a9646be9a_6ac49bc5-1e3d-407c-885a-87b43bbb50e6.webp?v=1714970557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2036f00dfe850eda82baa58ff8ab02149c3cdae_7b3d56b0-66fb-4bcc-9a35-dde133dc4394.webp?v=1714970560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7e4b23e4bbab376fdd278463d0de227ccbebdb_8e94581a-cbac-422e-9438-f6e14cc75359.webp?v=1714970562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71667a3dc95b4a6a010ac900f9fc7f18636cfc85_b2841904-670b-4f81-a6d9-0f8d6a664126.webp?v=1714970567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/678fe7d45bc4d828c900b9fb804205f9d3cf1d29_c577747d-489b-4713-be75-cdbbd43881a0.webp?v=1714970569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f973b9d50d4c173ae91ddfd7aaf9fc96ee40759_21f6a7f6-6d37-4353-9cd8-df2274f3fca6.webp?v=1714970571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2986e8544a82fa9cb97dc4987d60e3dbbd97230_6c794106-5c48-4308-b334-ca6b47c4e253.webp?v=1714970574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e66dfe359f29b63ca77d279d2763bdd11e8cea7_6c6b05e2-32f6-4c7d-9933-d0b382de562a.webp?v=1714970576"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df72c70e653905f9d7a876259e5eb238a72501b5_690f023c-7978-462b-b139-a74332a453b1.webp?v=1714970555","options":["color"],"media":[{"alt":null,"id":23896396791907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df72c70e653905f9d7a876259e5eb238a72501b5_690f023c-7978-462b-b139-a74332a453b1.webp?v=1714970555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df72c70e653905f9d7a876259e5eb238a72501b5_690f023c-7978-462b-b139-a74332a453b1.webp?v=1714970555","width":2000},{"alt":null,"id":23896397283427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655c6fca1eb1f6fe9dd8182d3ecc323a9646be9a_6ac49bc5-1e3d-407c-885a-87b43bbb50e6.webp?v=1714970557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655c6fca1eb1f6fe9dd8182d3ecc323a9646be9a_6ac49bc5-1e3d-407c-885a-87b43bbb50e6.webp?v=1714970557","width":2000},{"alt":null,"id":23896397742179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2036f00dfe850eda82baa58ff8ab02149c3cdae_7b3d56b0-66fb-4bcc-9a35-dde133dc4394.webp?v=1714970560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2036f00dfe850eda82baa58ff8ab02149c3cdae_7b3d56b0-66fb-4bcc-9a35-dde133dc4394.webp?v=1714970560","width":2000},{"alt":null,"id":23896398200931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7e4b23e4bbab376fdd278463d0de227ccbebdb_8e94581a-cbac-422e-9438-f6e14cc75359.webp?v=1714970562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7e4b23e4bbab376fdd278463d0de227ccbebdb_8e94581a-cbac-422e-9438-f6e14cc75359.webp?v=1714970562","width":2000},{"alt":null,"id":23896398692451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564","width":2000},{"alt":null,"id":23896399249507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71667a3dc95b4a6a010ac900f9fc7f18636cfc85_b2841904-670b-4f81-a6d9-0f8d6a664126.webp?v=1714970567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71667a3dc95b4a6a010ac900f9fc7f18636cfc85_b2841904-670b-4f81-a6d9-0f8d6a664126.webp?v=1714970567","width":2000},{"alt":null,"id":23896399708259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/678fe7d45bc4d828c900b9fb804205f9d3cf1d29_c577747d-489b-4713-be75-cdbbd43881a0.webp?v=1714970569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/678fe7d45bc4d828c900b9fb804205f9d3cf1d29_c577747d-489b-4713-be75-cdbbd43881a0.webp?v=1714970569","width":2000},{"alt":null,"id":23896400265315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f973b9d50d4c173ae91ddfd7aaf9fc96ee40759_21f6a7f6-6d37-4353-9cd8-df2274f3fca6.webp?v=1714970571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f973b9d50d4c173ae91ddfd7aaf9fc96ee40759_21f6a7f6-6d37-4353-9cd8-df2274f3fca6.webp?v=1714970571","width":2000},{"alt":null,"id":23896400756835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2986e8544a82fa9cb97dc4987d60e3dbbd97230_6c794106-5c48-4308-b334-ca6b47c4e253.webp?v=1714970574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2986e8544a82fa9cb97dc4987d60e3dbbd97230_6c794106-5c48-4308-b334-ca6b47c4e253.webp?v=1714970574","width":2000},{"alt":null,"id":23896401641571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e66dfe359f29b63ca77d279d2763bdd11e8cea7_6c6b05e2-32f6-4c7d-9933-d0b382de562a.webp?v=1714970576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e66dfe359f29b63ca77d279d2763bdd11e8cea7_6c6b05e2-32f6-4c7d-9933-d0b382de562a.webp?v=1714970576","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916523970659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31490991521891,"product_id":7416014864483,"position":5,"created_at":"2024-05-06T12:42:44+08:00","updated_at":"2024-05-06T12:42:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564","variant_ids":[41916523970659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術 - 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":"NPB0108624-PB36","featured_media":{"alt":null,"id":23896398692451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916523970659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31490991521891,"product_id":7416014864483,"position":5,"created_at":"2024-05-06T12:42:44+08:00","updated_at":"2024-05-06T12:42:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564","variant_ids":[41916523970659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術 - 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":"NPB0108624-PB36","featured_media":{"alt":null,"id":23896398692451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac065813d96eb18daba5346fbc51efd6fc7d291_f308ebde-e97c-474a-9a99-ad948b8385c1.webp?v=1714970564"}},"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: "停產" }