$product = {"id":7407872868451,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-14-plus-mod-nx-printable-pb62","description":null,"published_at":"2024-06-11T16:25:13+08:00","created_at":"2024-05-03T11:06:52+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":41879911759971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470587314275,"product_id":7407872868451,"position":6,"created_at":"2024-05-03T11:07:07+08:00","updated_at":"2024-05-03T11:07:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627","variant_ids":[41879911759971]},"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-PB62","featured_media":{"alt":null,"id":23875491168355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f123c0b72fcc566faf91ced01ac130ca0226aba2_b54e081a-e50a-41d0-8930-e839253e0922.webp?v=1714705614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c626bda81271b02506cf36277379d17121d3a_755b2031-f86b-41b9-921e-c952dbb4e98f.webp?v=1714705617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32693d7627504da22e13f08a6084a81ae7566fb6_21744456-88e0-40c6-ac59-30b580dceb14.webp?v=1714705620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecafb75d380d2dc2daa8eedb8600c9ce236362a5_e871fc55-1c20-4050-8eed-f67c1e0f1b21.webp?v=1714705622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1c41a11fa91c44f1224b9a5de9ce548efb392d6_00fe5b37-1124-4a94-9749-ceaaefc6b760.webp?v=1714705624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941f6debcab18d0d3f9d1bb90d1e95d6836f71b5_9dd924bd-b748-47f1-b023-4a1c248aa5ae.webp?v=1714705629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa1bbc64fea17ea6cb84d3516db0d4be45951bea_a37a1eda-1e50-467f-866a-7d7c963f2998.webp?v=1714705632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4c9995be6466d7a443440b3fef71ef1a50a54d2_4421d38a-6414-45b6-b9d2-c29a6ddb8927.webp?v=1714705635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732439f2c79c436f5586758abb52575ecda8240f_9effef6b-4337-43a3-a265-aadfab0360a8.webp?v=1714705637"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f123c0b72fcc566faf91ced01ac130ca0226aba2_b54e081a-e50a-41d0-8930-e839253e0922.webp?v=1714705614","options":["color"],"media":[{"alt":null,"id":23875488907363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f123c0b72fcc566faf91ced01ac130ca0226aba2_b54e081a-e50a-41d0-8930-e839253e0922.webp?v=1714705614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f123c0b72fcc566faf91ced01ac130ca0226aba2_b54e081a-e50a-41d0-8930-e839253e0922.webp?v=1714705614","width":2000},{"alt":null,"id":23875489366115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c626bda81271b02506cf36277379d17121d3a_755b2031-f86b-41b9-921e-c952dbb4e98f.webp?v=1714705617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c626bda81271b02506cf36277379d17121d3a_755b2031-f86b-41b9-921e-c952dbb4e98f.webp?v=1714705617","width":2000},{"alt":null,"id":23875489890403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32693d7627504da22e13f08a6084a81ae7566fb6_21744456-88e0-40c6-ac59-30b580dceb14.webp?v=1714705620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32693d7627504da22e13f08a6084a81ae7566fb6_21744456-88e0-40c6-ac59-30b580dceb14.webp?v=1714705620","width":2000},{"alt":null,"id":23875490316387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecafb75d380d2dc2daa8eedb8600c9ce236362a5_e871fc55-1c20-4050-8eed-f67c1e0f1b21.webp?v=1714705622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecafb75d380d2dc2daa8eedb8600c9ce236362a5_e871fc55-1c20-4050-8eed-f67c1e0f1b21.webp?v=1714705622","width":2000},{"alt":null,"id":23875490742371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1c41a11fa91c44f1224b9a5de9ce548efb392d6_00fe5b37-1124-4a94-9749-ceaaefc6b760.webp?v=1714705624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1c41a11fa91c44f1224b9a5de9ce548efb392d6_00fe5b37-1124-4a94-9749-ceaaefc6b760.webp?v=1714705624","width":2000},{"alt":null,"id":23875491168355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627","width":2000},{"alt":null,"id":23875491561571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941f6debcab18d0d3f9d1bb90d1e95d6836f71b5_9dd924bd-b748-47f1-b023-4a1c248aa5ae.webp?v=1714705629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941f6debcab18d0d3f9d1bb90d1e95d6836f71b5_9dd924bd-b748-47f1-b023-4a1c248aa5ae.webp?v=1714705629","width":2000},{"alt":null,"id":23875492085859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa1bbc64fea17ea6cb84d3516db0d4be45951bea_a37a1eda-1e50-467f-866a-7d7c963f2998.webp?v=1714705632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa1bbc64fea17ea6cb84d3516db0d4be45951bea_a37a1eda-1e50-467f-866a-7d7c963f2998.webp?v=1714705632","width":2000},{"alt":null,"id":23875492511843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4c9995be6466d7a443440b3fef71ef1a50a54d2_4421d38a-6414-45b6-b9d2-c29a6ddb8927.webp?v=1714705635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4c9995be6466d7a443440b3fef71ef1a50a54d2_4421d38a-6414-45b6-b9d2-c29a6ddb8927.webp?v=1714705635","width":2000},{"alt":null,"id":23875492937827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732439f2c79c436f5586758abb52575ecda8240f_9effef6b-4337-43a3-a265-aadfab0360a8.webp?v=1714705637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732439f2c79c436f5586758abb52575ecda8240f_9effef6b-4337-43a3-a265-aadfab0360a8.webp?v=1714705637","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879911759971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470587314275,"product_id":7407872868451,"position":6,"created_at":"2024-05-03T11:07:07+08:00","updated_at":"2024-05-03T11:07:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627","variant_ids":[41879911759971]},"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-PB62","featured_media":{"alt":null,"id":23875491168355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879911759971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470587314275,"product_id":7407872868451,"position":6,"created_at":"2024-05-03T11:07:07+08:00","updated_at":"2024-05-03T11:07:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627","variant_ids":[41879911759971]},"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-PB62","featured_media":{"alt":null,"id":23875491168355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa063ca077a26e2c9cc397db060e23439c77464_bd821e96-b25d-46e4-af2f-e8125fafabab.webp?v=1714705627"}},"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: "停產" }