$product = {"id":7415892246627,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-xs-max-mod-nx-printable-ae06","description":null,"published_at":"2024-06-11T16:47:13+08:00","created_at":"2024-05-06T12:19:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone XS Max","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-chi-po-lin-series","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":41915259486307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31490670624867,"product_id":7415892246627,"position":1,"created_at":"2024-05-06T12:19:41+08:00","updated_at":"2024-05-06T12:19:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181","variant_ids":[41915259486307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(明信片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE06","featured_media":{"alt":null,"id":23896077303907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92a6794371a2e10972b7517cfc4a5a1b8c6cbb6b_50af02e8-62c7-4df3-a0ee-cce70bb54193.webp?v=1714969183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42f9a66873c02f22f6a8706c8babc17a59af47_4404298a-3768-4254-8c04-6fdfb20ef17a.webp?v=1714969186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54b79dd6407104b942bd45f5544ff06ca52d1e3_5c4fa613-2a10-4278-ae87-68483bb392b4.webp?v=1714969189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3afb92c33b81f73e176c83da935ac3d48e71d082_ff9944ba-d8d4-4f6e-9a0e-22462e28b2ad.webp?v=1714969191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e10406f9c481e9b7e1a490baea259ef68a3486_c5c8dd95-b350-41e3-b021-591c6438dbd3.webp?v=1714969195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7c8f49e5acb55f3f2ad2efadea0290f1b65abc9_c6061e26-aa2b-4803-8ed5-fe1d37278eb3.webp?v=1714969198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bd63467b5e96b9cec0f6cd7507f79d16ca13ae7_c95e448f-9ee6-4f72-a185-a15196edbfe9.webp?v=1714969200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256889216a341b21a375241fc31d13fbc56e84aa_3d42786d-20c9-4da2-a798-078560510f88.webp?v=1714969203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36db51ce061137495d0a97c7b270619ddbcee5cb_6f8c70fd-cd64-40b2-9e57-93f0be70ce5e.webp?v=1714969205"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181","options":["color"],"media":[{"alt":null,"id":23896077303907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181","width":2000},{"alt":null,"id":23896077762659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92a6794371a2e10972b7517cfc4a5a1b8c6cbb6b_50af02e8-62c7-4df3-a0ee-cce70bb54193.webp?v=1714969183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92a6794371a2e10972b7517cfc4a5a1b8c6cbb6b_50af02e8-62c7-4df3-a0ee-cce70bb54193.webp?v=1714969183","width":2000},{"alt":null,"id":23896078188643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42f9a66873c02f22f6a8706c8babc17a59af47_4404298a-3768-4254-8c04-6fdfb20ef17a.webp?v=1714969186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd42f9a66873c02f22f6a8706c8babc17a59af47_4404298a-3768-4254-8c04-6fdfb20ef17a.webp?v=1714969186","width":2000},{"alt":null,"id":23896078680163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54b79dd6407104b942bd45f5544ff06ca52d1e3_5c4fa613-2a10-4278-ae87-68483bb392b4.webp?v=1714969189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54b79dd6407104b942bd45f5544ff06ca52d1e3_5c4fa613-2a10-4278-ae87-68483bb392b4.webp?v=1714969189","width":2000},{"alt":null,"id":23896079532131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3afb92c33b81f73e176c83da935ac3d48e71d082_ff9944ba-d8d4-4f6e-9a0e-22462e28b2ad.webp?v=1714969191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3afb92c33b81f73e176c83da935ac3d48e71d082_ff9944ba-d8d4-4f6e-9a0e-22462e28b2ad.webp?v=1714969191","width":2000},{"alt":null,"id":23896080154723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e10406f9c481e9b7e1a490baea259ef68a3486_c5c8dd95-b350-41e3-b021-591c6438dbd3.webp?v=1714969195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e10406f9c481e9b7e1a490baea259ef68a3486_c5c8dd95-b350-41e3-b021-591c6438dbd3.webp?v=1714969195","width":2000},{"alt":null,"id":23896080711779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7c8f49e5acb55f3f2ad2efadea0290f1b65abc9_c6061e26-aa2b-4803-8ed5-fe1d37278eb3.webp?v=1714969198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7c8f49e5acb55f3f2ad2efadea0290f1b65abc9_c6061e26-aa2b-4803-8ed5-fe1d37278eb3.webp?v=1714969198","width":2000},{"alt":null,"id":23896081137763,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bd63467b5e96b9cec0f6cd7507f79d16ca13ae7_c95e448f-9ee6-4f72-a185-a15196edbfe9.webp?v=1714969200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bd63467b5e96b9cec0f6cd7507f79d16ca13ae7_c95e448f-9ee6-4f72-a185-a15196edbfe9.webp?v=1714969200","width":2000},{"alt":null,"id":23896081662051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256889216a341b21a375241fc31d13fbc56e84aa_3d42786d-20c9-4da2-a798-078560510f88.webp?v=1714969203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256889216a341b21a375241fc31d13fbc56e84aa_3d42786d-20c9-4da2-a798-078560510f88.webp?v=1714969203","width":2000},{"alt":null,"id":23896082055267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36db51ce061137495d0a97c7b270619ddbcee5cb_6f8c70fd-cd64-40b2-9e57-93f0be70ce5e.webp?v=1714969205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36db51ce061137495d0a97c7b270619ddbcee5cb_6f8c70fd-cd64-40b2-9e57-93f0be70ce5e.webp?v=1714969205","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915259486307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31490670624867,"product_id":7415892246627,"position":1,"created_at":"2024-05-06T12:19:41+08:00","updated_at":"2024-05-06T12:19:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181","variant_ids":[41915259486307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(明信片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE06","featured_media":{"alt":null,"id":23896077303907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915259486307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31490670624867,"product_id":7415892246627,"position":1,"created_at":"2024-05-06T12:19:41+08:00","updated_at":"2024-05-06T12:19:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181","variant_ids":[41915259486307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(明信片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE06","featured_media":{"alt":null,"id":23896077303907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98f750e270aa7de4dbfd07ae7bdab74c2bc26e2_dd1746b0-0e18-4c94-bf67-37b7e7db1056.webp?v=1714969181"}},"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: "停產" }