$product = {"id":7892099563619,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 熊泥抱抱","handle":"iphone-14-plus-mod-nx-magsafe-printable-fw54","description":null,"published_at":"2025-10-01T12:25:45+08:00","created_at":"2025-10-01T09:31:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Plus","merge","reseller-xiuxiubear"],"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":43754487251043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34540758696035,"product_id":7892099563619,"position":5,"created_at":"2025-10-01T09:31:58+08:00","updated_at":"2025-10-01T09:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320","variant_ids":[43754487251043]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 熊泥抱抱 - 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-FW54","featured_media":{"alt":null,"id":26110525833315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeed6e1fa1e38781449445b5734b61db3b632b1.webp?v=1759282318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1d29f7a6e438d8d7c2a3fe20a784964d7183f5.webp?v=1759282319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4151e06f42a9cab34a9c6f596e543bd4b6230d80.webp?v=1759282319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f4338fcb1db24b8a9121b9cbc6bcd8106b0cd.webp?v=1759282320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70751213bd2f0af232dcec8eea4bd9d810eeb03.webp?v=1759282320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91c3f645be1682c89c8e189b4706627e25b9d9e5.webp?v=1759282321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8c82b1fadb740be7649a6cd03501f12f17b196d.webp?v=1759282322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48fc44d0fdaf3363777344052e82a3f9a08a098f.webp?v=1759282322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b1b44e82803a3545820c0619e38b31414e74fa.webp?v=1759282322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14679405fc69d5b8f7d847fb5b57360eed0d3003.webp?v=1759282323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/898e7d9f8c25d7863a8af58588cdd77db029746f.webp?v=1759282323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf67f704ddbfc8a8ab1beff5734413442d1c2515.webp?v=1759282324"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeed6e1fa1e38781449445b5734b61db3b632b1.webp?v=1759282318","options":["color"],"media":[{"alt":null,"id":26110525374563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeed6e1fa1e38781449445b5734b61db3b632b1.webp?v=1759282318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeed6e1fa1e38781449445b5734b61db3b632b1.webp?v=1759282318","width":2000},{"alt":null,"id":26110525538403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1d29f7a6e438d8d7c2a3fe20a784964d7183f5.webp?v=1759282319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1d29f7a6e438d8d7c2a3fe20a784964d7183f5.webp?v=1759282319","width":2000},{"alt":null,"id":26110525669475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4151e06f42a9cab34a9c6f596e543bd4b6230d80.webp?v=1759282319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4151e06f42a9cab34a9c6f596e543bd4b6230d80.webp?v=1759282319","width":2000},{"alt":null,"id":26110525767779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f4338fcb1db24b8a9121b9cbc6bcd8106b0cd.webp?v=1759282320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f4338fcb1db24b8a9121b9cbc6bcd8106b0cd.webp?v=1759282320","width":2000},{"alt":null,"id":26110525833315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320","width":2000},{"alt":null,"id":26110525898851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70751213bd2f0af232dcec8eea4bd9d810eeb03.webp?v=1759282320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70751213bd2f0af232dcec8eea4bd9d810eeb03.webp?v=1759282320","width":2000},{"alt":null,"id":26110525997155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91c3f645be1682c89c8e189b4706627e25b9d9e5.webp?v=1759282321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91c3f645be1682c89c8e189b4706627e25b9d9e5.webp?v=1759282321","width":2000},{"alt":null,"id":26110526160995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8c82b1fadb740be7649a6cd03501f12f17b196d.webp?v=1759282322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8c82b1fadb740be7649a6cd03501f12f17b196d.webp?v=1759282322","width":2000},{"alt":null,"id":26110526292067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48fc44d0fdaf3363777344052e82a3f9a08a098f.webp?v=1759282322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48fc44d0fdaf3363777344052e82a3f9a08a098f.webp?v=1759282322","width":2000},{"alt":null,"id":26110526488675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b1b44e82803a3545820c0619e38b31414e74fa.webp?v=1759282322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b1b44e82803a3545820c0619e38b31414e74fa.webp?v=1759282322","width":2000},{"alt":null,"id":26110526685283,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14679405fc69d5b8f7d847fb5b57360eed0d3003.webp?v=1759282323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14679405fc69d5b8f7d847fb5b57360eed0d3003.webp?v=1759282323","width":2000},{"alt":null,"id":26110526881891,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/898e7d9f8c25d7863a8af58588cdd77db029746f.webp?v=1759282323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/898e7d9f8c25d7863a8af58588cdd77db029746f.webp?v=1759282323","width":2000},{"alt":null,"id":26110527111267,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf67f704ddbfc8a8ab1beff5734413442d1c2515.webp?v=1759282324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf67f704ddbfc8a8ab1beff5734413442d1c2515.webp?v=1759282324","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43754487251043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34540758696035,"product_id":7892099563619,"position":5,"created_at":"2025-10-01T09:31:58+08:00","updated_at":"2025-10-01T09:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320","variant_ids":[43754487251043]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 熊泥抱抱 - 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-FW54","featured_media":{"alt":null,"id":26110525833315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43754487251043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34540758696035,"product_id":7892099563619,"position":5,"created_at":"2025-10-01T09:31:58+08:00","updated_at":"2025-10-01T09:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320","variant_ids":[43754487251043]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 熊泥抱抱 - 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-FW54","featured_media":{"alt":null,"id":26110525833315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ed80c1bf86fc69053cdbeb140ce4e07738e7e8.webp?v=1759282320"}},"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: "停產" }