$product = {"id":7893814345827,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 烈焰海之舞","handle":"iphone-14-plus-mod-nx-magsafe-printable-chu06","description":null,"published_at":"2025-10-09T09:32:42+08:00","created_at":"2025-10-07T10:18:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 14 Plus","merge","reseller-chubbynida"],"price":110000,"price_min":110000,"price_max":110000,"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":43763371343971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553100664931,"product_id":7893814345827,"position":3,"created_at":"2025-10-07T10:18:08+08:00","updated_at":"2025-10-07T10:18:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490","variant_ids":[43763371343971]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 烈焰海之舞 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-CHU06","featured_media":{"alt":null,"id":26122748362851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ff4b5bf31b8c19fb09f3d85c929f7270785d96.webp?v=1759803488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db2b72e7c74bb3b227fcddf52283153d968f4ce2.webp?v=1759803489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc051ab4bf9854c574ec8da671e8dd1f850d4369.webp?v=1759803491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5bce58d4084ba2a92f2c848800f0a8202862e4.webp?v=1759803492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad623c3f0f8b13eb3469439b2b266d9e850b6a75.webp?v=1759803494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ad13e743afaea84476cfdb57ccf5259eee7982.webp?v=1759803494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8130c338b47678f5e2abda62e639f35bd5480b6b.webp?v=1759803495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc3dc33cdbecd37b62d21205939dd1244488e42.webp?v=1759803496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57200cbb179ef78bedd6f5b7f34c29067a3b64bb.webp?v=1759803496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6497215b6bf88cb7b8d49fc1ac9c7c97100ed30f.webp?v=1759803497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c05d43da82adb6232774d85b984ee07c8ff414.webp?v=1759803498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffa8c4632e6c4eb2db89d1954a5e4fc0892aec9b.webp?v=1759803499"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ff4b5bf31b8c19fb09f3d85c929f7270785d96.webp?v=1759803488","options":["color"],"media":[{"alt":null,"id":26122748002403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ff4b5bf31b8c19fb09f3d85c929f7270785d96.webp?v=1759803488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ff4b5bf31b8c19fb09f3d85c929f7270785d96.webp?v=1759803488","width":2000},{"alt":null,"id":26122748231779,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db2b72e7c74bb3b227fcddf52283153d968f4ce2.webp?v=1759803489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db2b72e7c74bb3b227fcddf52283153d968f4ce2.webp?v=1759803489","width":2000},{"alt":null,"id":26122748362851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490","width":2000},{"alt":null,"id":26122748526691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc051ab4bf9854c574ec8da671e8dd1f850d4369.webp?v=1759803491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc051ab4bf9854c574ec8da671e8dd1f850d4369.webp?v=1759803491","width":2000},{"alt":null,"id":26122748756067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5bce58d4084ba2a92f2c848800f0a8202862e4.webp?v=1759803492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5bce58d4084ba2a92f2c848800f0a8202862e4.webp?v=1759803492","width":2000},{"alt":null,"id":26122748919907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad623c3f0f8b13eb3469439b2b266d9e850b6a75.webp?v=1759803494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad623c3f0f8b13eb3469439b2b266d9e850b6a75.webp?v=1759803494","width":2000},{"alt":null,"id":26122749280355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ad13e743afaea84476cfdb57ccf5259eee7982.webp?v=1759803494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ad13e743afaea84476cfdb57ccf5259eee7982.webp?v=1759803494","width":2000},{"alt":null,"id":26122749345891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8130c338b47678f5e2abda62e639f35bd5480b6b.webp?v=1759803495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8130c338b47678f5e2abda62e639f35bd5480b6b.webp?v=1759803495","width":2000},{"alt":null,"id":26122749411427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc3dc33cdbecd37b62d21205939dd1244488e42.webp?v=1759803496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc3dc33cdbecd37b62d21205939dd1244488e42.webp?v=1759803496","width":2000},{"alt":null,"id":26122749476963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57200cbb179ef78bedd6f5b7f34c29067a3b64bb.webp?v=1759803496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57200cbb179ef78bedd6f5b7f34c29067a3b64bb.webp?v=1759803496","width":2000},{"alt":null,"id":26122749542499,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6497215b6bf88cb7b8d49fc1ac9c7c97100ed30f.webp?v=1759803497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6497215b6bf88cb7b8d49fc1ac9c7c97100ed30f.webp?v=1759803497","width":2000},{"alt":null,"id":26122749706339,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c05d43da82adb6232774d85b984ee07c8ff414.webp?v=1759803498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c05d43da82adb6232774d85b984ee07c8ff414.webp?v=1759803498","width":2000},{"alt":null,"id":26122749804643,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffa8c4632e6c4eb2db89d1954a5e4fc0892aec9b.webp?v=1759803499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffa8c4632e6c4eb2db89d1954a5e4fc0892aec9b.webp?v=1759803499","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763371343971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553100664931,"product_id":7893814345827,"position":3,"created_at":"2025-10-07T10:18:08+08:00","updated_at":"2025-10-07T10:18:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490","variant_ids":[43763371343971]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 烈焰海之舞 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-CHU06","featured_media":{"alt":null,"id":26122748362851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763371343971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34553100664931,"product_id":7893814345827,"position":3,"created_at":"2025-10-07T10:18:08+08:00","updated_at":"2025-10-07T10:18:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490","variant_ids":[43763371343971]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 烈焰海之舞 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-CHU06","featured_media":{"alt":null,"id":26122748362851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fdbd92b49f0094091868a7e526a6625a4ebd65.webp?v=1759803490"}},"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: "停產" }