$product = {"id":7848084308067,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds","handle":"iphone-14-pro-mod-nx-magsafe-bumper-crossover-design-fv63","description":null,"published_at":"2025-08-07T09:06:03+08:00","created_at":"2025-08-05T09:46:27+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 14 Pro","merge","reseller-hijohnnn"],"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":43562989846627,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-FV63","requires_shipping":true,"taxable":true,"featured_image":{"id":34287994601571,"product_id":7848084308067,"position":5,"created_at":"2025-08-05T09:46:34+08:00","updated_at":"2025-08-05T09:46:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396","variant_ids":[43562989846627]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds - 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-FV63","featured_media":{"alt":null,"id":25888947175523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562989977699,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-FV63","requires_shipping":true,"taxable":true,"featured_image":{"id":34287996305507,"product_id":7848084308067,"position":8,"created_at":"2025-08-05T09:46:36+08:00","updated_at":"2025-08-05T09:46:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99974e42330ebb7f9f8f527c66bcfee4ec58fcd.webp?v=1754358398","variant_ids":[43562989977699]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds - 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-FV63","featured_media":{"alt":null,"id":25888947798115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99974e42330ebb7f9f8f527c66bcfee4ec58fcd.webp?v=1754358398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562990043235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-FV63","requires_shipping":true,"taxable":true,"featured_image":{"id":34287997812835,"product_id":7848084308067,"position":11,"created_at":"2025-08-05T09:46:38+08:00","updated_at":"2025-08-05T09:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab015fa9b85afdc6a8a7d3e582f9a0ab538351c.webp?v=1754358400","variant_ids":[43562990043235]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds - 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-FV63","featured_media":{"alt":null,"id":25888948551779,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab015fa9b85afdc6a8a7d3e582f9a0ab538351c.webp?v=1754358400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4384fc83f7d33cc8ca4db580faafebd71220d855.webp?v=1754358394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d1806e7939dab0dfa0624197042f7f18fcd88dd.webp?v=1754358394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ddd4e597c6fd60df20f1f2b62baf64150ce225.webp?v=1754358395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd9418afb3f70661c84c1a3e251ce5ccbb7d131.webp?v=1754358396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9489eaa5f01eabe54f1d3106818a0ae593a476f.webp?v=1754358397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58e8233854ed5c49f8171c960e1aef099ae076d4.webp?v=1754358398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99974e42330ebb7f9f8f527c66bcfee4ec58fcd.webp?v=1754358398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6ff0c7c5ab2b100165c922a35a96edb9ace25.webp?v=1754358399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1015eafee208c1ce14609da2101eb8b07210e9.webp?v=1754358399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab015fa9b85afdc6a8a7d3e582f9a0ab538351c.webp?v=1754358400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a248cfad43a82c7562ecba21ed1a420d6f68711.webp?v=1754358400"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4384fc83f7d33cc8ca4db580faafebd71220d855.webp?v=1754358394","options":["color"],"media":[{"alt":null,"id":25888946684003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4384fc83f7d33cc8ca4db580faafebd71220d855.webp?v=1754358394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4384fc83f7d33cc8ca4db580faafebd71220d855.webp?v=1754358394","width":2000},{"alt":null,"id":25888946815075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d1806e7939dab0dfa0624197042f7f18fcd88dd.webp?v=1754358394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d1806e7939dab0dfa0624197042f7f18fcd88dd.webp?v=1754358394","width":2000},{"alt":null,"id":25888946913379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ddd4e597c6fd60df20f1f2b62baf64150ce225.webp?v=1754358395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ddd4e597c6fd60df20f1f2b62baf64150ce225.webp?v=1754358395","width":2000},{"alt":null,"id":25888947077219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd9418afb3f70661c84c1a3e251ce5ccbb7d131.webp?v=1754358396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd9418afb3f70661c84c1a3e251ce5ccbb7d131.webp?v=1754358396","width":2000},{"alt":null,"id":25888947175523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396","width":2000},{"alt":null,"id":25888947273827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9489eaa5f01eabe54f1d3106818a0ae593a476f.webp?v=1754358397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9489eaa5f01eabe54f1d3106818a0ae593a476f.webp?v=1754358397","width":2000},{"alt":null,"id":25888947470435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58e8233854ed5c49f8171c960e1aef099ae076d4.webp?v=1754358398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58e8233854ed5c49f8171c960e1aef099ae076d4.webp?v=1754358398","width":2000},{"alt":null,"id":25888947798115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99974e42330ebb7f9f8f527c66bcfee4ec58fcd.webp?v=1754358398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99974e42330ebb7f9f8f527c66bcfee4ec58fcd.webp?v=1754358398","width":2000},{"alt":null,"id":25888948093027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6ff0c7c5ab2b100165c922a35a96edb9ace25.webp?v=1754358399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6ff0c7c5ab2b100165c922a35a96edb9ace25.webp?v=1754358399","width":2000},{"alt":null,"id":25888948322403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1015eafee208c1ce14609da2101eb8b07210e9.webp?v=1754358399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1015eafee208c1ce14609da2101eb8b07210e9.webp?v=1754358399","width":2000},{"alt":null,"id":25888948551779,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab015fa9b85afdc6a8a7d3e582f9a0ab538351c.webp?v=1754358400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab015fa9b85afdc6a8a7d3e582f9a0ab538351c.webp?v=1754358400","width":2000},{"alt":null,"id":25888948846691,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a248cfad43a82c7562ecba21ed1a420d6f68711.webp?v=1754358400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a248cfad43a82c7562ecba21ed1a420d6f68711.webp?v=1754358400","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43562989846627,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-FV63","requires_shipping":true,"taxable":true,"featured_image":{"id":34287994601571,"product_id":7848084308067,"position":5,"created_at":"2025-08-05T09:46:34+08:00","updated_at":"2025-08-05T09:46:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396","variant_ids":[43562989846627]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds - 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-FV63","featured_media":{"alt":null,"id":25888947175523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562989977699,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-FV63","requires_shipping":true,"taxable":true,"featured_image":{"id":34287996305507,"product_id":7848084308067,"position":8,"created_at":"2025-08-05T09:46:36+08:00","updated_at":"2025-08-05T09:46:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99974e42330ebb7f9f8f527c66bcfee4ec58fcd.webp?v=1754358398","variant_ids":[43562989977699]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds - 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-FV63","featured_media":{"alt":null,"id":25888947798115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99974e42330ebb7f9f8f527c66bcfee4ec58fcd.webp?v=1754358398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562990043235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-FV63","requires_shipping":true,"taxable":true,"featured_image":{"id":34287997812835,"product_id":7848084308067,"position":11,"created_at":"2025-08-05T09:46:38+08:00","updated_at":"2025-08-05T09:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab015fa9b85afdc6a8a7d3e582f9a0ab538351c.webp?v=1754358400","variant_ids":[43562990043235]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds - 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-FV63","featured_media":{"alt":null,"id":25888948551779,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab015fa9b85afdc6a8a7d3e582f9a0ab538351c.webp?v=1754358400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43562989846627,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-FV63","requires_shipping":true,"taxable":true,"featured_image":{"id":34287994601571,"product_id":7848084308067,"position":5,"created_at":"2025-08-05T09:46:34+08:00","updated_at":"2025-08-05T09:46:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396","variant_ids":[43562989846627]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 嗨小強 Bread Buds - 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-FV63","featured_media":{"alt":null,"id":25888947175523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd97cf60c3f72b1c9642e5752a70929506f03bb7.webp?v=1754358396"}},"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: "停產" }