$product = {"id":7836803891299,"title":"iPhone 16 Plus Clear (MagSafe 兼容) OSAMU GOODS 經典復古系列-Cat","handle":"iphone-16-plus-jellytint-magsafe-bumper-crossover-design-yn29","description":null,"published_at":"2025-07-14T16:02:53+08:00","created_at":"2025-07-14T10:05:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-osamugoods","device-iPhone 16 Plus","merge","reseller-osamugoods"],"price":135000,"price_min":135000,"price_max":135000,"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":43524951736419,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN013260J-YN29","requires_shipping":true,"taxable":true,"featured_image":{"id":34179770810467,"product_id":7836803891299,"position":5,"created_at":"2025-07-14T14:52:05+08:00","updated_at":"2025-07-14T14:52:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927","variant_ids":[43524951736419]},"available":true,"name":"iPhone 16 Plus Clear (MagSafe 兼容) OSAMU GOODS 經典復古系列-Cat - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN013260J-YN29","featured_media":{"alt":null,"id":25817001951331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d20a42b1f673f08a05a1c9a79ab4a28565f2ad.webp?v=1752458734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1848d73eb5c47b82cd204a9d08e21747534274.webp?v=1752458735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21.webp?v=1752458736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4172800e33a68326e39566965e0826c263cb9f69.webp?v=1752458736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d20a42b1f673f08a05a1c9a79ab4a28565f2ad_440af6cc-ab4c-4238-8c73-82fcd69889f3.webp?v=1752475927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1848d73eb5c47b82cd204a9d08e21747534274_f0114156-d7b2-4372-97fc-91ec9465e0ee.webp?v=1752475928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4172800e33a68326e39566965e0826c263cb9f69_3ed1457e-4be7-4d8d-a836-83f7079e8a09.webp?v=1752475929"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d20a42b1f673f08a05a1c9a79ab4a28565f2ad.webp?v=1752458734","options":["color"],"media":[{"alt":null,"id":25815903830115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d20a42b1f673f08a05a1c9a79ab4a28565f2ad.webp?v=1752458734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d20a42b1f673f08a05a1c9a79ab4a28565f2ad.webp?v=1752458734","width":2000},{"alt":null,"id":25815904157795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1848d73eb5c47b82cd204a9d08e21747534274.webp?v=1752458735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1848d73eb5c47b82cd204a9d08e21747534274.webp?v=1752458735","width":2000},{"alt":null,"id":25815904288867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21.webp?v=1752458736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21.webp?v=1752458736","width":2000},{"alt":null,"id":25815904518243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4172800e33a68326e39566965e0826c263cb9f69.webp?v=1752458736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4172800e33a68326e39566965e0826c263cb9f69.webp?v=1752458736","width":2000},{"alt":null,"id":25817001951331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927","width":2000},{"alt":null,"id":25817002147939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d20a42b1f673f08a05a1c9a79ab4a28565f2ad_440af6cc-ab4c-4238-8c73-82fcd69889f3.webp?v=1752475927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d20a42b1f673f08a05a1c9a79ab4a28565f2ad_440af6cc-ab4c-4238-8c73-82fcd69889f3.webp?v=1752475927","width":2000},{"alt":null,"id":25817002377315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1848d73eb5c47b82cd204a9d08e21747534274_f0114156-d7b2-4372-97fc-91ec9465e0ee.webp?v=1752475928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1848d73eb5c47b82cd204a9d08e21747534274_f0114156-d7b2-4372-97fc-91ec9465e0ee.webp?v=1752475928","width":2000},{"alt":null,"id":25817002704995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4172800e33a68326e39566965e0826c263cb9f69_3ed1457e-4be7-4d8d-a836-83f7079e8a09.webp?v=1752475929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4172800e33a68326e39566965e0826c263cb9f69_3ed1457e-4be7-4d8d-a836-83f7079e8a09.webp?v=1752475929","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43524951736419,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN013260J-YN29","requires_shipping":true,"taxable":true,"featured_image":{"id":34179770810467,"product_id":7836803891299,"position":5,"created_at":"2025-07-14T14:52:05+08:00","updated_at":"2025-07-14T14:52:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927","variant_ids":[43524951736419]},"available":true,"name":"iPhone 16 Plus Clear (MagSafe 兼容) OSAMU GOODS 經典復古系列-Cat - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN013260J-YN29","featured_media":{"alt":null,"id":25817001951331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43524951736419,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN013260J-YN29","requires_shipping":true,"taxable":true,"featured_image":{"id":34179770810467,"product_id":7836803891299,"position":5,"created_at":"2025-07-14T14:52:05+08:00","updated_at":"2025-07-14T14:52:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927","variant_ids":[43524951736419]},"available":true,"name":"iPhone 16 Plus Clear (MagSafe 兼容) OSAMU GOODS 經典復古系列-Cat - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN013260J-YN29","featured_media":{"alt":null,"id":25817001951331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32cb22acf5f2cf7ef6719bc917b95384c1cb21_172e5c64-7b7a-428f-b860-77004daff69e.webp?v=1752475927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }