$product = {"id":7836778233955,"title":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill","handle":"iphone-14-pro-max-jellytint-bumper-crossover-design-yn27","description":null,"published_at":"2025-07-14T16:12:26+08:00","created_at":"2025-07-14T09:45:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-osamugoods","device-iPhone 14 Pro Max","merge","reseller-osamugoods"],"price":128000,"price_min":128000,"price_max":128000,"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":43524872437859,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-YN27","requires_shipping":true,"taxable":true,"featured_image":{"id":34179772645475,"product_id":7836778233955,"position":8,"created_at":"2025-07-14T14:52:08+08:00","updated_at":"2025-07-14T14:52:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929","variant_ids":[43524872437859]},"available":true,"name":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-YN27","featured_media":{"alt":null,"id":25817003098211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524873650275,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-YN27","requires_shipping":true,"taxable":true,"featured_image":{"id":34179771138147,"product_id":7836778233955,"position":5,"created_at":"2025-07-14T14:52:06+08:00","updated_at":"2025-07-14T14:52:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab_ebf5fb01-04b2-4e11-8aa1-e705af7597ce.webp?v=1752475927","variant_ids":[43524873650275]},"available":true,"name":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-YN27","featured_media":{"alt":null,"id":25817002115171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab_ebf5fb01-04b2-4e11-8aa1-e705af7597ce.webp?v=1752475927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524873683043,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-YN27","requires_shipping":true,"taxable":true,"featured_image":{"id":34179772252259,"product_id":7836778233955,"position":7,"created_at":"2025-07-14T14:52:07+08:00","updated_at":"2025-07-14T14:52:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74_4ce6f6d8-e503-40c3-b897-c062fb9735bb.webp?v=1752475929","variant_ids":[43524873683043]},"available":true,"name":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-YN27","featured_media":{"alt":null,"id":25817002672227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74_4ce6f6d8-e503-40c3-b897-c062fb9735bb.webp?v=1752475929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c.webp?v=1752457513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab.webp?v=1752457514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f5f50bf12270877ae413b0ff8093116a4971a9e.webp?v=1752457514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74.webp?v=1752457515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab_ebf5fb01-04b2-4e11-8aa1-e705af7597ce.webp?v=1752475927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f5f50bf12270877ae413b0ff8093116a4971a9e_3a184823-8ba4-49cc-9b7a-d9e451b61a71.webp?v=1752475928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74_4ce6f6d8-e503-40c3-b897-c062fb9735bb.webp?v=1752475929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c.webp?v=1752457513","options":["color"],"media":[{"alt":null,"id":25815773347939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c.webp?v=1752457513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c.webp?v=1752457513","width":2000},{"alt":null,"id":25815773479011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab.webp?v=1752457514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab.webp?v=1752457514","width":2000},{"alt":null,"id":25815773675619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f5f50bf12270877ae413b0ff8093116a4971a9e.webp?v=1752457514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f5f50bf12270877ae413b0ff8093116a4971a9e.webp?v=1752457514","width":2000},{"alt":null,"id":25815774068835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74.webp?v=1752457515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74.webp?v=1752457515","width":2000},{"alt":null,"id":25817002115171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab_ebf5fb01-04b2-4e11-8aa1-e705af7597ce.webp?v=1752475927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab_ebf5fb01-04b2-4e11-8aa1-e705af7597ce.webp?v=1752475927","width":2000},{"alt":null,"id":25817002311779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f5f50bf12270877ae413b0ff8093116a4971a9e_3a184823-8ba4-49cc-9b7a-d9e451b61a71.webp?v=1752475928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f5f50bf12270877ae413b0ff8093116a4971a9e_3a184823-8ba4-49cc-9b7a-d9e451b61a71.webp?v=1752475928","width":2000},{"alt":null,"id":25817002672227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74_4ce6f6d8-e503-40c3-b897-c062fb9735bb.webp?v=1752475929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74_4ce6f6d8-e503-40c3-b897-c062fb9735bb.webp?v=1752475929","width":2000},{"alt":null,"id":25817003098211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43524872437859,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-YN27","requires_shipping":true,"taxable":true,"featured_image":{"id":34179772645475,"product_id":7836778233955,"position":8,"created_at":"2025-07-14T14:52:08+08:00","updated_at":"2025-07-14T14:52:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929","variant_ids":[43524872437859]},"available":true,"name":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-YN27","featured_media":{"alt":null,"id":25817003098211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524873650275,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-YN27","requires_shipping":true,"taxable":true,"featured_image":{"id":34179771138147,"product_id":7836778233955,"position":5,"created_at":"2025-07-14T14:52:06+08:00","updated_at":"2025-07-14T14:52:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab_ebf5fb01-04b2-4e11-8aa1-e705af7597ce.webp?v=1752475927","variant_ids":[43524873650275]},"available":true,"name":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-YN27","featured_media":{"alt":null,"id":25817002115171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f99e49574ca79bd4e0ca9a2a1c501c9182919ab_ebf5fb01-04b2-4e11-8aa1-e705af7597ce.webp?v=1752475927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524873683043,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-YN27","requires_shipping":true,"taxable":true,"featured_image":{"id":34179772252259,"product_id":7836778233955,"position":7,"created_at":"2025-07-14T14:52:07+08:00","updated_at":"2025-07-14T14:52:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74_4ce6f6d8-e503-40c3-b897-c062fb9735bb.webp?v=1752475929","variant_ids":[43524873683043]},"available":true,"name":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-YN27","featured_media":{"alt":null,"id":25817002672227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6035b9a4a1d9ecfa5ba55f9bef50884405848c74_4ce6f6d8-e503-40c3-b897-c062fb9735bb.webp?v=1752475929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43524872437859,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-YN27","requires_shipping":true,"taxable":true,"featured_image":{"id":34179772645475,"product_id":7836778233955,"position":8,"created_at":"2025-07-14T14:52:08+08:00","updated_at":"2025-07-14T14:52:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929","variant_ids":[43524872437859]},"available":true,"name":"iPhone 14 Pro Max Clear OSAMU GOODS 經典復古系列-Jill - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-YN27","featured_media":{"alt":null,"id":25817003098211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b43123806e7bf498b9f54e1f00aeb30e3aae8c_4c868947-c5ef-439d-ba60-f1462f84666f.webp?v=1752475929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }