$product = {"id":7893822636131,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) Chubbynida 含苞綻放","handle":"iphone-14-pro-mod-nx-magsafe-printable-chu08","description":null,"published_at":"2025-10-09T09:31:10+08:00","created_at":"2025-10-07T10:20:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 14 Pro","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":43763399229539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-CHU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34553129893987,"product_id":7893822636131,"position":9,"created_at":"2025-10-07T10:20:25+08:00","updated_at":"2025-10-07T10:20:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627","variant_ids":[43763399229539]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-CHU08","featured_media":{"alt":null,"id":26122777591907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763399295075,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-CHU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34553129173091,"product_id":7893822636131,"position":6,"created_at":"2025-10-07T10:20:23+08:00","updated_at":"2025-10-07T10:20:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5e75fdc446be5852ab245357ca78242c3a208e.webp?v=1759803625","variant_ids":[43763399295075]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Chubbynida 含苞綻放 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-CHU08","featured_media":{"alt":null,"id":26122776871011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5e75fdc446be5852ab245357ca78242c3a208e.webp?v=1759803625"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763399360611,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-CHU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34553128845411,"product_id":7893822636131,"position":3,"created_at":"2025-10-07T10:20:20+08:00","updated_at":"2025-10-07T10:20:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a3d46b49eda2f77ec8549d763c4fab1ffdf6f.webp?v=1759803622","variant_ids":[43763399360611]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Chubbynida 含苞綻放 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-CHU08","featured_media":{"alt":null,"id":26122776543331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a3d46b49eda2f77ec8549d763c4fab1ffdf6f.webp?v=1759803622"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cbfa714325dbfd2898f5d8cc5b1fb8098c9d992.webp?v=1759803620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb0515d1f424be0b10e420fad93d7ac75222902.webp?v=1759803621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a3d46b49eda2f77ec8549d763c4fab1ffdf6f.webp?v=1759803622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801e0968633cdef00a4c31ab0857e67e733a0575.webp?v=1759803622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf3371d76a17515d3dced0b699492df86d384625.webp?v=1759803623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5e75fdc446be5852ab245357ca78242c3a208e.webp?v=1759803625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0255066e5711c2e3afba61c4867bb3635bb2d06.webp?v=1759803626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59073f1b1d48a970f6e25394d7a4b5ad14a974c1.webp?v=1759803626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6c1344383d65729f23908f20a70356e46a4db6f.webp?v=1759803628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244405d4adaf006afa2aeb997a9a6ceed0958dab.webp?v=1759803628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b05d052228e8e854093d870ca0a6d7ebf63b6a67.webp?v=1759803629"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cbfa714325dbfd2898f5d8cc5b1fb8098c9d992.webp?v=1759803620","options":["color"],"media":[{"alt":null,"id":26122776150115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cbfa714325dbfd2898f5d8cc5b1fb8098c9d992.webp?v=1759803620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cbfa714325dbfd2898f5d8cc5b1fb8098c9d992.webp?v=1759803620","width":2000},{"alt":null,"id":26122776313955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb0515d1f424be0b10e420fad93d7ac75222902.webp?v=1759803621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb0515d1f424be0b10e420fad93d7ac75222902.webp?v=1759803621","width":2000},{"alt":null,"id":26122776543331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a3d46b49eda2f77ec8549d763c4fab1ffdf6f.webp?v=1759803622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a3d46b49eda2f77ec8549d763c4fab1ffdf6f.webp?v=1759803622","width":2000},{"alt":null,"id":26122776641635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801e0968633cdef00a4c31ab0857e67e733a0575.webp?v=1759803622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801e0968633cdef00a4c31ab0857e67e733a0575.webp?v=1759803622","width":2000},{"alt":null,"id":26122776805475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf3371d76a17515d3dced0b699492df86d384625.webp?v=1759803623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf3371d76a17515d3dced0b699492df86d384625.webp?v=1759803623","width":2000},{"alt":null,"id":26122776871011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5e75fdc446be5852ab245357ca78242c3a208e.webp?v=1759803625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5e75fdc446be5852ab245357ca78242c3a208e.webp?v=1759803625","width":2000},{"alt":null,"id":26122777165923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0255066e5711c2e3afba61c4867bb3635bb2d06.webp?v=1759803626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0255066e5711c2e3afba61c4867bb3635bb2d06.webp?v=1759803626","width":2000},{"alt":null,"id":26122777428067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59073f1b1d48a970f6e25394d7a4b5ad14a974c1.webp?v=1759803626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59073f1b1d48a970f6e25394d7a4b5ad14a974c1.webp?v=1759803626","width":2000},{"alt":null,"id":26122777591907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627","width":2000},{"alt":null,"id":26122777722979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6c1344383d65729f23908f20a70356e46a4db6f.webp?v=1759803628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6c1344383d65729f23908f20a70356e46a4db6f.webp?v=1759803628","width":2000},{"alt":null,"id":26122777886819,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244405d4adaf006afa2aeb997a9a6ceed0958dab.webp?v=1759803628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244405d4adaf006afa2aeb997a9a6ceed0958dab.webp?v=1759803628","width":2000},{"alt":null,"id":26122778050659,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b05d052228e8e854093d870ca0a6d7ebf63b6a67.webp?v=1759803629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b05d052228e8e854093d870ca0a6d7ebf63b6a67.webp?v=1759803629","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763399229539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-CHU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34553129893987,"product_id":7893822636131,"position":9,"created_at":"2025-10-07T10:20:25+08:00","updated_at":"2025-10-07T10:20:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627","variant_ids":[43763399229539]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-CHU08","featured_media":{"alt":null,"id":26122777591907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763399295075,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-CHU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34553129173091,"product_id":7893822636131,"position":6,"created_at":"2025-10-07T10:20:23+08:00","updated_at":"2025-10-07T10:20:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5e75fdc446be5852ab245357ca78242c3a208e.webp?v=1759803625","variant_ids":[43763399295075]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Chubbynida 含苞綻放 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-CHU08","featured_media":{"alt":null,"id":26122776871011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5e75fdc446be5852ab245357ca78242c3a208e.webp?v=1759803625"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763399360611,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-CHU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34553128845411,"product_id":7893822636131,"position":3,"created_at":"2025-10-07T10:20:20+08:00","updated_at":"2025-10-07T10:20:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a3d46b49eda2f77ec8549d763c4fab1ffdf6f.webp?v=1759803622","variant_ids":[43763399360611]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Chubbynida 含苞綻放 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-CHU08","featured_media":{"alt":null,"id":26122776543331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a3d46b49eda2f77ec8549d763c4fab1ffdf6f.webp?v=1759803622"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763399229539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-CHU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34553129893987,"product_id":7893822636131,"position":9,"created_at":"2025-10-07T10:20:25+08:00","updated_at":"2025-10-07T10:20:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627","variant_ids":[43763399229539]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-CHU08","featured_media":{"alt":null,"id":26122777591907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75991d1285d255c84a9a625306d5bb4f76d35a2b.webp?v=1759803627"}},"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: "停產" }