$product = {"id":7407937781859,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日帽","handle":"iphone-14-plus-mod-nx-printable-iv01","description":null,"published_at":"2024-06-11T16:27:03+08:00","created_at":"2024-05-03T11:19:33+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 14 Plus","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":41880768774243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470748139619,"product_id":7407937781859,"position":2,"created_at":"2024-05-03T11:19:38+08:00","updated_at":"2024-05-03T11:19:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378","variant_ids":[41880768774243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23875652386915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c35877d0442de7c8ddd3a2dbc2e4242a99a453_bfc51ac8-ce0a-4292-a341-59ebbdca7b0b.webp?v=1714706376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aeb2e7a71e903778b6102fadddf1179a87cbb2d_9879abcd-af73-46f3-8fb0-c9552a77ecfa.webp?v=1714706381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cab004f9b14dd385b91c230a42dd6dcc648b174_291b0df6-c051-4060-9c24-1d6e23f8178d.webp?v=1714706383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2793fc0ad63110cc09bcb5020cede1c3032a5734_b8266d3e-6901-47e1-a53b-2a626e393a9b.webp?v=1714706385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0b80cc665808648c5cd6777c1ec7638b57f6c03_eb3735db-33f1-4eae-8fef-d1657d660b5a.webp?v=1714706388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e6355c76673f3a2ff39d910542ba7d120c4ad1_227ac5d1-7430-4fc5-ba91-5797e5610d75.webp?v=1714706390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b056bd40c9d5ea73ef25718f9d424ccaba6fd7_584e7737-1be7-4bb1-a929-c68a11e2c457.webp?v=1714706392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ce3de57ffc2353bda056f19501b545b74b20c_99332dd6-fae3-4981-b56e-5d77a2686c57.webp?v=1714706395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a2ec4c1489836f6e344721b10a3d5765c58c43_2c5b6f16-4284-4bea-8f92-092877302e69.webp?v=1714706397"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c35877d0442de7c8ddd3a2dbc2e4242a99a453_bfc51ac8-ce0a-4292-a341-59ebbdca7b0b.webp?v=1714706376","options":["color"],"media":[{"alt":null,"id":23875651829859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c35877d0442de7c8ddd3a2dbc2e4242a99a453_bfc51ac8-ce0a-4292-a341-59ebbdca7b0b.webp?v=1714706376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81c35877d0442de7c8ddd3a2dbc2e4242a99a453_bfc51ac8-ce0a-4292-a341-59ebbdca7b0b.webp?v=1714706376","width":2000},{"alt":null,"id":23875652386915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378","width":2000},{"alt":null,"id":23875652976739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aeb2e7a71e903778b6102fadddf1179a87cbb2d_9879abcd-af73-46f3-8fb0-c9552a77ecfa.webp?v=1714706381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aeb2e7a71e903778b6102fadddf1179a87cbb2d_9879abcd-af73-46f3-8fb0-c9552a77ecfa.webp?v=1714706381","width":2000},{"alt":null,"id":23875653501027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cab004f9b14dd385b91c230a42dd6dcc648b174_291b0df6-c051-4060-9c24-1d6e23f8178d.webp?v=1714706383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cab004f9b14dd385b91c230a42dd6dcc648b174_291b0df6-c051-4060-9c24-1d6e23f8178d.webp?v=1714706383","width":2000},{"alt":null,"id":23875654156387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2793fc0ad63110cc09bcb5020cede1c3032a5734_b8266d3e-6901-47e1-a53b-2a626e393a9b.webp?v=1714706385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2793fc0ad63110cc09bcb5020cede1c3032a5734_b8266d3e-6901-47e1-a53b-2a626e393a9b.webp?v=1714706385","width":2000},{"alt":null,"id":23875654615139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0b80cc665808648c5cd6777c1ec7638b57f6c03_eb3735db-33f1-4eae-8fef-d1657d660b5a.webp?v=1714706388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0b80cc665808648c5cd6777c1ec7638b57f6c03_eb3735db-33f1-4eae-8fef-d1657d660b5a.webp?v=1714706388","width":2000},{"alt":null,"id":23875655237731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e6355c76673f3a2ff39d910542ba7d120c4ad1_227ac5d1-7430-4fc5-ba91-5797e5610d75.webp?v=1714706390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e6355c76673f3a2ff39d910542ba7d120c4ad1_227ac5d1-7430-4fc5-ba91-5797e5610d75.webp?v=1714706390","width":2000},{"alt":null,"id":23875655663715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b056bd40c9d5ea73ef25718f9d424ccaba6fd7_584e7737-1be7-4bb1-a929-c68a11e2c457.webp?v=1714706392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b056bd40c9d5ea73ef25718f9d424ccaba6fd7_584e7737-1be7-4bb1-a929-c68a11e2c457.webp?v=1714706392","width":2000},{"alt":null,"id":23875656220771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ce3de57ffc2353bda056f19501b545b74b20c_99332dd6-fae3-4981-b56e-5d77a2686c57.webp?v=1714706395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ce3de57ffc2353bda056f19501b545b74b20c_99332dd6-fae3-4981-b56e-5d77a2686c57.webp?v=1714706395","width":2000},{"alt":null,"id":23875656581219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a2ec4c1489836f6e344721b10a3d5765c58c43_2c5b6f16-4284-4bea-8f92-092877302e69.webp?v=1714706397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a2ec4c1489836f6e344721b10a3d5765c58c43_2c5b6f16-4284-4bea-8f92-092877302e69.webp?v=1714706397","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880768774243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470748139619,"product_id":7407937781859,"position":2,"created_at":"2024-05-03T11:19:38+08:00","updated_at":"2024-05-03T11:19:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378","variant_ids":[41880768774243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23875652386915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880768774243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470748139619,"product_id":7407937781859,"position":2,"created_at":"2024-05-03T11:19:38+08:00","updated_at":"2024-05-03T11:19:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378","variant_ids":[41880768774243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23875652386915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33647270f6e59176f875e7c73f77d0403afb54b3_08eb1a6f-f46f-44c2-8073-e73004fe8358.webp?v=1714706378"}},"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: "停產" }