$product = {"id":7416081383523,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列","handle":"iphone-xs-max-mod-nx-printable-pb56","description":null,"published_at":"2024-06-11T16:52:13+08:00","created_at":"2024-05-06T12:54:26+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":41917242933347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31491172008035,"product_id":7416081383523,"position":10,"created_at":"2024-05-06T12:54:49+08:00","updated_at":"2024-05-06T12:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289","variant_ids":[41917242933347]},"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-PB56","featured_media":{"alt":null,"id":23896579539043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26af559ae9833edc7a5b55a755d9678bd7448445_6fafbe2a-911c-40bd-8a38-bd1d129a8ec4.webp?v=1714971268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2e4f0d836e85f93273cf0f616dd5b327c82f98_bb356c59-d0b1-4684-abfe-16ff72c69d81.webp?v=1714971270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f07ae45f1a286c2df0d0347633cb0486d95de71_f685980d-03e0-4044-b63c-2144bc23ae28.webp?v=1714971273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9fa60253e7ba4a0199bedf5d901c9c8aefe984_e9be5ca1-e397-4fee-8bdc-eb50a73003f1.webp?v=1714971275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85815ba6c7425c378e159a39045e591b0b4169a4_1741d6ab-5389-4517-a8e1-c813b217794a.webp?v=1714971277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a54ee25e1d322b2deb35b5a4fc129b451493bdc_545fa0af-26c4-40b4-bb99-b7ee9460da5b.webp?v=1714971279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba5c608bb5d847fcf9a268e71668da88785784c_748d1e83-7bdf-4bab-a84d-65d102f6280d.webp?v=1714971282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f73163f1f177515fa2511ed735bc396001b84a66_44a7926a-4757-41b1-b071-da8020527dde.webp?v=1714971284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86745642a2cab838ae64ba4544565d96c98414ef_9eccdd20-82f1-4b98-a3f2-4cd55df5d1e4.webp?v=1714971287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26af559ae9833edc7a5b55a755d9678bd7448445_6fafbe2a-911c-40bd-8a38-bd1d129a8ec4.webp?v=1714971268","options":["color"],"media":[{"alt":null,"id":23896574623843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26af559ae9833edc7a5b55a755d9678bd7448445_6fafbe2a-911c-40bd-8a38-bd1d129a8ec4.webp?v=1714971268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26af559ae9833edc7a5b55a755d9678bd7448445_6fafbe2a-911c-40bd-8a38-bd1d129a8ec4.webp?v=1714971268","width":2000},{"alt":null,"id":23896575017059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2e4f0d836e85f93273cf0f616dd5b327c82f98_bb356c59-d0b1-4684-abfe-16ff72c69d81.webp?v=1714971270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2e4f0d836e85f93273cf0f616dd5b327c82f98_bb356c59-d0b1-4684-abfe-16ff72c69d81.webp?v=1714971270","width":2000},{"alt":null,"id":23896575705187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f07ae45f1a286c2df0d0347633cb0486d95de71_f685980d-03e0-4044-b63c-2144bc23ae28.webp?v=1714971273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f07ae45f1a286c2df0d0347633cb0486d95de71_f685980d-03e0-4044-b63c-2144bc23ae28.webp?v=1714971273","width":2000},{"alt":null,"id":23896576131171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9fa60253e7ba4a0199bedf5d901c9c8aefe984_e9be5ca1-e397-4fee-8bdc-eb50a73003f1.webp?v=1714971275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9fa60253e7ba4a0199bedf5d901c9c8aefe984_e9be5ca1-e397-4fee-8bdc-eb50a73003f1.webp?v=1714971275","width":2000},{"alt":null,"id":23896577015907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85815ba6c7425c378e159a39045e591b0b4169a4_1741d6ab-5389-4517-a8e1-c813b217794a.webp?v=1714971277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85815ba6c7425c378e159a39045e591b0b4169a4_1741d6ab-5389-4517-a8e1-c813b217794a.webp?v=1714971277","width":2000},{"alt":null,"id":23896577441891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a54ee25e1d322b2deb35b5a4fc129b451493bdc_545fa0af-26c4-40b4-bb99-b7ee9460da5b.webp?v=1714971279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a54ee25e1d322b2deb35b5a4fc129b451493bdc_545fa0af-26c4-40b4-bb99-b7ee9460da5b.webp?v=1714971279","width":2000},{"alt":null,"id":23896578031715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba5c608bb5d847fcf9a268e71668da88785784c_748d1e83-7bdf-4bab-a84d-65d102f6280d.webp?v=1714971282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba5c608bb5d847fcf9a268e71668da88785784c_748d1e83-7bdf-4bab-a84d-65d102f6280d.webp?v=1714971282","width":2000},{"alt":null,"id":23896578490467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f73163f1f177515fa2511ed735bc396001b84a66_44a7926a-4757-41b1-b071-da8020527dde.webp?v=1714971284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f73163f1f177515fa2511ed735bc396001b84a66_44a7926a-4757-41b1-b071-da8020527dde.webp?v=1714971284","width":2000},{"alt":null,"id":23896578949219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86745642a2cab838ae64ba4544565d96c98414ef_9eccdd20-82f1-4b98-a3f2-4cd55df5d1e4.webp?v=1714971287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86745642a2cab838ae64ba4544565d96c98414ef_9eccdd20-82f1-4b98-a3f2-4cd55df5d1e4.webp?v=1714971287","width":2000},{"alt":null,"id":23896579539043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917242933347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31491172008035,"product_id":7416081383523,"position":10,"created_at":"2024-05-06T12:54:49+08:00","updated_at":"2024-05-06T12:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289","variant_ids":[41917242933347]},"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-PB56","featured_media":{"alt":null,"id":23896579539043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917242933347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31491172008035,"product_id":7416081383523,"position":10,"created_at":"2024-05-06T12:54:49+08:00","updated_at":"2024-05-06T12:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289","variant_ids":[41917242933347]},"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-PB56","featured_media":{"alt":null,"id":23896579539043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7faaf0f1cabd3d598c813ffbefea80fef305336_1dc5021f-e1d1-4fe5-8184-fbbe54461929.webp?v=1714971289"}},"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: "停產" }