$product = {"id":7408543498339,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白","handle":"iphone-12-mini-mod-nx-printable-pb14","description":null,"published_at":"2024-06-11T16:40:13+08:00","created_at":"2024-05-03T15:47:22+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":41886691295331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31472549888099,"product_id":7408543498339,"position":7,"created_at":"2024-05-03T15:47:38+08:00","updated_at":"2024-05-03T15:47:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458","variant_ids":[41886691295331]},"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-PB14","featured_media":{"alt":null,"id":23877467209827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4c7bacc176491179b2126da3e6bdc7ed7e701f_69539a0e-0060-44f4-9a3f-f4967d11172a.webp?v=1714722444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747ac749debd70cdf8fe2b27d6ca1415b878f97c_8abd1566-e2c5-465f-b1d7-bae13d798223.webp?v=1714722447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70dcdc8b5643925373dc7942b8ffcc1ddd847a81_0644efad-f0bb-401b-9cca-f2f8608f86b2.webp?v=1714722449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc1448a52489bf0f8e8c8fe513fd98fce7802c8_487812ca-6512-478d-8716-536167d6f8dc.webp?v=1714722451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7373d51f23b6a8dedd449069bec7ee3df29cd4_a4a7e235-3333-46ea-b1c2-9583ee701069.webp?v=1714722454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87eea4045e5fced09de66973e1005efe58a4a6f2_64cea5ce-6a36-485e-bdf6-3503acea0ec2.webp?v=1714722456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019036b513750cb492e81bbbaa2db2822862e22b_fc5ccec0-8094-4dc1-9dd8-a208b2ea7939.webp?v=1714722461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94243910bae19e41965ee662dbbf25ded4180510_ea12267a-e31f-4ec8-96e3-e288ce1d70ba.webp?v=1714722463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1f6c21add2c9974504cab85274a5369ef4cbe3_d7002e53-d3be-463b-9a01-e598995a8d92.webp?v=1714722466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61ff30c123862113a53bd003bade7cb73e2c5838_f89f95cf-5128-4429-8c31-79b3dc311de5.webp?v=1714722468"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4c7bacc176491179b2126da3e6bdc7ed7e701f_69539a0e-0060-44f4-9a3f-f4967d11172a.webp?v=1714722444","options":["color"],"media":[{"alt":null,"id":23877464227939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4c7bacc176491179b2126da3e6bdc7ed7e701f_69539a0e-0060-44f4-9a3f-f4967d11172a.webp?v=1714722444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4c7bacc176491179b2126da3e6bdc7ed7e701f_69539a0e-0060-44f4-9a3f-f4967d11172a.webp?v=1714722444","width":2000},{"alt":null,"id":23877464883299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747ac749debd70cdf8fe2b27d6ca1415b878f97c_8abd1566-e2c5-465f-b1d7-bae13d798223.webp?v=1714722447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747ac749debd70cdf8fe2b27d6ca1415b878f97c_8abd1566-e2c5-465f-b1d7-bae13d798223.webp?v=1714722447","width":2000},{"alt":null,"id":23877465407587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70dcdc8b5643925373dc7942b8ffcc1ddd847a81_0644efad-f0bb-401b-9cca-f2f8608f86b2.webp?v=1714722449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70dcdc8b5643925373dc7942b8ffcc1ddd847a81_0644efad-f0bb-401b-9cca-f2f8608f86b2.webp?v=1714722449","width":2000},{"alt":null,"id":23877465899107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc1448a52489bf0f8e8c8fe513fd98fce7802c8_487812ca-6512-478d-8716-536167d6f8dc.webp?v=1714722451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc1448a52489bf0f8e8c8fe513fd98fce7802c8_487812ca-6512-478d-8716-536167d6f8dc.webp?v=1714722451","width":2000},{"alt":null,"id":23877466390627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7373d51f23b6a8dedd449069bec7ee3df29cd4_a4a7e235-3333-46ea-b1c2-9583ee701069.webp?v=1714722454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7373d51f23b6a8dedd449069bec7ee3df29cd4_a4a7e235-3333-46ea-b1c2-9583ee701069.webp?v=1714722454","width":2000},{"alt":null,"id":23877466685539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87eea4045e5fced09de66973e1005efe58a4a6f2_64cea5ce-6a36-485e-bdf6-3503acea0ec2.webp?v=1714722456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87eea4045e5fced09de66973e1005efe58a4a6f2_64cea5ce-6a36-485e-bdf6-3503acea0ec2.webp?v=1714722456","width":2000},{"alt":null,"id":23877467209827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458","width":2000},{"alt":null,"id":23877467570275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019036b513750cb492e81bbbaa2db2822862e22b_fc5ccec0-8094-4dc1-9dd8-a208b2ea7939.webp?v=1714722461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019036b513750cb492e81bbbaa2db2822862e22b_fc5ccec0-8094-4dc1-9dd8-a208b2ea7939.webp?v=1714722461","width":2000},{"alt":null,"id":23877468061795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94243910bae19e41965ee662dbbf25ded4180510_ea12267a-e31f-4ec8-96e3-e288ce1d70ba.webp?v=1714722463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94243910bae19e41965ee662dbbf25ded4180510_ea12267a-e31f-4ec8-96e3-e288ce1d70ba.webp?v=1714722463","width":2000},{"alt":null,"id":23877468618851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1f6c21add2c9974504cab85274a5369ef4cbe3_d7002e53-d3be-463b-9a01-e598995a8d92.webp?v=1714722466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1f6c21add2c9974504cab85274a5369ef4cbe3_d7002e53-d3be-463b-9a01-e598995a8d92.webp?v=1714722466","width":2000},{"alt":null,"id":23877469143139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61ff30c123862113a53bd003bade7cb73e2c5838_f89f95cf-5128-4429-8c31-79b3dc311de5.webp?v=1714722468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61ff30c123862113a53bd003bade7cb73e2c5838_f89f95cf-5128-4429-8c31-79b3dc311de5.webp?v=1714722468","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886691295331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31472549888099,"product_id":7408543498339,"position":7,"created_at":"2024-05-03T15:47:38+08:00","updated_at":"2024-05-03T15:47:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458","variant_ids":[41886691295331]},"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-PB14","featured_media":{"alt":null,"id":23877467209827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886691295331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31472549888099,"product_id":7408543498339,"position":7,"created_at":"2024-05-03T15:47:38+08:00","updated_at":"2024-05-03T15:47:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458","variant_ids":[41886691295331]},"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-PB14","featured_media":{"alt":null,"id":23877467209827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e3b2bd294b1f68655d78047d1c8efa12884505_6d32ce9c-99dc-4594-bf54-327c24d7bcff.webp?v=1714722458"}},"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: "停產" }