$product = {"id":7407837347939,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 願傷疤 有天開出花(加州野火)","handle":"iphone-14-plus-mod-nx-printable-af03","description":null,"published_at":"2024-06-11T16:24:13+08:00","created_at":"2024-05-03T10:59:43+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":41879447896163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31470493630563,"product_id":7407837347939,"position":7,"created_at":"2024-05-03T11:00:02+08:00","updated_at":"2024-05-03T11:00:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202","variant_ids":[41879447896163]},"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-AF03","featured_media":{"alt":null,"id":23875397451875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce7c060e0308ec95816482180670c6114dbd5fd_7afde809-c4a7-46b5-86fe-6bf3ccffa843.webp?v=1714705186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6bfe82bc2466e8398e30b7ebd119381d15e8010_8e545f7e-314c-40c3-b230-d40f9d2ec6a0.webp?v=1714705189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f3ce046f0f1e67229dca2b9277581d8c687062_b759f652-9f1e-488f-94f1-45c7df474c97.webp?v=1714705192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e709ade26004b7287b4566483fdc18926f298d90_9a9c010d-2c80-4694-860d-496d15f105a3.webp?v=1714705194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0123f8ba95da03183029267c716cba273b2caecf_342bf062-9d80-4573-95a8-fa26ce5e50ff.webp?v=1714705197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58543a4c4f31fed2523f89ca873712ee176c0e7f_a77dfed9-e64f-4a5f-b3c7-083ab8538d1c.webp?v=1714705199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b440bce56fa76cd715c598b368b6575064521152_39285532-bf63-4915-88c2-c37897e06607.webp?v=1714705204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbd0bd8bb79ebc67ffba7ff1e070f4f73215eea_73df1dcc-6716-4ef0-a962-323dc52a0863.webp?v=1714705207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c1a633a13d7df8b65105afb7dc276b1a59bad73_0f36b7ed-fe4f-4add-84db-d64330339de8.webp?v=1714705210"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce7c060e0308ec95816482180670c6114dbd5fd_7afde809-c4a7-46b5-86fe-6bf3ccffa843.webp?v=1714705186","options":["color"],"media":[{"alt":null,"id":23875394535523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce7c060e0308ec95816482180670c6114dbd5fd_7afde809-c4a7-46b5-86fe-6bf3ccffa843.webp?v=1714705186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce7c060e0308ec95816482180670c6114dbd5fd_7afde809-c4a7-46b5-86fe-6bf3ccffa843.webp?v=1714705186","width":2000},{"alt":null,"id":23875395027043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6bfe82bc2466e8398e30b7ebd119381d15e8010_8e545f7e-314c-40c3-b230-d40f9d2ec6a0.webp?v=1714705189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6bfe82bc2466e8398e30b7ebd119381d15e8010_8e545f7e-314c-40c3-b230-d40f9d2ec6a0.webp?v=1714705189","width":2000},{"alt":null,"id":23875395551331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f3ce046f0f1e67229dca2b9277581d8c687062_b759f652-9f1e-488f-94f1-45c7df474c97.webp?v=1714705192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f3ce046f0f1e67229dca2b9277581d8c687062_b759f652-9f1e-488f-94f1-45c7df474c97.webp?v=1714705192","width":2000},{"alt":null,"id":23875395846243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e709ade26004b7287b4566483fdc18926f298d90_9a9c010d-2c80-4694-860d-496d15f105a3.webp?v=1714705194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e709ade26004b7287b4566483fdc18926f298d90_9a9c010d-2c80-4694-860d-496d15f105a3.webp?v=1714705194","width":2000},{"alt":null,"id":23875396468835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0123f8ba95da03183029267c716cba273b2caecf_342bf062-9d80-4573-95a8-fa26ce5e50ff.webp?v=1714705197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0123f8ba95da03183029267c716cba273b2caecf_342bf062-9d80-4573-95a8-fa26ce5e50ff.webp?v=1714705197","width":2000},{"alt":null,"id":23875396796515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58543a4c4f31fed2523f89ca873712ee176c0e7f_a77dfed9-e64f-4a5f-b3c7-083ab8538d1c.webp?v=1714705199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58543a4c4f31fed2523f89ca873712ee176c0e7f_a77dfed9-e64f-4a5f-b3c7-083ab8538d1c.webp?v=1714705199","width":2000},{"alt":null,"id":23875397451875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202","width":2000},{"alt":null,"id":23875397943395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b440bce56fa76cd715c598b368b6575064521152_39285532-bf63-4915-88c2-c37897e06607.webp?v=1714705204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b440bce56fa76cd715c598b368b6575064521152_39285532-bf63-4915-88c2-c37897e06607.webp?v=1714705204","width":2000},{"alt":null,"id":23875398598755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbd0bd8bb79ebc67ffba7ff1e070f4f73215eea_73df1dcc-6716-4ef0-a962-323dc52a0863.webp?v=1714705207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbd0bd8bb79ebc67ffba7ff1e070f4f73215eea_73df1dcc-6716-4ef0-a962-323dc52a0863.webp?v=1714705207","width":2000},{"alt":null,"id":23875399057507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c1a633a13d7df8b65105afb7dc276b1a59bad73_0f36b7ed-fe4f-4add-84db-d64330339de8.webp?v=1714705210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c1a633a13d7df8b65105afb7dc276b1a59bad73_0f36b7ed-fe4f-4add-84db-d64330339de8.webp?v=1714705210","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879447896163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31470493630563,"product_id":7407837347939,"position":7,"created_at":"2024-05-03T11:00:02+08:00","updated_at":"2024-05-03T11:00:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202","variant_ids":[41879447896163]},"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-AF03","featured_media":{"alt":null,"id":23875397451875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879447896163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31470493630563,"product_id":7407837347939,"position":7,"created_at":"2024-05-03T11:00:02+08:00","updated_at":"2024-05-03T11:00:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202","variant_ids":[41879447896163]},"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-AF03","featured_media":{"alt":null,"id":23875397451875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8945ea47787925aa50414d0679e44dfb63de4c79_2142862f-7918-4236-a524-83cc0690536a.webp?v=1714705202"}},"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: "停產" }