$product = {"id":7416364433507,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡","handle":"iphone-8-mod-nx-printable-pc07","description":null,"published_at":"2024-06-11T16:57:02+08:00","created_at":"2024-05-06T14:42:42+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":41918935793763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31491948019811,"product_id":7416364433507,"position":6,"created_at":"2024-05-06T14:42:57+08:00","updated_at":"2024-05-06T14:42:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777","variant_ids":[41918935793763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PC07","featured_media":{"alt":null,"id":23897361088611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000139c7139f240dc42c4f3976464a10228c791d_e987515d-1f28-47ff-a54d-cf3f436cd4ab.webp?v=1714977765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c5d57c75738711eb3a375b0b9d3efa9470adc7_938a6c25-644c-4b60-8508-17d6e29be643.webp?v=1714977767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c176b4d0c207ffc4168af204cfc5b7da2b6402_3b5509b1-cc42-4201-a9f2-2d1f6781f036.webp?v=1714977770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c48bcbce2ddf35fdb3d97721a5444dad1ade8b7_9cd04ba5-331e-44ff-9924-56ff4ef8098c.webp?v=1714977772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6fab0d2e7dc5d93d0797f940a04e0a4a10830d_4471afd6-47a8-438c-8448-9f2486a3ff25.webp?v=1714977774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f5ae5c409021f57a9d8d238dc04ce37a7376790_aec54f41-daa0-44cb-8be3-6a229b47702d.webp?v=1714977779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af5693fd489182a1bad22de88827eeb57a24686_02d336e9-7d62-41df-89b8-52c455018874.webp?v=1714977781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e801c69530b179f04981e304ec00330194ac878_972de0bf-ffb2-47f4-adc4-b855054ea97c.webp?v=1714977783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db0c453604748514004524b6e5d17a85befb157_bb9b829d-1ff9-4721-a751-bb0a6365410b.webp?v=1714977786"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000139c7139f240dc42c4f3976464a10228c791d_e987515d-1f28-47ff-a54d-cf3f436cd4ab.webp?v=1714977765","options":["color"],"media":[{"alt":null,"id":23897358368867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000139c7139f240dc42c4f3976464a10228c791d_e987515d-1f28-47ff-a54d-cf3f436cd4ab.webp?v=1714977765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000139c7139f240dc42c4f3976464a10228c791d_e987515d-1f28-47ff-a54d-cf3f436cd4ab.webp?v=1714977765","width":2000},{"alt":null,"id":23897358794851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c5d57c75738711eb3a375b0b9d3efa9470adc7_938a6c25-644c-4b60-8508-17d6e29be643.webp?v=1714977767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c5d57c75738711eb3a375b0b9d3efa9470adc7_938a6c25-644c-4b60-8508-17d6e29be643.webp?v=1714977767","width":2000},{"alt":null,"id":23897359646819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c176b4d0c207ffc4168af204cfc5b7da2b6402_3b5509b1-cc42-4201-a9f2-2d1f6781f036.webp?v=1714977770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c176b4d0c207ffc4168af204cfc5b7da2b6402_3b5509b1-cc42-4201-a9f2-2d1f6781f036.webp?v=1714977770","width":2000},{"alt":null,"id":23897360105571,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c48bcbce2ddf35fdb3d97721a5444dad1ade8b7_9cd04ba5-331e-44ff-9924-56ff4ef8098c.webp?v=1714977772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c48bcbce2ddf35fdb3d97721a5444dad1ade8b7_9cd04ba5-331e-44ff-9924-56ff4ef8098c.webp?v=1714977772","width":2000},{"alt":null,"id":23897360662627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6fab0d2e7dc5d93d0797f940a04e0a4a10830d_4471afd6-47a8-438c-8448-9f2486a3ff25.webp?v=1714977774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6fab0d2e7dc5d93d0797f940a04e0a4a10830d_4471afd6-47a8-438c-8448-9f2486a3ff25.webp?v=1714977774","width":2000},{"alt":null,"id":23897361088611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777","width":2000},{"alt":null,"id":23897361678435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f5ae5c409021f57a9d8d238dc04ce37a7376790_aec54f41-daa0-44cb-8be3-6a229b47702d.webp?v=1714977779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f5ae5c409021f57a9d8d238dc04ce37a7376790_aec54f41-daa0-44cb-8be3-6a229b47702d.webp?v=1714977779","width":2000},{"alt":null,"id":23897362006115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af5693fd489182a1bad22de88827eeb57a24686_02d336e9-7d62-41df-89b8-52c455018874.webp?v=1714977781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af5693fd489182a1bad22de88827eeb57a24686_02d336e9-7d62-41df-89b8-52c455018874.webp?v=1714977781","width":2000},{"alt":null,"id":23897363021923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e801c69530b179f04981e304ec00330194ac878_972de0bf-ffb2-47f4-adc4-b855054ea97c.webp?v=1714977783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e801c69530b179f04981e304ec00330194ac878_972de0bf-ffb2-47f4-adc4-b855054ea97c.webp?v=1714977783","width":2000},{"alt":null,"id":23897363677283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db0c453604748514004524b6e5d17a85befb157_bb9b829d-1ff9-4721-a751-bb0a6365410b.webp?v=1714977786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db0c453604748514004524b6e5d17a85befb157_bb9b829d-1ff9-4721-a751-bb0a6365410b.webp?v=1714977786","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918935793763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31491948019811,"product_id":7416364433507,"position":6,"created_at":"2024-05-06T14:42:57+08:00","updated_at":"2024-05-06T14:42:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777","variant_ids":[41918935793763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PC07","featured_media":{"alt":null,"id":23897361088611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918935793763,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31491948019811,"product_id":7416364433507,"position":6,"created_at":"2024-05-06T14:42:57+08:00","updated_at":"2024-05-06T14:42:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777","variant_ids":[41918935793763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PC07","featured_media":{"alt":null,"id":23897361088611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e99ea9bc9c25f14f02f77ffe9681ae9d382378_3b84744f-f4d4-46a9-a91f-2f2531b54526.webp?v=1714977777"}},"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: "停產" }