$product = {"id":7408444670051,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列","handle":"iphone-12-mini-mod-nx-printable-pb66","description":null,"published_at":"2024-06-11T16:37:24+08:00","created_at":"2024-05-03T15:27: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 12 mini","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":41885548806243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31472295706723,"product_id":7408444670051,"position":4,"created_at":"2024-05-03T15:27:51+08:00","updated_at":"2024-05-03T15:27:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271","variant_ids":[41885548806243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0118424-PB66","featured_media":{"alt":null,"id":23877212045411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a66e8262cecf047887e89c660208a17ad7ed7f7_135f3058-a1a3-4c81-b1a0-ecc46a6c56b9.webp?v=1714721264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43b29438a80f58e9f50ffcc866618a81471060a2_0bee66f7-b921-410a-901c-24eba801d2c7.webp?v=1714721266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221148cf88fc2e9ca8db9f4f8d9b6988e6dc7c91_67100497-a6b3-4d1e-907f-0b35672d7fbb.webp?v=1714721269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38676162ec0e8b24ecc21b05d0e007fb44d3e171_21b4336d-b62e-453d-8061-f56170c7731c.webp?v=1714721273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda47e44ee796d596c9777c40309fecd23e6eab0_9df37ecf-5c57-4e13-8e1e-e389f62ce137.webp?v=1714721275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f900d8cfe59e2599742c963978a03716c5597d4d_f53d94aa-4253-41be-9e2b-1b6a7a7d9241.webp?v=1714721278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adaea5175f58e00f133f0839ffbec5c1f36a1776_f849952c-395f-4c9d-b8b0-ca9efb9480eb.webp?v=1714721280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/892f669100ae1303816445377603e63fc47828a9_37abc04e-cdfb-4e41-bb56-6c0d043a5aff.webp?v=1714721282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f16acdda2761bdeded55b803a4ab755ac4d3e4a_bba11681-5d0f-4a7f-a66f-40f740b34d5c.webp?v=1714721285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698b0847df766e97ad65f8f4327dd0ec4d4c59bb_21e79612-4270-4508-ba2a-1972ef2a6e9f.webp?v=1714721287"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a66e8262cecf047887e89c660208a17ad7ed7f7_135f3058-a1a3-4c81-b1a0-ecc46a6c56b9.webp?v=1714721264","options":["color"],"media":[{"alt":null,"id":23877210636387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a66e8262cecf047887e89c660208a17ad7ed7f7_135f3058-a1a3-4c81-b1a0-ecc46a6c56b9.webp?v=1714721264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a66e8262cecf047887e89c660208a17ad7ed7f7_135f3058-a1a3-4c81-b1a0-ecc46a6c56b9.webp?v=1714721264","width":2000},{"alt":null,"id":23877210996835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43b29438a80f58e9f50ffcc866618a81471060a2_0bee66f7-b921-410a-901c-24eba801d2c7.webp?v=1714721266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43b29438a80f58e9f50ffcc866618a81471060a2_0bee66f7-b921-410a-901c-24eba801d2c7.webp?v=1714721266","width":2000},{"alt":null,"id":23877211455587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221148cf88fc2e9ca8db9f4f8d9b6988e6dc7c91_67100497-a6b3-4d1e-907f-0b35672d7fbb.webp?v=1714721269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221148cf88fc2e9ca8db9f4f8d9b6988e6dc7c91_67100497-a6b3-4d1e-907f-0b35672d7fbb.webp?v=1714721269","width":2000},{"alt":null,"id":23877212045411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271","width":2000},{"alt":null,"id":23877212504163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38676162ec0e8b24ecc21b05d0e007fb44d3e171_21b4336d-b62e-453d-8061-f56170c7731c.webp?v=1714721273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38676162ec0e8b24ecc21b05d0e007fb44d3e171_21b4336d-b62e-453d-8061-f56170c7731c.webp?v=1714721273","width":2000},{"alt":null,"id":23877212897379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda47e44ee796d596c9777c40309fecd23e6eab0_9df37ecf-5c57-4e13-8e1e-e389f62ce137.webp?v=1714721275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda47e44ee796d596c9777c40309fecd23e6eab0_9df37ecf-5c57-4e13-8e1e-e389f62ce137.webp?v=1714721275","width":2000},{"alt":null,"id":23877213257827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f900d8cfe59e2599742c963978a03716c5597d4d_f53d94aa-4253-41be-9e2b-1b6a7a7d9241.webp?v=1714721278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f900d8cfe59e2599742c963978a03716c5597d4d_f53d94aa-4253-41be-9e2b-1b6a7a7d9241.webp?v=1714721278","width":2000},{"alt":null,"id":23877213749347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adaea5175f58e00f133f0839ffbec5c1f36a1776_f849952c-395f-4c9d-b8b0-ca9efb9480eb.webp?v=1714721280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adaea5175f58e00f133f0839ffbec5c1f36a1776_f849952c-395f-4c9d-b8b0-ca9efb9480eb.webp?v=1714721280","width":2000},{"alt":null,"id":23877214306403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/892f669100ae1303816445377603e63fc47828a9_37abc04e-cdfb-4e41-bb56-6c0d043a5aff.webp?v=1714721282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/892f669100ae1303816445377603e63fc47828a9_37abc04e-cdfb-4e41-bb56-6c0d043a5aff.webp?v=1714721282","width":2000},{"alt":null,"id":23877214765155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f16acdda2761bdeded55b803a4ab755ac4d3e4a_bba11681-5d0f-4a7f-a66f-40f740b34d5c.webp?v=1714721285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f16acdda2761bdeded55b803a4ab755ac4d3e4a_bba11681-5d0f-4a7f-a66f-40f740b34d5c.webp?v=1714721285","width":2000},{"alt":null,"id":23877215289443,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698b0847df766e97ad65f8f4327dd0ec4d4c59bb_21e79612-4270-4508-ba2a-1972ef2a6e9f.webp?v=1714721287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698b0847df766e97ad65f8f4327dd0ec4d4c59bb_21e79612-4270-4508-ba2a-1972ef2a6e9f.webp?v=1714721287","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885548806243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31472295706723,"product_id":7408444670051,"position":4,"created_at":"2024-05-03T15:27:51+08:00","updated_at":"2024-05-03T15:27:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271","variant_ids":[41885548806243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0118424-PB66","featured_media":{"alt":null,"id":23877212045411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885548806243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31472295706723,"product_id":7408444670051,"position":4,"created_at":"2024-05-03T15:27:51+08:00","updated_at":"2024-05-03T15:27:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271","variant_ids":[41885548806243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0118424-PB66","featured_media":{"alt":null,"id":23877212045411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb97c49367411d79540ccc9a34c696676b09a9_30d82410-86cf-476c-9278-b8b2f24d71bd.webp?v=1714721271"}},"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: "停產" }