$product = {"id":7408386310243,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報","handle":"iphone-12-mini-mod-nx-printable-pb101","description":null,"published_at":"2024-06-11T16:35:49+08:00","created_at":"2024-05-03T15:16:15+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":41884908257379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31472127606883,"product_id":7408386310243,"position":5,"created_at":"2024-05-03T15:16:27+08:00","updated_at":"2024-05-03T15:16:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587","variant_ids":[41884908257379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB101","featured_media":{"alt":null,"id":23877043126371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577a1fbe8a752d1bbf736b322ef6fe3a965390cf_eebae087-2fda-41c6-9064-c0142b8abd61.webp?v=1714720578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f07ccd7474bf9421b908f00bd17034ea68a9bc56_2ef3b611-c93b-41d6-8949-9cd8a9cbcee3.webp?v=1714720580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d012f9b3635238ded1d228971174be2ca3ecf55_e3dc129c-0645-46e8-8042-c8584ec4536b.webp?v=1714720582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e15dbae08fda9aeb53bcdb6d7ae35fe429a475_887d0b9f-b391-4e01-9444-d6ed448acf9d.webp?v=1714720584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7ebfc2eb950ec039f13d98eaaf3f0b1100e81a7_ae057683-03c2-43b2-88fe-eb85f8220d49.webp?v=1714720590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11a2162b136533b004374f24f4434aec2e7e894_52c19acb-400c-4f28-a4dd-716608acbb5a.webp?v=1714720592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58583d2ee72e3015e8b56b3f3286bc6f7d89b863_6a92be2b-6dba-49ee-ab8a-1f1363e9b070.webp?v=1714720595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c1684bb588c0700b93e4b3baf620ee965d4a5e9_16b8c7fe-012e-4355-acaa-163730632804.webp?v=1714720604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb1d2c2bf2db6f5d9e376639fa8434e934bd2f3_7c832ab4-7209-4d86-9a2b-526c6dc97637.webp?v=1714720606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8955166970651423f8d832e01c8f41240ba4aa7e_0e7a7957-6498-4414-920c-15c513ef463b.webp?v=1714720608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577a1fbe8a752d1bbf736b322ef6fe3a965390cf_eebae087-2fda-41c6-9064-c0142b8abd61.webp?v=1714720578","options":["color"],"media":[{"alt":null,"id":23877041061987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577a1fbe8a752d1bbf736b322ef6fe3a965390cf_eebae087-2fda-41c6-9064-c0142b8abd61.webp?v=1714720578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577a1fbe8a752d1bbf736b322ef6fe3a965390cf_eebae087-2fda-41c6-9064-c0142b8abd61.webp?v=1714720578","width":2000},{"alt":null,"id":23877041553507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f07ccd7474bf9421b908f00bd17034ea68a9bc56_2ef3b611-c93b-41d6-8949-9cd8a9cbcee3.webp?v=1714720580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f07ccd7474bf9421b908f00bd17034ea68a9bc56_2ef3b611-c93b-41d6-8949-9cd8a9cbcee3.webp?v=1714720580","width":2000},{"alt":null,"id":23877041913955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d012f9b3635238ded1d228971174be2ca3ecf55_e3dc129c-0645-46e8-8042-c8584ec4536b.webp?v=1714720582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d012f9b3635238ded1d228971174be2ca3ecf55_e3dc129c-0645-46e8-8042-c8584ec4536b.webp?v=1714720582","width":2000},{"alt":null,"id":23877042634851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e15dbae08fda9aeb53bcdb6d7ae35fe429a475_887d0b9f-b391-4e01-9444-d6ed448acf9d.webp?v=1714720584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e15dbae08fda9aeb53bcdb6d7ae35fe429a475_887d0b9f-b391-4e01-9444-d6ed448acf9d.webp?v=1714720584","width":2000},{"alt":null,"id":23877043126371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587","width":2000},{"alt":null,"id":23877043683427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7ebfc2eb950ec039f13d98eaaf3f0b1100e81a7_ae057683-03c2-43b2-88fe-eb85f8220d49.webp?v=1714720590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7ebfc2eb950ec039f13d98eaaf3f0b1100e81a7_ae057683-03c2-43b2-88fe-eb85f8220d49.webp?v=1714720590","width":2000},{"alt":null,"id":23877044240483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11a2162b136533b004374f24f4434aec2e7e894_52c19acb-400c-4f28-a4dd-716608acbb5a.webp?v=1714720592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11a2162b136533b004374f24f4434aec2e7e894_52c19acb-400c-4f28-a4dd-716608acbb5a.webp?v=1714720592","width":2000},{"alt":null,"id":23877044699235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58583d2ee72e3015e8b56b3f3286bc6f7d89b863_6a92be2b-6dba-49ee-ab8a-1f1363e9b070.webp?v=1714720595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58583d2ee72e3015e8b56b3f3286bc6f7d89b863_6a92be2b-6dba-49ee-ab8a-1f1363e9b070.webp?v=1714720595","width":2000},{"alt":null,"id":23877045878883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c1684bb588c0700b93e4b3baf620ee965d4a5e9_16b8c7fe-012e-4355-acaa-163730632804.webp?v=1714720604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c1684bb588c0700b93e4b3baf620ee965d4a5e9_16b8c7fe-012e-4355-acaa-163730632804.webp?v=1714720604","width":2000},{"alt":null,"id":23877046239331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb1d2c2bf2db6f5d9e376639fa8434e934bd2f3_7c832ab4-7209-4d86-9a2b-526c6dc97637.webp?v=1714720606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fb1d2c2bf2db6f5d9e376639fa8434e934bd2f3_7c832ab4-7209-4d86-9a2b-526c6dc97637.webp?v=1714720606","width":2000},{"alt":null,"id":23877046927459,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8955166970651423f8d832e01c8f41240ba4aa7e_0e7a7957-6498-4414-920c-15c513ef463b.webp?v=1714720608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8955166970651423f8d832e01c8f41240ba4aa7e_0e7a7957-6498-4414-920c-15c513ef463b.webp?v=1714720608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884908257379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31472127606883,"product_id":7408386310243,"position":5,"created_at":"2024-05-03T15:16:27+08:00","updated_at":"2024-05-03T15:16:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587","variant_ids":[41884908257379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB101","featured_media":{"alt":null,"id":23877043126371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884908257379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31472127606883,"product_id":7408386310243,"position":5,"created_at":"2024-05-03T15:16:27+08:00","updated_at":"2024-05-03T15:16:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587","variant_ids":[41884908257379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB101","featured_media":{"alt":null,"id":23877043126371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d1d32a7086136aae1aef01741a2b74a1f24f9f9_bfc719a4-3c09-4d87-b897-3e651affdc0d.webp?v=1714720587"}},"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: "停產" }