$product = {"id":7408547201123,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白","handle":"iphone-12-mini-mod-nx-printable-pb10","description":null,"published_at":"2024-06-11T16:40:20+08:00","created_at":"2024-05-03T15:48:04+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":41886731436131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472556081251,"product_id":7408547201123,"position":1,"created_at":"2024-05-03T15:48:07+08:00","updated_at":"2024-05-03T15:48:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487","variant_ids":[41886731436131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23877473468515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2dfa475176ce14d38a4d3f57079b6a8f242d3e_71033c39-0f24-4856-9972-a0980908ad35.webp?v=1714722489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237a2e8f75455fe3728a176ec16db83f9659b08d_d8c0ef4b-4123-4536-b495-1185e0e14efa.webp?v=1714722492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0433d60fe97f8e2a61302232c600e746cd2bfed2_2177894c-7e05-4b12-b897-e2651cbbd7ef.webp?v=1714722494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc7cfba239b9f07061b01af9f24f9183be4fa030_cf0b6e43-6cc2-4918-9636-b2f7cfff5f68.webp?v=1714722496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c5cd41287b6bbacd74b4a1068a191b816f663bb_9dd66479-adbb-4f47-a90a-943fe91e7a03.webp?v=1714722498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82df28dbca103bd8b97ce3ee8df4d1b5999a2b3a_95c02d38-f554-4ee0-bdd8-a6dda6749f98.webp?v=1714722501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747f9867521669eef832d76ec33e22652256e831_5fc3eb15-b6e4-4f4a-a968-2334d1ff0b05.webp?v=1714722503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e454c04d9bed42f2b22fdba014c3d1ae007ade_74394566-218f-4c8b-be0e-ca1cd38530f6.webp?v=1714722505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40a95ccb763de4e9afe1e503a6f8694adc00e7b0_cb06c2a4-288c-4bf3-bb98-ca802e437a0a.webp?v=1714722508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5deca815b768684f28d41b51207e3c453b99b613_352ce48c-76f9-452c-ab50-75ceb1383250.webp?v=1714722510"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487","options":["color"],"media":[{"alt":null,"id":23877473468515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487","width":2000},{"alt":null,"id":23877473763427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2dfa475176ce14d38a4d3f57079b6a8f242d3e_71033c39-0f24-4856-9972-a0980908ad35.webp?v=1714722489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2dfa475176ce14d38a4d3f57079b6a8f242d3e_71033c39-0f24-4856-9972-a0980908ad35.webp?v=1714722489","width":2000},{"alt":null,"id":23877474320483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237a2e8f75455fe3728a176ec16db83f9659b08d_d8c0ef4b-4123-4536-b495-1185e0e14efa.webp?v=1714722492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237a2e8f75455fe3728a176ec16db83f9659b08d_d8c0ef4b-4123-4536-b495-1185e0e14efa.webp?v=1714722492","width":2000},{"alt":null,"id":23877474713699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0433d60fe97f8e2a61302232c600e746cd2bfed2_2177894c-7e05-4b12-b897-e2651cbbd7ef.webp?v=1714722494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0433d60fe97f8e2a61302232c600e746cd2bfed2_2177894c-7e05-4b12-b897-e2651cbbd7ef.webp?v=1714722494","width":2000},{"alt":null,"id":23877475172451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc7cfba239b9f07061b01af9f24f9183be4fa030_cf0b6e43-6cc2-4918-9636-b2f7cfff5f68.webp?v=1714722496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc7cfba239b9f07061b01af9f24f9183be4fa030_cf0b6e43-6cc2-4918-9636-b2f7cfff5f68.webp?v=1714722496","width":2000},{"alt":null,"id":23877475729507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c5cd41287b6bbacd74b4a1068a191b816f663bb_9dd66479-adbb-4f47-a90a-943fe91e7a03.webp?v=1714722498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c5cd41287b6bbacd74b4a1068a191b816f663bb_9dd66479-adbb-4f47-a90a-943fe91e7a03.webp?v=1714722498","width":2000},{"alt":null,"id":23877476122723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82df28dbca103bd8b97ce3ee8df4d1b5999a2b3a_95c02d38-f554-4ee0-bdd8-a6dda6749f98.webp?v=1714722501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82df28dbca103bd8b97ce3ee8df4d1b5999a2b3a_95c02d38-f554-4ee0-bdd8-a6dda6749f98.webp?v=1714722501","width":2000},{"alt":null,"id":23877476647011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747f9867521669eef832d76ec33e22652256e831_5fc3eb15-b6e4-4f4a-a968-2334d1ff0b05.webp?v=1714722503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747f9867521669eef832d76ec33e22652256e831_5fc3eb15-b6e4-4f4a-a968-2334d1ff0b05.webp?v=1714722503","width":2000},{"alt":null,"id":23877477072995,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e454c04d9bed42f2b22fdba014c3d1ae007ade_74394566-218f-4c8b-be0e-ca1cd38530f6.webp?v=1714722505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e454c04d9bed42f2b22fdba014c3d1ae007ade_74394566-218f-4c8b-be0e-ca1cd38530f6.webp?v=1714722505","width":2000},{"alt":null,"id":23877477531747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40a95ccb763de4e9afe1e503a6f8694adc00e7b0_cb06c2a4-288c-4bf3-bb98-ca802e437a0a.webp?v=1714722508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40a95ccb763de4e9afe1e503a6f8694adc00e7b0_cb06c2a4-288c-4bf3-bb98-ca802e437a0a.webp?v=1714722508","width":2000},{"alt":null,"id":23877478023267,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5deca815b768684f28d41b51207e3c453b99b613_352ce48c-76f9-452c-ab50-75ceb1383250.webp?v=1714722510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5deca815b768684f28d41b51207e3c453b99b613_352ce48c-76f9-452c-ab50-75ceb1383250.webp?v=1714722510","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886731436131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472556081251,"product_id":7408547201123,"position":1,"created_at":"2024-05-03T15:48:07+08:00","updated_at":"2024-05-03T15:48:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487","variant_ids":[41886731436131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23877473468515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886731436131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472556081251,"product_id":7408547201123,"position":1,"created_at":"2024-05-03T15:48:07+08:00","updated_at":"2024-05-03T15:48:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487","variant_ids":[41886731436131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23877473468515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e884e0054b99f371d473d58ca11f49650969c84_b98dcd1f-f322-4da2-a16c-f5e3f26b9980.webp?v=1714722487"}},"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: "停產" }