$product = {"id":7407835676771,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 搞怪系列-怪可愛","handle":"iphone-14-plus-mod-nx-printable-yf02","description":null,"published_at":"2024-06-11T16:24:11+08:00","created_at":"2024-05-03T10:59:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41879431807075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470489108579,"product_id":7407835676771,"position":4,"created_at":"2024-05-03T10:59:36+08:00","updated_at":"2024-05-03T10:59:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176","variant_ids":[41879431807075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0126124-YF02","featured_media":{"alt":null,"id":23875392798819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0905ebdab1f58e2b9a2ec4de9c6a960674eafd_7ddfc229-6aff-4a75-8830-4d3aeb0952d7.webp?v=1714705169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef69782287a13646ced702a0df248d8b74312eff_5b7c8ea4-5fa2-4589-b5b5-42733e9ec4cb.webp?v=1714705171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbc241e7eb0e73823750355e17860729e423f48e_e1926f81-d544-4fcd-9846-ac5beb0ffa12.webp?v=1714705174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91df1870c783f744b749e66f0fad4bad7cf9080c_124ad056-be48-4a3e-be12-08f48feebe8e.webp?v=1714705179","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5046e916c90cef2c690184a736d28a6ff6b7e5cf_def9dd33-7983-4b14-aa46-d4fa3f8db101.webp?v=1714705181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d5e5bf12731831a39166f05d3c8641e2150b2a_76ea2e75-63ab-4a10-87b4-45ff57274510.webp?v=1714705184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa1dd7c41c23f68396562574e95b05604ff1f3a_eb4ca4bf-c20c-44eb-97ed-066653b0d390.webp?v=1714705186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddde2a1e153d70f62b7d14a10a32a20946296386_a1236a3e-aa65-4d08-9b86-3406efb21864.webp?v=1714705189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8497e5840452bdb361eae2b87c23d456b397bc5_fb2e50b2-d941-4103-8d69-0aa728ea78e0.webp?v=1714705192"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0905ebdab1f58e2b9a2ec4de9c6a960674eafd_7ddfc229-6aff-4a75-8830-4d3aeb0952d7.webp?v=1714705169","options":["color"],"media":[{"alt":null,"id":23875391029347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0905ebdab1f58e2b9a2ec4de9c6a960674eafd_7ddfc229-6aff-4a75-8830-4d3aeb0952d7.webp?v=1714705169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0905ebdab1f58e2b9a2ec4de9c6a960674eafd_7ddfc229-6aff-4a75-8830-4d3aeb0952d7.webp?v=1714705169","width":2000},{"alt":null,"id":23875392012387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef69782287a13646ced702a0df248d8b74312eff_5b7c8ea4-5fa2-4589-b5b5-42733e9ec4cb.webp?v=1714705171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef69782287a13646ced702a0df248d8b74312eff_5b7c8ea4-5fa2-4589-b5b5-42733e9ec4cb.webp?v=1714705171","width":2000},{"alt":null,"id":23875392405603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbc241e7eb0e73823750355e17860729e423f48e_e1926f81-d544-4fcd-9846-ac5beb0ffa12.webp?v=1714705174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbc241e7eb0e73823750355e17860729e423f48e_e1926f81-d544-4fcd-9846-ac5beb0ffa12.webp?v=1714705174","width":2000},{"alt":null,"id":23875392798819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176","width":2000},{"alt":null,"id":23875393290339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91df1870c783f744b749e66f0fad4bad7cf9080c_124ad056-be48-4a3e-be12-08f48feebe8e.webp?v=1714705179"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91df1870c783f744b749e66f0fad4bad7cf9080c_124ad056-be48-4a3e-be12-08f48feebe8e.webp?v=1714705179","width":2000},{"alt":null,"id":23875393683555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5046e916c90cef2c690184a736d28a6ff6b7e5cf_def9dd33-7983-4b14-aa46-d4fa3f8db101.webp?v=1714705181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5046e916c90cef2c690184a736d28a6ff6b7e5cf_def9dd33-7983-4b14-aa46-d4fa3f8db101.webp?v=1714705181","width":2000},{"alt":null,"id":23875394142307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d5e5bf12731831a39166f05d3c8641e2150b2a_76ea2e75-63ab-4a10-87b4-45ff57274510.webp?v=1714705184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d5e5bf12731831a39166f05d3c8641e2150b2a_76ea2e75-63ab-4a10-87b4-45ff57274510.webp?v=1714705184","width":2000},{"alt":null,"id":23875394568291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa1dd7c41c23f68396562574e95b05604ff1f3a_eb4ca4bf-c20c-44eb-97ed-066653b0d390.webp?v=1714705186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fa1dd7c41c23f68396562574e95b05604ff1f3a_eb4ca4bf-c20c-44eb-97ed-066653b0d390.webp?v=1714705186","width":2000},{"alt":null,"id":23875394928739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddde2a1e153d70f62b7d14a10a32a20946296386_a1236a3e-aa65-4d08-9b86-3406efb21864.webp?v=1714705189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddde2a1e153d70f62b7d14a10a32a20946296386_a1236a3e-aa65-4d08-9b86-3406efb21864.webp?v=1714705189","width":2000},{"alt":null,"id":23875395485795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8497e5840452bdb361eae2b87c23d456b397bc5_fb2e50b2-d941-4103-8d69-0aa728ea78e0.webp?v=1714705192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8497e5840452bdb361eae2b87c23d456b397bc5_fb2e50b2-d941-4103-8d69-0aa728ea78e0.webp?v=1714705192","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879431807075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470489108579,"product_id":7407835676771,"position":4,"created_at":"2024-05-03T10:59:36+08:00","updated_at":"2024-05-03T10:59:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176","variant_ids":[41879431807075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0126124-YF02","featured_media":{"alt":null,"id":23875392798819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879431807075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470489108579,"product_id":7407835676771,"position":4,"created_at":"2024-05-03T10:59:36+08:00","updated_at":"2024-05-03T10:59:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176","variant_ids":[41879431807075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0126124-YF02","featured_media":{"alt":null,"id":23875392798819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086c49813af7c2f04d6daa029834935f6856380c_975452f2-35c6-4fa3-aa26-51caf354e887.webp?v=1714705176"}},"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: "停產" }