$product = {"id":7407931326563,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 願傷疤 有天開出花(亞馬遜雨林)","handle":"iphone-14-plus-mod-nx-printable-af01","description":null,"published_at":"2024-06-11T16:26:53+08:00","created_at":"2024-05-03T11:18:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41880691867747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470733262947,"product_id":7407931326563,"position":9,"created_at":"2024-05-03T11:18:42+08:00","updated_at":"2024-05-03T11:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322","variant_ids":[41880691867747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23875637575779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870d15cf1e712cf19ea7f90ab6b5273ca0c4060d_91afdfeb-62aa-413e-b93a-162485dab290.webp?v=1714706303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7b787d4a11a86f5294d9d2b08766c1ab79d8da3_04b8f074-9f57-42f0-99bb-32f6f8cd2479.webp?v=1714706305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfcaed9ac5adad7bab80cfc52e24db62f0c487_24969ea1-e2ac-4595-91a8-a33fad599260.webp?v=1714706307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5385f1cb7d65293ec096ed2b21c2b0f4fb8cd65f_216b463d-5ffc-458c-9a2d-9d35d7a39f01.webp?v=1714706310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5963f42ad9f8e290420c7d7fb322599ca4c29441_b95af3cf-a91a-4baf-bfdc-e6cc238061a6.webp?v=1714706312","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f44e0899f0a5b7cd295024d00f888ee79f6c975_2cf85151-47b4-46a7-ac19-df89f1bd294f.webp?v=1714706315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a4735246409f27276bdbe3e97bc819fee46ab39_cdf41343-ce2d-40f8-b912-d6058c5f5ea2.webp?v=1714706317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a3174018d15e7544a0f193ebc8e275741b7906_19882032-0ab8-416e-bf51-d014ec8aa1fc.webp?v=1714706319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deaddf163d195bb5ae2826cedf0f6b72311998a9_318a4fe1-93ab-4df9-8841-d0ba52609e7e.webp?v=1714706324"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870d15cf1e712cf19ea7f90ab6b5273ca0c4060d_91afdfeb-62aa-413e-b93a-162485dab290.webp?v=1714706303","options":["color"],"media":[{"alt":null,"id":23875633741923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870d15cf1e712cf19ea7f90ab6b5273ca0c4060d_91afdfeb-62aa-413e-b93a-162485dab290.webp?v=1714706303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870d15cf1e712cf19ea7f90ab6b5273ca0c4060d_91afdfeb-62aa-413e-b93a-162485dab290.webp?v=1714706303","width":2000},{"alt":null,"id":23875634233443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7b787d4a11a86f5294d9d2b08766c1ab79d8da3_04b8f074-9f57-42f0-99bb-32f6f8cd2479.webp?v=1714706305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7b787d4a11a86f5294d9d2b08766c1ab79d8da3_04b8f074-9f57-42f0-99bb-32f6f8cd2479.webp?v=1714706305","width":2000},{"alt":null,"id":23875634757731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfcaed9ac5adad7bab80cfc52e24db62f0c487_24969ea1-e2ac-4595-91a8-a33fad599260.webp?v=1714706307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfcaed9ac5adad7bab80cfc52e24db62f0c487_24969ea1-e2ac-4595-91a8-a33fad599260.webp?v=1714706307","width":2000},{"alt":null,"id":23875635118179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5385f1cb7d65293ec096ed2b21c2b0f4fb8cd65f_216b463d-5ffc-458c-9a2d-9d35d7a39f01.webp?v=1714706310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5385f1cb7d65293ec096ed2b21c2b0f4fb8cd65f_216b463d-5ffc-458c-9a2d-9d35d7a39f01.webp?v=1714706310","width":2000},{"alt":null,"id":23875635740771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5963f42ad9f8e290420c7d7fb322599ca4c29441_b95af3cf-a91a-4baf-bfdc-e6cc238061a6.webp?v=1714706312"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5963f42ad9f8e290420c7d7fb322599ca4c29441_b95af3cf-a91a-4baf-bfdc-e6cc238061a6.webp?v=1714706312","width":2000},{"alt":null,"id":23875636101219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f44e0899f0a5b7cd295024d00f888ee79f6c975_2cf85151-47b4-46a7-ac19-df89f1bd294f.webp?v=1714706315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f44e0899f0a5b7cd295024d00f888ee79f6c975_2cf85151-47b4-46a7-ac19-df89f1bd294f.webp?v=1714706315","width":2000},{"alt":null,"id":23875636527203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a4735246409f27276bdbe3e97bc819fee46ab39_cdf41343-ce2d-40f8-b912-d6058c5f5ea2.webp?v=1714706317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a4735246409f27276bdbe3e97bc819fee46ab39_cdf41343-ce2d-40f8-b912-d6058c5f5ea2.webp?v=1714706317","width":2000},{"alt":null,"id":23875637051491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a3174018d15e7544a0f193ebc8e275741b7906_19882032-0ab8-416e-bf51-d014ec8aa1fc.webp?v=1714706319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a3174018d15e7544a0f193ebc8e275741b7906_19882032-0ab8-416e-bf51-d014ec8aa1fc.webp?v=1714706319","width":2000},{"alt":null,"id":23875637575779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322","width":2000},{"alt":null,"id":23875637968995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deaddf163d195bb5ae2826cedf0f6b72311998a9_318a4fe1-93ab-4df9-8841-d0ba52609e7e.webp?v=1714706324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deaddf163d195bb5ae2826cedf0f6b72311998a9_318a4fe1-93ab-4df9-8841-d0ba52609e7e.webp?v=1714706324","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880691867747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470733262947,"product_id":7407931326563,"position":9,"created_at":"2024-05-03T11:18:42+08:00","updated_at":"2024-05-03T11:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322","variant_ids":[41880691867747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23875637575779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880691867747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470733262947,"product_id":7407931326563,"position":9,"created_at":"2024-05-03T11:18:42+08:00","updated_at":"2024-05-03T11:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322","variant_ids":[41880691867747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23875637575779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802d3ccab55b74a4c962ff3a0add131c82b89f83_07713639-e784-427e-a081-69a1c0876530.webp?v=1714706322"}},"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: "停產" }