$product = {"id":7416388845667,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術","handle":"iphone-8-mod-nx-printable-pb37","description":null,"published_at":"2024-06-11T16:57:43+08:00","created_at":"2024-05-06T14:47:19+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 8","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":41919206031459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31492007395427,"product_id":7416388845667,"position":4,"created_at":"2024-05-06T14:47:28+08:00","updated_at":"2024-05-06T14:47:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048","variant_ids":[41919206031459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0105424-PB37","featured_media":{"alt":null,"id":23897421217891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae79184ad0a6c9d0bc47980fbfb3d2a15da4857_db0c83e9-4614-4ed0-867d-a9fdac1860bb.webp?v=1714978041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ffce7e7ed959ca3c6f43928bb94a14431973356_18d2e8a5-7fea-4fe0-92ed-60ccda1e4874.webp?v=1714978043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065f49211b61ecc2bfc29e15aa29de0d6ad08717_69bfb3da-29c5-4b24-90c6-26f6369dfe30.webp?v=1714978046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/843de3ac1f362a04fd297d4c2ba60d051334e7ea_160a5fb5-43e9-4612-9b0e-ef3a6e64300f.webp?v=1714978050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fc9fcab36bb480cf207ada00f7cc20562ea4efb_308f5331-1117-45cb-b878-6152d1b8375f.webp?v=1714978052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fdbfba7000087dbea0576e4a237c86e59eb300d_01e941de-fabb-4a94-84f9-6f052771ebb5.webp?v=1714978054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c88c67261f6c8c9ec633e4db1f6437a17c6450b_df11f01c-f2a5-4434-93ae-642bb2287c87.webp?v=1714978057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77eb27c2657a89b174b1c6ba272277042df3ce35_68670108-1969-4cee-9043-eb1c546451bb.webp?v=1714978059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1250bd3bc81f7d1c6e6118d00991e7a07db111b1_c26fa367-260b-4683-9f77-bdac9aedbc33.webp?v=1714978062"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae79184ad0a6c9d0bc47980fbfb3d2a15da4857_db0c83e9-4614-4ed0-867d-a9fdac1860bb.webp?v=1714978041","options":["color"],"media":[{"alt":null,"id":23897419841635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae79184ad0a6c9d0bc47980fbfb3d2a15da4857_db0c83e9-4614-4ed0-867d-a9fdac1860bb.webp?v=1714978041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae79184ad0a6c9d0bc47980fbfb3d2a15da4857_db0c83e9-4614-4ed0-867d-a9fdac1860bb.webp?v=1714978041","width":2000},{"alt":null,"id":23897420300387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ffce7e7ed959ca3c6f43928bb94a14431973356_18d2e8a5-7fea-4fe0-92ed-60ccda1e4874.webp?v=1714978043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ffce7e7ed959ca3c6f43928bb94a14431973356_18d2e8a5-7fea-4fe0-92ed-60ccda1e4874.webp?v=1714978043","width":2000},{"alt":null,"id":23897420791907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065f49211b61ecc2bfc29e15aa29de0d6ad08717_69bfb3da-29c5-4b24-90c6-26f6369dfe30.webp?v=1714978046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065f49211b61ecc2bfc29e15aa29de0d6ad08717_69bfb3da-29c5-4b24-90c6-26f6369dfe30.webp?v=1714978046","width":2000},{"alt":null,"id":23897421217891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048","width":2000},{"alt":null,"id":23897421578339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/843de3ac1f362a04fd297d4c2ba60d051334e7ea_160a5fb5-43e9-4612-9b0e-ef3a6e64300f.webp?v=1714978050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/843de3ac1f362a04fd297d4c2ba60d051334e7ea_160a5fb5-43e9-4612-9b0e-ef3a6e64300f.webp?v=1714978050","width":2000},{"alt":null,"id":23897421906019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fc9fcab36bb480cf207ada00f7cc20562ea4efb_308f5331-1117-45cb-b878-6152d1b8375f.webp?v=1714978052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fc9fcab36bb480cf207ada00f7cc20562ea4efb_308f5331-1117-45cb-b878-6152d1b8375f.webp?v=1714978052","width":2000},{"alt":null,"id":23897422430307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fdbfba7000087dbea0576e4a237c86e59eb300d_01e941de-fabb-4a94-84f9-6f052771ebb5.webp?v=1714978054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fdbfba7000087dbea0576e4a237c86e59eb300d_01e941de-fabb-4a94-84f9-6f052771ebb5.webp?v=1714978054","width":2000},{"alt":null,"id":23897422790755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c88c67261f6c8c9ec633e4db1f6437a17c6450b_df11f01c-f2a5-4434-93ae-642bb2287c87.webp?v=1714978057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c88c67261f6c8c9ec633e4db1f6437a17c6450b_df11f01c-f2a5-4434-93ae-642bb2287c87.webp?v=1714978057","width":2000},{"alt":null,"id":23897423249507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77eb27c2657a89b174b1c6ba272277042df3ce35_68670108-1969-4cee-9043-eb1c546451bb.webp?v=1714978059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77eb27c2657a89b174b1c6ba272277042df3ce35_68670108-1969-4cee-9043-eb1c546451bb.webp?v=1714978059","width":2000},{"alt":null,"id":23897423609955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1250bd3bc81f7d1c6e6118d00991e7a07db111b1_c26fa367-260b-4683-9f77-bdac9aedbc33.webp?v=1714978062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1250bd3bc81f7d1c6e6118d00991e7a07db111b1_c26fa367-260b-4683-9f77-bdac9aedbc33.webp?v=1714978062","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919206031459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31492007395427,"product_id":7416388845667,"position":4,"created_at":"2024-05-06T14:47:28+08:00","updated_at":"2024-05-06T14:47:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048","variant_ids":[41919206031459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0105424-PB37","featured_media":{"alt":null,"id":23897421217891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919206031459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31492007395427,"product_id":7416388845667,"position":4,"created_at":"2024-05-06T14:47:28+08:00","updated_at":"2024-05-06T14:47:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048","variant_ids":[41919206031459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0105424-PB37","featured_media":{"alt":null,"id":23897421217891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3aa2512b322992a6780ddc60fadcd1cdc4ff04_8206610b-1eef-4c65-b344-42f5fe4d9da9.webp?v=1714978048"}},"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: "停產" }