$product = {"id":7416354570339,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - J個好","handle":"iphone-8-mod-nx-printable-iv08","description":null,"published_at":"2024-06-11T16:56:46+08:00","created_at":"2024-05-06T14:40:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41918832607331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491924754531,"product_id":7416354570339,"position":10,"created_at":"2024-05-06T14:41:08+08:00","updated_at":"2024-05-06T14:41:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668","variant_ids":[41918832607331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - J個好 - 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":"NPB0105424-IV08","featured_media":{"alt":null,"id":23897337757795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76307cf940a41f76618e27ac1227b57ab1002c12_df15b1da-1dd8-4f0f-8bfd-1ade1c7ad629.webp?v=1714977645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3db7c3c5f7de0c676399e70975f0d02959e2c64_da6bf663-2e1d-43d9-b55b-a0307426a308.webp?v=1714977647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a962391f9dd08cc1f9d4c6e58047e8e1917a0a86_56ca6357-910c-439d-8d1f-2fe1131a6d8e.webp?v=1714977650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c008e1e780902893dd155e4aeba857e934061369_56746082-5002-49a1-adbb-568664152325.webp?v=1714977653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c113fb76178f508b2cd96e3c10a36294118ec57_52839118-5a76-4399-aa5a-edba8af5db70.webp?v=1714977656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/117ac407c2777f7c28f22d7b7f2f98aa68f567b4_0622aa08-bd52-4b58-bca5-f59378a3484a.webp?v=1714977658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a616d595027c1de4827dc655e64ad18010179b6_d3f9cd00-1c4a-4976-94c9-9f62e5ae2b0e.webp?v=1714977661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63772fb28806915ca6d5d8a100c276bf69203be4_292d3ce5-1e5d-4da8-92bb-459169a86aa9.webp?v=1714977663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5815a5c9e68ef97dd63ed483347f5b55256670_51eef89f-5c6d-468f-aed1-f85fa8bc479d.webp?v=1714977666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76307cf940a41f76618e27ac1227b57ab1002c12_df15b1da-1dd8-4f0f-8bfd-1ade1c7ad629.webp?v=1714977645","options":["color"],"media":[{"alt":null,"id":23897333399651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76307cf940a41f76618e27ac1227b57ab1002c12_df15b1da-1dd8-4f0f-8bfd-1ade1c7ad629.webp?v=1714977645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76307cf940a41f76618e27ac1227b57ab1002c12_df15b1da-1dd8-4f0f-8bfd-1ade1c7ad629.webp?v=1714977645","width":2000},{"alt":null,"id":23897333825635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3db7c3c5f7de0c676399e70975f0d02959e2c64_da6bf663-2e1d-43d9-b55b-a0307426a308.webp?v=1714977647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3db7c3c5f7de0c676399e70975f0d02959e2c64_da6bf663-2e1d-43d9-b55b-a0307426a308.webp?v=1714977647","width":2000},{"alt":null,"id":23897334153315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a962391f9dd08cc1f9d4c6e58047e8e1917a0a86_56ca6357-910c-439d-8d1f-2fe1131a6d8e.webp?v=1714977650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a962391f9dd08cc1f9d4c6e58047e8e1917a0a86_56ca6357-910c-439d-8d1f-2fe1131a6d8e.webp?v=1714977650","width":2000},{"alt":null,"id":23897334874211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c008e1e780902893dd155e4aeba857e934061369_56746082-5002-49a1-adbb-568664152325.webp?v=1714977653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c008e1e780902893dd155e4aeba857e934061369_56746082-5002-49a1-adbb-568664152325.webp?v=1714977653","width":2000},{"alt":null,"id":23897335365731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c113fb76178f508b2cd96e3c10a36294118ec57_52839118-5a76-4399-aa5a-edba8af5db70.webp?v=1714977656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c113fb76178f508b2cd96e3c10a36294118ec57_52839118-5a76-4399-aa5a-edba8af5db70.webp?v=1714977656","width":2000},{"alt":null,"id":23897335922787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/117ac407c2777f7c28f22d7b7f2f98aa68f567b4_0622aa08-bd52-4b58-bca5-f59378a3484a.webp?v=1714977658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/117ac407c2777f7c28f22d7b7f2f98aa68f567b4_0622aa08-bd52-4b58-bca5-f59378a3484a.webp?v=1714977658","width":2000},{"alt":null,"id":23897336381539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a616d595027c1de4827dc655e64ad18010179b6_d3f9cd00-1c4a-4976-94c9-9f62e5ae2b0e.webp?v=1714977661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a616d595027c1de4827dc655e64ad18010179b6_d3f9cd00-1c4a-4976-94c9-9f62e5ae2b0e.webp?v=1714977661","width":2000},{"alt":null,"id":23897336905827,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63772fb28806915ca6d5d8a100c276bf69203be4_292d3ce5-1e5d-4da8-92bb-459169a86aa9.webp?v=1714977663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63772fb28806915ca6d5d8a100c276bf69203be4_292d3ce5-1e5d-4da8-92bb-459169a86aa9.webp?v=1714977663","width":2000},{"alt":null,"id":23897337364579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5815a5c9e68ef97dd63ed483347f5b55256670_51eef89f-5c6d-468f-aed1-f85fa8bc479d.webp?v=1714977666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5815a5c9e68ef97dd63ed483347f5b55256670_51eef89f-5c6d-468f-aed1-f85fa8bc479d.webp?v=1714977666","width":2000},{"alt":null,"id":23897337757795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918832607331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491924754531,"product_id":7416354570339,"position":10,"created_at":"2024-05-06T14:41:08+08:00","updated_at":"2024-05-06T14:41:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668","variant_ids":[41918832607331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - J個好 - 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":"NPB0105424-IV08","featured_media":{"alt":null,"id":23897337757795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918832607331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491924754531,"product_id":7416354570339,"position":10,"created_at":"2024-05-06T14:41:08+08:00","updated_at":"2024-05-06T14:41:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668","variant_ids":[41918832607331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - J個好 - 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":"NPB0105424-IV08","featured_media":{"alt":null,"id":23897337757795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbbc85dabfdf067a6a86ef2a637015cbbed42b2_b65d6f93-95e3-4810-81b2-4e261dfbaa27.webp?v=1714977668"}},"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: "停產" }