$product = {"id":7937702133859,"title":"iPhone 14 Plus Mod NX Jin Young Choi 蘭花貓","handle":"iphone-14-plus-mod-nx-cjy10","description":null,"published_at":"2025-12-12T09:24:07+08:00","created_at":"2025-12-11T10:25:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jychoioioi","device-iPhone 14 Plus","merge","reseller-jychoioioi"],"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":43883524128867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY10","requires_shipping":true,"taxable":true,"featured_image":{"id":34931772883043,"product_id":7937702133859,"position":4,"created_at":"2025-12-11T10:25:37+08:00","updated_at":"2025-12-11T10:25:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939","variant_ids":[43883524128867]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 蘭花貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY10","featured_media":{"alt":null,"id":26494147133539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6107e95ed94c44718bce36871a77420d45e63735.webp?v=1765419937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb7f07b702f86c8d8fcc331a66406317fd8dbb9.webp?v=1765419937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b3ea55d88dc255d3418bcad6a9c24c7a25d3c3.webp?v=1765419938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f981168d244f33369f0477f4af36810689c4e8.webp?v=1765419939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1894463e7472d2f429df288c0445e59cc4cde48e.webp?v=1765419940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0512946a5c030f38eda111bd13cb88d8e4da28.webp?v=1765419940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51aaab45b449268996f7ddc68429c0af98dac79.webp?v=1765419941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eb245b7eeead4a0e8a2784cb472d9cf8fe81aa4.webp?v=1765419941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f87a6f2c38b68e3babcd9a36825730c7db3ab3a.webp?v=1765419942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/623da6e0ee205dc1f99bc791fecabb04d8606670.webp?v=1765419942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d71180284ccb1b564a249c82609755b8ac490c.webp?v=1765419944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f66f2f57a822f2eb3e95b6b6bb7784f30ddfbc87.webp?v=1765419945"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6107e95ed94c44718bce36871a77420d45e63735.webp?v=1765419937","options":["color"],"media":[{"alt":null,"id":26494146379875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6107e95ed94c44718bce36871a77420d45e63735.webp?v=1765419937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6107e95ed94c44718bce36871a77420d45e63735.webp?v=1765419937","width":2000},{"alt":null,"id":26494146576483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb7f07b702f86c8d8fcc331a66406317fd8dbb9.webp?v=1765419937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb7f07b702f86c8d8fcc331a66406317fd8dbb9.webp?v=1765419937","width":2000},{"alt":null,"id":26494146838627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b3ea55d88dc255d3418bcad6a9c24c7a25d3c3.webp?v=1765419938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b3ea55d88dc255d3418bcad6a9c24c7a25d3c3.webp?v=1765419938","width":2000},{"alt":null,"id":26494147133539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939","width":2000},{"alt":null,"id":26494147297379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f981168d244f33369f0477f4af36810689c4e8.webp?v=1765419939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f981168d244f33369f0477f4af36810689c4e8.webp?v=1765419939","width":2000},{"alt":null,"id":26494147428451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1894463e7472d2f429df288c0445e59cc4cde48e.webp?v=1765419940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1894463e7472d2f429df288c0445e59cc4cde48e.webp?v=1765419940","width":2000},{"alt":null,"id":26494147657827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0512946a5c030f38eda111bd13cb88d8e4da28.webp?v=1765419940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0512946a5c030f38eda111bd13cb88d8e4da28.webp?v=1765419940","width":2000},{"alt":null,"id":26494147756131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51aaab45b449268996f7ddc68429c0af98dac79.webp?v=1765419941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51aaab45b449268996f7ddc68429c0af98dac79.webp?v=1765419941","width":2000},{"alt":null,"id":26494148018275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eb245b7eeead4a0e8a2784cb472d9cf8fe81aa4.webp?v=1765419941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eb245b7eeead4a0e8a2784cb472d9cf8fe81aa4.webp?v=1765419941","width":2000},{"alt":null,"id":26494148149347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f87a6f2c38b68e3babcd9a36825730c7db3ab3a.webp?v=1765419942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f87a6f2c38b68e3babcd9a36825730c7db3ab3a.webp?v=1765419942","width":2000},{"alt":null,"id":26494148247651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/623da6e0ee205dc1f99bc791fecabb04d8606670.webp?v=1765419942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/623da6e0ee205dc1f99bc791fecabb04d8606670.webp?v=1765419942","width":2000},{"alt":null,"id":26494148444259,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d71180284ccb1b564a249c82609755b8ac490c.webp?v=1765419944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d71180284ccb1b564a249c82609755b8ac490c.webp?v=1765419944","width":2000},{"alt":null,"id":26494148673635,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f66f2f57a822f2eb3e95b6b6bb7784f30ddfbc87.webp?v=1765419945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f66f2f57a822f2eb3e95b6b6bb7784f30ddfbc87.webp?v=1765419945","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43883524128867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY10","requires_shipping":true,"taxable":true,"featured_image":{"id":34931772883043,"product_id":7937702133859,"position":4,"created_at":"2025-12-11T10:25:37+08:00","updated_at":"2025-12-11T10:25:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939","variant_ids":[43883524128867]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 蘭花貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY10","featured_media":{"alt":null,"id":26494147133539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883524128867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY10","requires_shipping":true,"taxable":true,"featured_image":{"id":34931772883043,"product_id":7937702133859,"position":4,"created_at":"2025-12-11T10:25:37+08:00","updated_at":"2025-12-11T10:25:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939","variant_ids":[43883524128867]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 蘭花貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY10","featured_media":{"alt":null,"id":26494147133539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/500c046b066868d391a2a2db31877bae6a05a3ab.webp?v=1765419939"}},"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: "停產" }