$product = {"id":7937715470435,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) Jin Young Choi 番茄兄弟","handle":"iphone-12-mini-mod-nx-magsafe-cjy14","description":null,"published_at":"2025-12-12T09:21:40+08:00","created_at":"2025-12-11T10:29:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jychoioioi","device-iPhone 12 Mini","merge","reseller-jychoioioi"],"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":43883572101219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-CJY14","requires_shipping":true,"taxable":true,"featured_image":{"id":34931854147683,"product_id":7937715470435,"position":9,"created_at":"2025-12-11T10:29:18+08:00","updated_at":"2025-12-11T10:29:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159","variant_ids":[43883572101219]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Jin Young Choi 番茄兄弟 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-CJY14","featured_media":{"alt":null,"id":26494228398179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cfd40a30cfe8a934f8f88d8381b8ec459edc185.webp?v=1765420153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a29462a7a3ab63d89f4965465207371eb38ddc8.webp?v=1765420153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dca5c68282b48610a774402155a349422273732.webp?v=1765420154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39071436343b3d58f0dad398297dea4b53e4fde.webp?v=1765420154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3a041e4b7c05f2f72d6eaef1dbf787a26f3d0e.webp?v=1765420157","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceca7748bb0c5e783111406ec0e30147d863a09f.webp?v=1765420158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcc39af394c334f4289b5520d2c621d5984ebd2b.webp?v=1765420158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a79433dbaa286afb4a3f89a5212cb07077d96f.webp?v=1765420159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47deb534d3c3444f47cd900067612b1e5132b3dd.webp?v=1765420160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/566c4dcc88cd9473bec947ff07d02588622ea392.webp?v=1765420161"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cfd40a30cfe8a934f8f88d8381b8ec459edc185.webp?v=1765420153","options":["color"],"media":[{"alt":null,"id":26494226464867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cfd40a30cfe8a934f8f88d8381b8ec459edc185.webp?v=1765420153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cfd40a30cfe8a934f8f88d8381b8ec459edc185.webp?v=1765420153","width":2000},{"alt":null,"id":26494226694243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a29462a7a3ab63d89f4965465207371eb38ddc8.webp?v=1765420153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a29462a7a3ab63d89f4965465207371eb38ddc8.webp?v=1765420153","width":2000},{"alt":null,"id":26494226825315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dca5c68282b48610a774402155a349422273732.webp?v=1765420154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dca5c68282b48610a774402155a349422273732.webp?v=1765420154","width":2000},{"alt":null,"id":26494226923619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39071436343b3d58f0dad398297dea4b53e4fde.webp?v=1765420154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39071436343b3d58f0dad398297dea4b53e4fde.webp?v=1765420154","width":2000},{"alt":null,"id":26494227284067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3a041e4b7c05f2f72d6eaef1dbf787a26f3d0e.webp?v=1765420157"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3a041e4b7c05f2f72d6eaef1dbf787a26f3d0e.webp?v=1765420157","width":2000},{"alt":null,"id":26494227578979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceca7748bb0c5e783111406ec0e30147d863a09f.webp?v=1765420158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceca7748bb0c5e783111406ec0e30147d863a09f.webp?v=1765420158","width":2000},{"alt":null,"id":26494227841123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcc39af394c334f4289b5520d2c621d5984ebd2b.webp?v=1765420158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcc39af394c334f4289b5520d2c621d5984ebd2b.webp?v=1765420158","width":2000},{"alt":null,"id":26494228004963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a79433dbaa286afb4a3f89a5212cb07077d96f.webp?v=1765420159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a79433dbaa286afb4a3f89a5212cb07077d96f.webp?v=1765420159","width":2000},{"alt":null,"id":26494228398179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159","width":2000},{"alt":null,"id":26494228529251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47deb534d3c3444f47cd900067612b1e5132b3dd.webp?v=1765420160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47deb534d3c3444f47cd900067612b1e5132b3dd.webp?v=1765420160","width":2000},{"alt":null,"id":26494228693091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/566c4dcc88cd9473bec947ff07d02588622ea392.webp?v=1765420161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/566c4dcc88cd9473bec947ff07d02588622ea392.webp?v=1765420161","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43883572101219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-CJY14","requires_shipping":true,"taxable":true,"featured_image":{"id":34931854147683,"product_id":7937715470435,"position":9,"created_at":"2025-12-11T10:29:18+08:00","updated_at":"2025-12-11T10:29:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159","variant_ids":[43883572101219]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Jin Young Choi 番茄兄弟 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-CJY14","featured_media":{"alt":null,"id":26494228398179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883572101219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-CJY14","requires_shipping":true,"taxable":true,"featured_image":{"id":34931854147683,"product_id":7937715470435,"position":9,"created_at":"2025-12-11T10:29:18+08:00","updated_at":"2025-12-11T10:29:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159","variant_ids":[43883572101219]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Jin Young Choi 番茄兄弟 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-CJY14","featured_media":{"alt":null,"id":26494228398179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f41617919a49d7c58fe27a7f43797b86c3a547.webp?v=1765420159"}},"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: "停產" }