$product = {"id":7407900229731,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹","handle":"iphone-14-plus-mod-nx-printable-pb27","description":null,"published_at":"2024-06-11T16:26:00+08:00","created_at":"2024-05-03T11:12:14+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 14 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":41880272896099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31470655242339,"product_id":7407900229731,"position":8,"created_at":"2024-05-03T11:12:34+08:00","updated_at":"2024-05-03T11:12:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954","variant_ids":[41880272896099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"NPB0126124-PB27","featured_media":{"alt":null,"id":23875559194723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13661df42e2bb87b71326b4cb1c49d6f2d1ac12e_859e0e84-3c13-4376-9b1b-db058b76be7b.webp?v=1714705936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7282b48711540228e1edf620b090653d7a16cda2_10d8ff98-7b5c-48f7-96d1-63f6245520c0.webp?v=1714705939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ec8c9a24d675f5db38e09c2b7cd112a84dc1246_ed90295c-3b8e-43f5-a80f-6967fb6f6292.webp?v=1714705942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e5abf744bc7b99e6d915a3bf5420259e226ca05_1872eeb8-413f-4695-b095-4fa6fe7767bf.webp?v=1714705944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8450fe268eaa7363bf3f6722f222efe60427d351_9f6dc564-5841-4f67-be6d-b8cc5d8d7b71.webp?v=1714705947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d3117a355a51c6606932502aad410e8cc88939_bf600d2d-26a3-4528-aafa-2477abd8ffbb.webp?v=1714705949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/370020d4f4b2a67e89db81b77d47dc1f557c280b_1c7b2bf5-c670-4a1a-9a00-f3dafaad3eab.webp?v=1714705952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0b2a4ffe30c064ba01ed66786af6c30f37bd3a_353c1a01-8d6d-490a-bc18-0548a0dabae0.webp?v=1714705957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5acdca9b0f50c577e6f92b46fcbfb6802b5dea8_0e36279e-6235-4d6a-8257-0ce4775c1b4d.webp?v=1714705959"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13661df42e2bb87b71326b4cb1c49d6f2d1ac12e_859e0e84-3c13-4376-9b1b-db058b76be7b.webp?v=1714705936","options":["color"],"media":[{"alt":null,"id":23875555590243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13661df42e2bb87b71326b4cb1c49d6f2d1ac12e_859e0e84-3c13-4376-9b1b-db058b76be7b.webp?v=1714705936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13661df42e2bb87b71326b4cb1c49d6f2d1ac12e_859e0e84-3c13-4376-9b1b-db058b76be7b.webp?v=1714705936","width":2000},{"alt":null,"id":23875556180067,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7282b48711540228e1edf620b090653d7a16cda2_10d8ff98-7b5c-48f7-96d1-63f6245520c0.webp?v=1714705939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7282b48711540228e1edf620b090653d7a16cda2_10d8ff98-7b5c-48f7-96d1-63f6245520c0.webp?v=1714705939","width":2000},{"alt":null,"id":23875556769891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ec8c9a24d675f5db38e09c2b7cd112a84dc1246_ed90295c-3b8e-43f5-a80f-6967fb6f6292.webp?v=1714705942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ec8c9a24d675f5db38e09c2b7cd112a84dc1246_ed90295c-3b8e-43f5-a80f-6967fb6f6292.webp?v=1714705942","width":2000},{"alt":null,"id":23875557261411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e5abf744bc7b99e6d915a3bf5420259e226ca05_1872eeb8-413f-4695-b095-4fa6fe7767bf.webp?v=1714705944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e5abf744bc7b99e6d915a3bf5420259e226ca05_1872eeb8-413f-4695-b095-4fa6fe7767bf.webp?v=1714705944","width":2000},{"alt":null,"id":23875557785699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8450fe268eaa7363bf3f6722f222efe60427d351_9f6dc564-5841-4f67-be6d-b8cc5d8d7b71.webp?v=1714705947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8450fe268eaa7363bf3f6722f222efe60427d351_9f6dc564-5841-4f67-be6d-b8cc5d8d7b71.webp?v=1714705947","width":2000},{"alt":null,"id":23875558277219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d3117a355a51c6606932502aad410e8cc88939_bf600d2d-26a3-4528-aafa-2477abd8ffbb.webp?v=1714705949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d3117a355a51c6606932502aad410e8cc88939_bf600d2d-26a3-4528-aafa-2477abd8ffbb.webp?v=1714705949","width":2000},{"alt":null,"id":23875558768739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/370020d4f4b2a67e89db81b77d47dc1f557c280b_1c7b2bf5-c670-4a1a-9a00-f3dafaad3eab.webp?v=1714705952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/370020d4f4b2a67e89db81b77d47dc1f557c280b_1c7b2bf5-c670-4a1a-9a00-f3dafaad3eab.webp?v=1714705952","width":2000},{"alt":null,"id":23875559194723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954","width":2000},{"alt":null,"id":23875559719011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0b2a4ffe30c064ba01ed66786af6c30f37bd3a_353c1a01-8d6d-490a-bc18-0548a0dabae0.webp?v=1714705957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0b2a4ffe30c064ba01ed66786af6c30f37bd3a_353c1a01-8d6d-490a-bc18-0548a0dabae0.webp?v=1714705957","width":2000},{"alt":null,"id":23875560046691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5acdca9b0f50c577e6f92b46fcbfb6802b5dea8_0e36279e-6235-4d6a-8257-0ce4775c1b4d.webp?v=1714705959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5acdca9b0f50c577e6f92b46fcbfb6802b5dea8_0e36279e-6235-4d6a-8257-0ce4775c1b4d.webp?v=1714705959","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880272896099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31470655242339,"product_id":7407900229731,"position":8,"created_at":"2024-05-03T11:12:34+08:00","updated_at":"2024-05-03T11:12:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954","variant_ids":[41880272896099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"NPB0126124-PB27","featured_media":{"alt":null,"id":23875559194723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880272896099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31470655242339,"product_id":7407900229731,"position":8,"created_at":"2024-05-03T11:12:34+08:00","updated_at":"2024-05-03T11:12:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954","variant_ids":[41880272896099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"NPB0126124-PB27","featured_media":{"alt":null,"id":23875559194723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf08598b01b4e8eeef5ef782810e49ac31887c8_b97d12fa-b203-4be8-aaa9-e02f219b880c.webp?v=1714705954"}},"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: "停產" }