$product = {"id":7416343396451,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist","handle":"iphone-8-mod-nx-printable-pb96","description":null,"published_at":"2024-06-11T16:56:27+08:00","created_at":"2024-05-06T14:38:23+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 8","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":41918705205347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31491896606819,"product_id":7416343396451,"position":9,"created_at":"2024-05-06T14:38:45+08:00","updated_at":"2024-05-06T14:38:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526","variant_ids":[41918705205347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"NPB0105424-PB96","featured_media":{"alt":null,"id":23897309446243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7e9f1af30d18da52fab333e55703088ddd52e6_bd1a720a-88dc-4793-a6c8-2d9e1066f370.webp?v=1714977505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9068c85c60f53607ed252c1f3714a8b9fa7c5d_850fe800-0772-491e-b7b0-5f175f791a2c.webp?v=1714977508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcfa73417694b4bddbc42709ed5aefbd1db70da4_e7fb00b4-c22a-4275-bf67-9f59492e114a.webp?v=1714977510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f972601666cf0a4cd2804e9847d08e1c61f167f5_94908da8-a9c6-4fb1-9cd4-22afa720afa2.webp?v=1714977512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af68154be11238dc100db674ff6dd9f17ca2c241_a99c6dce-ceb8-4dfc-a049-790e86b09035.webp?v=1714977515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5ccc32a5027fd36796d9245dc47eff0d04277c_16bca1df-d636-4985-b67d-c8e595f8d646.webp?v=1714977517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e3d7aac22e029fe48ad8b186a1581b2797e5f6_f0b15d3d-7973-4c90-a771-a7b55731875d.webp?v=1714977520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d1f0cdd6fd87b95456148e4f3e2ad7e32fd4eee_a051154d-8cc4-4bad-9317-b9f3f0536948.webp?v=1714977523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3653add844bb86697edc3fafb49ffbb74a9e38cf_03382b54-4bcc-407b-a13c-f07a3601d5c6.webp?v=1714977528"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7e9f1af30d18da52fab333e55703088ddd52e6_bd1a720a-88dc-4793-a6c8-2d9e1066f370.webp?v=1714977505","options":["color"],"media":[{"alt":null,"id":23897305317475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7e9f1af30d18da52fab333e55703088ddd52e6_bd1a720a-88dc-4793-a6c8-2d9e1066f370.webp?v=1714977505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7e9f1af30d18da52fab333e55703088ddd52e6_bd1a720a-88dc-4793-a6c8-2d9e1066f370.webp?v=1714977505","width":2000},{"alt":null,"id":23897305645155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9068c85c60f53607ed252c1f3714a8b9fa7c5d_850fe800-0772-491e-b7b0-5f175f791a2c.webp?v=1714977508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9068c85c60f53607ed252c1f3714a8b9fa7c5d_850fe800-0772-491e-b7b0-5f175f791a2c.webp?v=1714977508","width":2000},{"alt":null,"id":23897306202211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcfa73417694b4bddbc42709ed5aefbd1db70da4_e7fb00b4-c22a-4275-bf67-9f59492e114a.webp?v=1714977510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcfa73417694b4bddbc42709ed5aefbd1db70da4_e7fb00b4-c22a-4275-bf67-9f59492e114a.webp?v=1714977510","width":2000},{"alt":null,"id":23897306628195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f972601666cf0a4cd2804e9847d08e1c61f167f5_94908da8-a9c6-4fb1-9cd4-22afa720afa2.webp?v=1714977512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f972601666cf0a4cd2804e9847d08e1c61f167f5_94908da8-a9c6-4fb1-9cd4-22afa720afa2.webp?v=1714977512","width":2000},{"alt":null,"id":23897307316323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af68154be11238dc100db674ff6dd9f17ca2c241_a99c6dce-ceb8-4dfc-a049-790e86b09035.webp?v=1714977515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af68154be11238dc100db674ff6dd9f17ca2c241_a99c6dce-ceb8-4dfc-a049-790e86b09035.webp?v=1714977515","width":2000},{"alt":null,"id":23897307775075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5ccc32a5027fd36796d9245dc47eff0d04277c_16bca1df-d636-4985-b67d-c8e595f8d646.webp?v=1714977517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5ccc32a5027fd36796d9245dc47eff0d04277c_16bca1df-d636-4985-b67d-c8e595f8d646.webp?v=1714977517","width":2000},{"alt":null,"id":23897308364899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e3d7aac22e029fe48ad8b186a1581b2797e5f6_f0b15d3d-7973-4c90-a771-a7b55731875d.webp?v=1714977520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e3d7aac22e029fe48ad8b186a1581b2797e5f6_f0b15d3d-7973-4c90-a771-a7b55731875d.webp?v=1714977520","width":2000},{"alt":null,"id":23897308921955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d1f0cdd6fd87b95456148e4f3e2ad7e32fd4eee_a051154d-8cc4-4bad-9317-b9f3f0536948.webp?v=1714977523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d1f0cdd6fd87b95456148e4f3e2ad7e32fd4eee_a051154d-8cc4-4bad-9317-b9f3f0536948.webp?v=1714977523","width":2000},{"alt":null,"id":23897309446243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526","width":2000},{"alt":null,"id":23897309708387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3653add844bb86697edc3fafb49ffbb74a9e38cf_03382b54-4bcc-407b-a13c-f07a3601d5c6.webp?v=1714977528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3653add844bb86697edc3fafb49ffbb74a9e38cf_03382b54-4bcc-407b-a13c-f07a3601d5c6.webp?v=1714977528","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918705205347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31491896606819,"product_id":7416343396451,"position":9,"created_at":"2024-05-06T14:38:45+08:00","updated_at":"2024-05-06T14:38:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526","variant_ids":[41918705205347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"NPB0105424-PB96","featured_media":{"alt":null,"id":23897309446243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918705205347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31491896606819,"product_id":7416343396451,"position":9,"created_at":"2024-05-06T14:38:45+08:00","updated_at":"2024-05-06T14:38:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526","variant_ids":[41918705205347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"NPB0105424-PB96","featured_media":{"alt":null,"id":23897309446243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9077012161508d488dd56a5b0386bfae1afd9dd6_1353b8cc-a9f6-4be7-aa9a-7d40d0bc1cc7.webp?v=1714977526"}},"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: "停產" }