$product = {"id":7407819260003,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流","handle":"iphone-14-plus-mod-nx-printable-hq06","description":null,"published_at":"2024-06-11T16:23:42+08:00","created_at":"2024-05-03T10:55:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41879205642339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470448476259,"product_id":7407819260003,"position":10,"created_at":"2024-05-03T10:56:13+08:00","updated_at":"2024-05-03T10:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973","variant_ids":[41879205642339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HQ06","featured_media":{"alt":null,"id":23875351937123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c8715873a5795a6a192e3a1227e59938df02364_6e79d8c3-f4bf-4b52-a3ab-61e86aae3031.webp?v=1714704950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f80126fcab40070a23f1e69a1f4929501a36410_1d5ddd91-a8c7-4b2c-b680-3d4bb34f58ce.webp?v=1714704953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e702d3e7924b379f26b3b452847a2750c3d1426_57261206-7860-497c-8166-435ad1e723f1.webp?v=1714704955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534db963e673743ce6368c7088641ef373b1baab_e7cbaef9-cc88-4d31-a0a5-720098c36a1f.webp?v=1714704958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698f09c8d5cbb3ff9fa1085cb9869b8879db03ad_8e85d6e1-a77a-44ed-b87b-060dc8dbb397.webp?v=1714704960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aef13b69d7091551c65e63476a8f614b391f3a7e_ae99048e-38a3-4af1-91cd-9c507b119c5a.webp?v=1714704963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297a17037abed5d7603aac754933cdafc5046009_3848c2bd-8d9f-4721-a725-3e680d606e28.webp?v=1714704966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb1c598ad8e328121a4e5b3752a22aa5168619d_b5453b5f-2cfe-4a70-987f-6340e85551ac.webp?v=1714704968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac3bd2c598ddc9986fe09cb6e5a6c6c04feb431_01ebb5dd-d8bd-4b7c-9447-fb3ff60610b9.webp?v=1714704971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c8715873a5795a6a192e3a1227e59938df02364_6e79d8c3-f4bf-4b52-a3ab-61e86aae3031.webp?v=1714704950","options":["color"],"media":[{"alt":null,"id":23875346989155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c8715873a5795a6a192e3a1227e59938df02364_6e79d8c3-f4bf-4b52-a3ab-61e86aae3031.webp?v=1714704950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c8715873a5795a6a192e3a1227e59938df02364_6e79d8c3-f4bf-4b52-a3ab-61e86aae3031.webp?v=1714704950","width":2000},{"alt":null,"id":23875347447907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f80126fcab40070a23f1e69a1f4929501a36410_1d5ddd91-a8c7-4b2c-b680-3d4bb34f58ce.webp?v=1714704953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f80126fcab40070a23f1e69a1f4929501a36410_1d5ddd91-a8c7-4b2c-b680-3d4bb34f58ce.webp?v=1714704953","width":2000},{"alt":null,"id":23875348463715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e702d3e7924b379f26b3b452847a2750c3d1426_57261206-7860-497c-8166-435ad1e723f1.webp?v=1714704955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e702d3e7924b379f26b3b452847a2750c3d1426_57261206-7860-497c-8166-435ad1e723f1.webp?v=1714704955","width":2000},{"alt":null,"id":23875348856931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534db963e673743ce6368c7088641ef373b1baab_e7cbaef9-cc88-4d31-a0a5-720098c36a1f.webp?v=1714704958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534db963e673743ce6368c7088641ef373b1baab_e7cbaef9-cc88-4d31-a0a5-720098c36a1f.webp?v=1714704958","width":2000},{"alt":null,"id":23875349315683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698f09c8d5cbb3ff9fa1085cb9869b8879db03ad_8e85d6e1-a77a-44ed-b87b-060dc8dbb397.webp?v=1714704960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698f09c8d5cbb3ff9fa1085cb9869b8879db03ad_8e85d6e1-a77a-44ed-b87b-060dc8dbb397.webp?v=1714704960","width":2000},{"alt":null,"id":23875349774435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aef13b69d7091551c65e63476a8f614b391f3a7e_ae99048e-38a3-4af1-91cd-9c507b119c5a.webp?v=1714704963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aef13b69d7091551c65e63476a8f614b391f3a7e_ae99048e-38a3-4af1-91cd-9c507b119c5a.webp?v=1714704963","width":2000},{"alt":null,"id":23875350397027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297a17037abed5d7603aac754933cdafc5046009_3848c2bd-8d9f-4721-a725-3e680d606e28.webp?v=1714704966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297a17037abed5d7603aac754933cdafc5046009_3848c2bd-8d9f-4721-a725-3e680d606e28.webp?v=1714704966","width":2000},{"alt":null,"id":23875350823011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb1c598ad8e328121a4e5b3752a22aa5168619d_b5453b5f-2cfe-4a70-987f-6340e85551ac.webp?v=1714704968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb1c598ad8e328121a4e5b3752a22aa5168619d_b5453b5f-2cfe-4a70-987f-6340e85551ac.webp?v=1714704968","width":2000},{"alt":null,"id":23875351511139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac3bd2c598ddc9986fe09cb6e5a6c6c04feb431_01ebb5dd-d8bd-4b7c-9447-fb3ff60610b9.webp?v=1714704971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac3bd2c598ddc9986fe09cb6e5a6c6c04feb431_01ebb5dd-d8bd-4b7c-9447-fb3ff60610b9.webp?v=1714704971","width":2000},{"alt":null,"id":23875351937123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879205642339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470448476259,"product_id":7407819260003,"position":10,"created_at":"2024-05-03T10:56:13+08:00","updated_at":"2024-05-03T10:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973","variant_ids":[41879205642339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HQ06","featured_media":{"alt":null,"id":23875351937123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879205642339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470448476259,"product_id":7407819260003,"position":10,"created_at":"2024-05-03T10:56:13+08:00","updated_at":"2024-05-03T10:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973","variant_ids":[41879205642339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HQ06","featured_media":{"alt":null,"id":23875351937123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f32bba8f1c3039d6e4c83a1031d15f8ffc40d5_f9ab4947-f303-4a58-89a9-910874914080.webp?v=1714704973"}},"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: "停產" }