$product = {"id":7407811068003,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-14-plus-mod-nx-printable-pc08","description":null,"published_at":"2024-06-11T16:23:29+08:00","created_at":"2024-05-03T10:54:03+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":41879100522595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470424490083,"product_id":7407811068003,"position":3,"created_at":"2024-05-03T10:54:10+08:00","updated_at":"2024-05-03T10:54:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850","variant_ids":[41879100522595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PC08","featured_media":{"alt":null,"id":23875323854947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcde0a05213c8ed60262cdf8a9c45b34ea2e879_cc250c73-57dc-40bb-9203-840597c9d500.webp?v=1714704846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0574dff3ff21475d8dc6f09c496a212993c98c_33e8466a-a76e-4f52-b12c-c6f29f4b5069.webp?v=1714704848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd6b80f107263d24cdc080c9320467054427acc_5d36acf1-4b66-434c-9e7b-0d3d8b73b4a6.webp?v=1714704853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69f3a464b3d7dad4a51c9a6e478fb5488f76d6f9_f5de0dfa-abbd-4691-8189-da413f112236.webp?v=1714704855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ab3ed76187d138caf0d13aed9dec85345c0f208_c692aa3a-2070-48c3-a20a-6d601b0b1d1f.webp?v=1714704857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5419917d6144800aaf975ac4101a75fe2dd96e99_77609156-3e73-4d24-ac50-66afb536aacb.webp?v=1714704859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651a1f25c59fb0679cb8d6728d600b46a1ca4948_33023341-8ef2-42aa-81c1-4f2d844dd78e.webp?v=1714704862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8ea59e617262cc30b8a9716024e650912eae11_0b2e7233-833e-4c65-bae8-bbe4fa39c086.webp?v=1714704864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e37f7548061b670dfb4d1d46bd7f12a1dfd3278_d8153f56-50af-4418-80c7-aa8ae037206b.webp?v=1714704866"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcde0a05213c8ed60262cdf8a9c45b34ea2e879_cc250c73-57dc-40bb-9203-840597c9d500.webp?v=1714704846","options":["color"],"media":[{"alt":null,"id":23875321102435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcde0a05213c8ed60262cdf8a9c45b34ea2e879_cc250c73-57dc-40bb-9203-840597c9d500.webp?v=1714704846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcde0a05213c8ed60262cdf8a9c45b34ea2e879_cc250c73-57dc-40bb-9203-840597c9d500.webp?v=1714704846","width":2000},{"alt":null,"id":23875321495651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0574dff3ff21475d8dc6f09c496a212993c98c_33e8466a-a76e-4f52-b12c-c6f29f4b5069.webp?v=1714704848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0574dff3ff21475d8dc6f09c496a212993c98c_33e8466a-a76e-4f52-b12c-c6f29f4b5069.webp?v=1714704848","width":2000},{"alt":null,"id":23875323854947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850","width":2000},{"alt":null,"id":23875328147555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd6b80f107263d24cdc080c9320467054427acc_5d36acf1-4b66-434c-9e7b-0d3d8b73b4a6.webp?v=1714704853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd6b80f107263d24cdc080c9320467054427acc_5d36acf1-4b66-434c-9e7b-0d3d8b73b4a6.webp?v=1714704853","width":2000},{"alt":null,"id":23875328671843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69f3a464b3d7dad4a51c9a6e478fb5488f76d6f9_f5de0dfa-abbd-4691-8189-da413f112236.webp?v=1714704855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69f3a464b3d7dad4a51c9a6e478fb5488f76d6f9_f5de0dfa-abbd-4691-8189-da413f112236.webp?v=1714704855","width":2000},{"alt":null,"id":23875329032291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ab3ed76187d138caf0d13aed9dec85345c0f208_c692aa3a-2070-48c3-a20a-6d601b0b1d1f.webp?v=1714704857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ab3ed76187d138caf0d13aed9dec85345c0f208_c692aa3a-2070-48c3-a20a-6d601b0b1d1f.webp?v=1714704857","width":2000},{"alt":null,"id":23875329425507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5419917d6144800aaf975ac4101a75fe2dd96e99_77609156-3e73-4d24-ac50-66afb536aacb.webp?v=1714704859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5419917d6144800aaf975ac4101a75fe2dd96e99_77609156-3e73-4d24-ac50-66afb536aacb.webp?v=1714704859","width":2000},{"alt":null,"id":23875329785955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651a1f25c59fb0679cb8d6728d600b46a1ca4948_33023341-8ef2-42aa-81c1-4f2d844dd78e.webp?v=1714704862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651a1f25c59fb0679cb8d6728d600b46a1ca4948_33023341-8ef2-42aa-81c1-4f2d844dd78e.webp?v=1714704862","width":2000},{"alt":null,"id":23875330211939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8ea59e617262cc30b8a9716024e650912eae11_0b2e7233-833e-4c65-bae8-bbe4fa39c086.webp?v=1714704864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8ea59e617262cc30b8a9716024e650912eae11_0b2e7233-833e-4c65-bae8-bbe4fa39c086.webp?v=1714704864","width":2000},{"alt":null,"id":23875330506851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e37f7548061b670dfb4d1d46bd7f12a1dfd3278_d8153f56-50af-4418-80c7-aa8ae037206b.webp?v=1714704866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e37f7548061b670dfb4d1d46bd7f12a1dfd3278_d8153f56-50af-4418-80c7-aa8ae037206b.webp?v=1714704866","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879100522595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470424490083,"product_id":7407811068003,"position":3,"created_at":"2024-05-03T10:54:10+08:00","updated_at":"2024-05-03T10:54:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850","variant_ids":[41879100522595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PC08","featured_media":{"alt":null,"id":23875323854947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879100522595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470424490083,"product_id":7407811068003,"position":3,"created_at":"2024-05-03T10:54:10+08:00","updated_at":"2024-05-03T10:54:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850","variant_ids":[41879100522595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PC08","featured_media":{"alt":null,"id":23875323854947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6a8cd4736b3bd454241169b048c2a5c8398589_ac3fa8c0-6fc4-4a7d-83a1-4aaaf8922794.webp?v=1714704850"}},"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: "停產" }