$product = {"id":7407918678115,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(黃石國家公園)","handle":"iphone-14-plus-mod-nx-printable-af12","description":null,"published_at":"2024-06-11T16:26:31+08:00","created_at":"2024-05-03T11:15:47+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":41880526782563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31470701641827,"product_id":7407918678115,"position":10,"created_at":"2024-05-03T11:16:13+08:00","updated_at":"2024-05-03T11:16:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173","variant_ids":[41880526782563]},"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-AF12","featured_media":{"alt":null,"id":23875605758051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6438a992b5e58a22a013d050e098fa75bff6f85_1549a1f9-5cbe-4384-a66f-757dba59aaf6.webp?v=1714706150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb8c4c60342509ca177f4ce47311f0a3830db21f_67726fc4-0d46-4ff0-adfd-10364d42242f.webp?v=1714706152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08db5e6228c09893e7a43cd9bb7948c8fec48b01_3678b2bc-0065-416e-ac8d-16088ec872f2.webp?v=1714706155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318c447d652633feba1a42402a1dfecbab6cc59c_dffc6fc5-a665-436a-af63-97f85db945f3.webp?v=1714706158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1466d564684bef638e54100b413b9da3417d7f6_abe638fb-deb6-4d49-877a-5ee5ea0bf3d2.webp?v=1714706160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c9e80eaf9845f9fe25b9cf2f15d1dd9fa4c69a_33bd5189-5ee3-486c-a5bb-5a2e811f995e.webp?v=1714706163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6361fe1c529259416929bd2fbc913a965857271_7ea2c57a-f0ac-4356-a68b-2235732c7e66.webp?v=1714706165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b28802eaf469c88e4a9e45d4dfe10423f46cbc3_9c448067-0f38-4b86-b75b-07818f4bef80.webp?v=1714706168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730707883cdcffef6968c0dd835fd210fa5d73a0_86042371-40af-48ce-8d7f-0bb52aba4f8a.webp?v=1714706170","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6438a992b5e58a22a013d050e098fa75bff6f85_1549a1f9-5cbe-4384-a66f-757dba59aaf6.webp?v=1714706150","options":["color"],"media":[{"alt":null,"id":23875601367139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6438a992b5e58a22a013d050e098fa75bff6f85_1549a1f9-5cbe-4384-a66f-757dba59aaf6.webp?v=1714706150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6438a992b5e58a22a013d050e098fa75bff6f85_1549a1f9-5cbe-4384-a66f-757dba59aaf6.webp?v=1714706150","width":2000},{"alt":null,"id":23875601924195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb8c4c60342509ca177f4ce47311f0a3830db21f_67726fc4-0d46-4ff0-adfd-10364d42242f.webp?v=1714706152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb8c4c60342509ca177f4ce47311f0a3830db21f_67726fc4-0d46-4ff0-adfd-10364d42242f.webp?v=1714706152","width":2000},{"alt":null,"id":23875602251875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08db5e6228c09893e7a43cd9bb7948c8fec48b01_3678b2bc-0065-416e-ac8d-16088ec872f2.webp?v=1714706155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08db5e6228c09893e7a43cd9bb7948c8fec48b01_3678b2bc-0065-416e-ac8d-16088ec872f2.webp?v=1714706155","width":2000},{"alt":null,"id":23875603038307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318c447d652633feba1a42402a1dfecbab6cc59c_dffc6fc5-a665-436a-af63-97f85db945f3.webp?v=1714706158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318c447d652633feba1a42402a1dfecbab6cc59c_dffc6fc5-a665-436a-af63-97f85db945f3.webp?v=1714706158","width":2000},{"alt":null,"id":23875603267683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1466d564684bef638e54100b413b9da3417d7f6_abe638fb-deb6-4d49-877a-5ee5ea0bf3d2.webp?v=1714706160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1466d564684bef638e54100b413b9da3417d7f6_abe638fb-deb6-4d49-877a-5ee5ea0bf3d2.webp?v=1714706160","width":2000},{"alt":null,"id":23875603890275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c9e80eaf9845f9fe25b9cf2f15d1dd9fa4c69a_33bd5189-5ee3-486c-a5bb-5a2e811f995e.webp?v=1714706163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c9e80eaf9845f9fe25b9cf2f15d1dd9fa4c69a_33bd5189-5ee3-486c-a5bb-5a2e811f995e.webp?v=1714706163","width":2000},{"alt":null,"id":23875604217955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6361fe1c529259416929bd2fbc913a965857271_7ea2c57a-f0ac-4356-a68b-2235732c7e66.webp?v=1714706165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6361fe1c529259416929bd2fbc913a965857271_7ea2c57a-f0ac-4356-a68b-2235732c7e66.webp?v=1714706165","width":2000},{"alt":null,"id":23875604807779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b28802eaf469c88e4a9e45d4dfe10423f46cbc3_9c448067-0f38-4b86-b75b-07818f4bef80.webp?v=1714706168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b28802eaf469c88e4a9e45d4dfe10423f46cbc3_9c448067-0f38-4b86-b75b-07818f4bef80.webp?v=1714706168","width":2000},{"alt":null,"id":23875605233763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730707883cdcffef6968c0dd835fd210fa5d73a0_86042371-40af-48ce-8d7f-0bb52aba4f8a.webp?v=1714706170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730707883cdcffef6968c0dd835fd210fa5d73a0_86042371-40af-48ce-8d7f-0bb52aba4f8a.webp?v=1714706170","width":2000},{"alt":null,"id":23875605758051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880526782563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31470701641827,"product_id":7407918678115,"position":10,"created_at":"2024-05-03T11:16:13+08:00","updated_at":"2024-05-03T11:16:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173","variant_ids":[41880526782563]},"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-AF12","featured_media":{"alt":null,"id":23875605758051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880526782563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31470701641827,"product_id":7407918678115,"position":10,"created_at":"2024-05-03T11:16:13+08:00","updated_at":"2024-05-03T11:16:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173","variant_ids":[41880526782563]},"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-AF12","featured_media":{"alt":null,"id":23875605758051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4dfb71669a305ac42243f494c91aefe3090d1c7_2b09c83c-4a85-4dc9-a479-2947a479c6cc.webp?v=1714706173"}},"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: "停產" }