$product = {"id":7937706917987,"title":"iPhone 14 Plus Mod NX Jin Young Choi 雲朵狗狗","handle":"iphone-14-plus-mod-nx-cjy08","description":null,"published_at":"2025-12-12T09:23:11+08:00","created_at":"2025-12-11T10:26:52+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":43883541659747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY08","requires_shipping":true,"taxable":true,"featured_image":{"id":34931809353827,"product_id":7937706917987,"position":6,"created_at":"2025-12-11T10:26:59+08:00","updated_at":"2025-12-11T10:27:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020","variant_ids":[43883541659747]},"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-CJY08","featured_media":{"alt":null,"id":26494183604323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcd8bd39c2523615e40c34607c59bf36c8cf027.webp?v=1765420018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed492b1e689aa61fef1fc9697d57f09340d17fa.webp?v=1765420018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c895ccd3af80e35fcf4997dc8ac9c0ea1de68485.webp?v=1765420019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403a9a99c5be6853d9fff096eea6d7088c90c052.webp?v=1765420019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d20ea5c8dd434abe246b3dcba6c5bc5669a34a0.webp?v=1765420020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86991ec495551ec87d781ef923d8678924f9561a.webp?v=1765420021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0159628b0936a08e22dfb46762b7f2a3e5a187da.webp?v=1765420022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a36382513dfab958d6f1e9b34b1054c46661a8.webp?v=1765420022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f9c54a93c7561e52e705e5ff1e4ea704a59eaa.webp?v=1765420023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eae3f84b3feb48c4ca3f89d1f46d16665108f93.webp?v=1765420023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e962f4da6446bc31fbb024d6f6f53b5fb5b874.webp?v=1765420024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c4fce729eb5a42749d51c57544ecc2772a69df.webp?v=1765420026"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcd8bd39c2523615e40c34607c59bf36c8cf027.webp?v=1765420018","options":["color"],"media":[{"alt":null,"id":26494182719587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcd8bd39c2523615e40c34607c59bf36c8cf027.webp?v=1765420018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddcd8bd39c2523615e40c34607c59bf36c8cf027.webp?v=1765420018","width":2000},{"alt":null,"id":26494182850659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed492b1e689aa61fef1fc9697d57f09340d17fa.webp?v=1765420018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed492b1e689aa61fef1fc9697d57f09340d17fa.webp?v=1765420018","width":2000},{"alt":null,"id":26494182948963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c895ccd3af80e35fcf4997dc8ac9c0ea1de68485.webp?v=1765420019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c895ccd3af80e35fcf4997dc8ac9c0ea1de68485.webp?v=1765420019","width":2000},{"alt":null,"id":26494183112803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403a9a99c5be6853d9fff096eea6d7088c90c052.webp?v=1765420019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403a9a99c5be6853d9fff096eea6d7088c90c052.webp?v=1765420019","width":2000},{"alt":null,"id":26494183309411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d20ea5c8dd434abe246b3dcba6c5bc5669a34a0.webp?v=1765420020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d20ea5c8dd434abe246b3dcba6c5bc5669a34a0.webp?v=1765420020","width":2000},{"alt":null,"id":26494183604323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020","width":2000},{"alt":null,"id":26494183932003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86991ec495551ec87d781ef923d8678924f9561a.webp?v=1765420021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86991ec495551ec87d781ef923d8678924f9561a.webp?v=1765420021","width":2000},{"alt":null,"id":26494184194147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0159628b0936a08e22dfb46762b7f2a3e5a187da.webp?v=1765420022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0159628b0936a08e22dfb46762b7f2a3e5a187da.webp?v=1765420022","width":2000},{"alt":null,"id":26494184620131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a36382513dfab958d6f1e9b34b1054c46661a8.webp?v=1765420022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a36382513dfab958d6f1e9b34b1054c46661a8.webp?v=1765420022","width":2000},{"alt":null,"id":26494184882275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f9c54a93c7561e52e705e5ff1e4ea704a59eaa.webp?v=1765420023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f9c54a93c7561e52e705e5ff1e4ea704a59eaa.webp?v=1765420023","width":2000},{"alt":null,"id":26494185111651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eae3f84b3feb48c4ca3f89d1f46d16665108f93.webp?v=1765420023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eae3f84b3feb48c4ca3f89d1f46d16665108f93.webp?v=1765420023","width":2000},{"alt":null,"id":26494185275491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e962f4da6446bc31fbb024d6f6f53b5fb5b874.webp?v=1765420024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e962f4da6446bc31fbb024d6f6f53b5fb5b874.webp?v=1765420024","width":2000},{"alt":null,"id":26494185439331,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c4fce729eb5a42749d51c57544ecc2772a69df.webp?v=1765420026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c4fce729eb5a42749d51c57544ecc2772a69df.webp?v=1765420026","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43883541659747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY08","requires_shipping":true,"taxable":true,"featured_image":{"id":34931809353827,"product_id":7937706917987,"position":6,"created_at":"2025-12-11T10:26:59+08:00","updated_at":"2025-12-11T10:27:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020","variant_ids":[43883541659747]},"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-CJY08","featured_media":{"alt":null,"id":26494183604323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883541659747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY08","requires_shipping":true,"taxable":true,"featured_image":{"id":34931809353827,"product_id":7937706917987,"position":6,"created_at":"2025-12-11T10:26:59+08:00","updated_at":"2025-12-11T10:27:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020","variant_ids":[43883541659747]},"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-CJY08","featured_media":{"alt":null,"id":26494183604323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f370ca49c3d29c0ddd9557d4e5fd7d1a939262f1.webp?v=1765420020"}},"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: "停產" }