$product = {"id":7416086560867,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列","handle":"iphone-xs-max-mod-nx-printable-pb47","description":null,"published_at":"2024-06-11T16:52:21+08:00","created_at":"2024-05-06T12:55:35+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":41917284089955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31491184361571,"product_id":7416086560867,"position":5,"created_at":"2024-05-06T12:55:47+08:00","updated_at":"2024-05-06T12:55:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347","variant_ids":[41917284089955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23896591827043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bc19677b6ae9014208c4dd0f6c5c78c815af971_f229adcf-c8f1-449f-85f6-45e09a67cf7e.webp?v=1714971337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45006c01a85882d121492566866f3e71ca04eb99_1d9b03cb-29b3-4368-8888-f6dac79d854e.webp?v=1714971339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699afd191704f53d4bc80e4f9460e56a02ed1e67_657c31ec-da65-461a-9aab-89ee882d8d5b.webp?v=1714971342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9253345657106d5efbf10c7cbbf0ce458eebbf96_291babcc-f37d-4181-a7ae-46b0d26bc119.webp?v=1714971344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4435dfa0c998737cb3f9844e70b05737f0aed6fe_b9d24958-bc6f-47ed-94f8-f10d477b8f18.webp?v=1714971349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc8436b89114dc7c992923db3ce68b036bb8e69_c12b8093-36c4-4cf0-827a-6c94adf3bc3a.webp?v=1714971351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e01432a4be3b9ee4867448b84b5e770b52c19ec_5f9af0d1-c81d-4550-a61a-16876d277416.webp?v=1714971354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e154945f831c8520b6f9d479a15a42150c4b4029_a2301295-6487-477a-8fa4-3bb51e28014d.webp?v=1714971356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38e4c18348d0bc3ad291396f54f281471062f36_ea1c1ef2-7802-4081-b1d2-7b53f04abd53.webp?v=1714971358"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bc19677b6ae9014208c4dd0f6c5c78c815af971_f229adcf-c8f1-449f-85f6-45e09a67cf7e.webp?v=1714971337","options":["color"],"media":[{"alt":null,"id":23896590221411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bc19677b6ae9014208c4dd0f6c5c78c815af971_f229adcf-c8f1-449f-85f6-45e09a67cf7e.webp?v=1714971337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bc19677b6ae9014208c4dd0f6c5c78c815af971_f229adcf-c8f1-449f-85f6-45e09a67cf7e.webp?v=1714971337","width":2000},{"alt":null,"id":23896590975075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45006c01a85882d121492566866f3e71ca04eb99_1d9b03cb-29b3-4368-8888-f6dac79d854e.webp?v=1714971339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45006c01a85882d121492566866f3e71ca04eb99_1d9b03cb-29b3-4368-8888-f6dac79d854e.webp?v=1714971339","width":2000},{"alt":null,"id":23896591302755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699afd191704f53d4bc80e4f9460e56a02ed1e67_657c31ec-da65-461a-9aab-89ee882d8d5b.webp?v=1714971342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699afd191704f53d4bc80e4f9460e56a02ed1e67_657c31ec-da65-461a-9aab-89ee882d8d5b.webp?v=1714971342","width":2000},{"alt":null,"id":23896591663203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9253345657106d5efbf10c7cbbf0ce458eebbf96_291babcc-f37d-4181-a7ae-46b0d26bc119.webp?v=1714971344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9253345657106d5efbf10c7cbbf0ce458eebbf96_291babcc-f37d-4181-a7ae-46b0d26bc119.webp?v=1714971344","width":2000},{"alt":null,"id":23896591827043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347","width":2000},{"alt":null,"id":23896592121955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4435dfa0c998737cb3f9844e70b05737f0aed6fe_b9d24958-bc6f-47ed-94f8-f10d477b8f18.webp?v=1714971349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4435dfa0c998737cb3f9844e70b05737f0aed6fe_b9d24958-bc6f-47ed-94f8-f10d477b8f18.webp?v=1714971349","width":2000},{"alt":null,"id":23896592318563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc8436b89114dc7c992923db3ce68b036bb8e69_c12b8093-36c4-4cf0-827a-6c94adf3bc3a.webp?v=1714971351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc8436b89114dc7c992923db3ce68b036bb8e69_c12b8093-36c4-4cf0-827a-6c94adf3bc3a.webp?v=1714971351","width":2000},{"alt":null,"id":23896592810083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e01432a4be3b9ee4867448b84b5e770b52c19ec_5f9af0d1-c81d-4550-a61a-16876d277416.webp?v=1714971354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e01432a4be3b9ee4867448b84b5e770b52c19ec_5f9af0d1-c81d-4550-a61a-16876d277416.webp?v=1714971354","width":2000},{"alt":null,"id":23896593694819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e154945f831c8520b6f9d479a15a42150c4b4029_a2301295-6487-477a-8fa4-3bb51e28014d.webp?v=1714971356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e154945f831c8520b6f9d479a15a42150c4b4029_a2301295-6487-477a-8fa4-3bb51e28014d.webp?v=1714971356","width":2000},{"alt":null,"id":23896594219107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38e4c18348d0bc3ad291396f54f281471062f36_ea1c1ef2-7802-4081-b1d2-7b53f04abd53.webp?v=1714971358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38e4c18348d0bc3ad291396f54f281471062f36_ea1c1ef2-7802-4081-b1d2-7b53f04abd53.webp?v=1714971358","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917284089955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31491184361571,"product_id":7416086560867,"position":5,"created_at":"2024-05-06T12:55:47+08:00","updated_at":"2024-05-06T12:55:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347","variant_ids":[41917284089955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23896591827043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917284089955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31491184361571,"product_id":7416086560867,"position":5,"created_at":"2024-05-06T12:55:47+08:00","updated_at":"2024-05-06T12:55:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347","variant_ids":[41917284089955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23896591827043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3660d44b0be63e2685142e134ea39a1fd3e16cd5_24b20784-f695-4d8a-b8c2-39c89231e832.webp?v=1714971347"}},"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: "停產" }