$product = {"id":7892699938915,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl","handle":"iphone-14-plus-mod-nx-magsafe-printable-aar02","description":null,"published_at":"2025-10-03T09:37:49+08:00","created_at":"2025-10-02T10:14:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 14 Plus","merge","reseller-aaronchang"],"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":43756822233187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543874244707,"product_id":7892699938915,"position":9,"created_at":"2025-10-02T10:14:52+08:00","updated_at":"2025-10-02T10:14:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294","variant_ids":[43756822233187]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl - 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-AAR02","featured_media":{"alt":null,"id":26113629126755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59e1e5b34e6aab199175083f0416699e861f6c1.webp?v=1759371289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/415470c34e1dc3c70a3fc9dc3f0a6c008741dec1.webp?v=1759371289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ce00a07aa82bb875e6e0dc37b6de00875fb432d.webp?v=1759371290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08864773c7f04849d50f39ba55a06aa46601553.webp?v=1759371291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dd8d52c0548a119d1f3a474b327e996f9cdf971.webp?v=1759371292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7505a6696cbe8b7382f5acc1b29ac6139aa19d.webp?v=1759371292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9f49e562720855480c0564661cc0164d1e25f7.webp?v=1759371293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0792a76afec3efb1b6f415ddd3d84392fa5a86.webp?v=1759371293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013cdfb9d29485e74c364a20bdb218bc8a110100.webp?v=1759371295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e400c6079c2d8a1cf9229297f35c03cdee939f.webp?v=1759371295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2f5bb944e982002796b2a4398d7d0361be8a42.webp?v=1759371296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/babdc87d4173f0c092b244872d242abac75ab5dc.webp?v=1759371297"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59e1e5b34e6aab199175083f0416699e861f6c1.webp?v=1759371289","options":["color"],"media":[{"alt":null,"id":26113627422819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59e1e5b34e6aab199175083f0416699e861f6c1.webp?v=1759371289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59e1e5b34e6aab199175083f0416699e861f6c1.webp?v=1759371289","width":2000},{"alt":null,"id":26113627684963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/415470c34e1dc3c70a3fc9dc3f0a6c008741dec1.webp?v=1759371289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/415470c34e1dc3c70a3fc9dc3f0a6c008741dec1.webp?v=1759371289","width":2000},{"alt":null,"id":26113627914339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ce00a07aa82bb875e6e0dc37b6de00875fb432d.webp?v=1759371290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ce00a07aa82bb875e6e0dc37b6de00875fb432d.webp?v=1759371290","width":2000},{"alt":null,"id":26113628110947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08864773c7f04849d50f39ba55a06aa46601553.webp?v=1759371291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08864773c7f04849d50f39ba55a06aa46601553.webp?v=1759371291","width":2000},{"alt":null,"id":26113628307555,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dd8d52c0548a119d1f3a474b327e996f9cdf971.webp?v=1759371292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dd8d52c0548a119d1f3a474b327e996f9cdf971.webp?v=1759371292","width":2000},{"alt":null,"id":26113628471395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7505a6696cbe8b7382f5acc1b29ac6139aa19d.webp?v=1759371292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7505a6696cbe8b7382f5acc1b29ac6139aa19d.webp?v=1759371292","width":2000},{"alt":null,"id":26113628668003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9f49e562720855480c0564661cc0164d1e25f7.webp?v=1759371293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9f49e562720855480c0564661cc0164d1e25f7.webp?v=1759371293","width":2000},{"alt":null,"id":26113628831843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0792a76afec3efb1b6f415ddd3d84392fa5a86.webp?v=1759371293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe0792a76afec3efb1b6f415ddd3d84392fa5a86.webp?v=1759371293","width":2000},{"alt":null,"id":26113629126755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294","width":2000},{"alt":null,"id":26113629290595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013cdfb9d29485e74c364a20bdb218bc8a110100.webp?v=1759371295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013cdfb9d29485e74c364a20bdb218bc8a110100.webp?v=1759371295","width":2000},{"alt":null,"id":26113629421667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e400c6079c2d8a1cf9229297f35c03cdee939f.webp?v=1759371295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e400c6079c2d8a1cf9229297f35c03cdee939f.webp?v=1759371295","width":2000},{"alt":null,"id":26113629552739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2f5bb944e982002796b2a4398d7d0361be8a42.webp?v=1759371296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2f5bb944e982002796b2a4398d7d0361be8a42.webp?v=1759371296","width":2000},{"alt":null,"id":26113629716579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/babdc87d4173f0c092b244872d242abac75ab5dc.webp?v=1759371297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/babdc87d4173f0c092b244872d242abac75ab5dc.webp?v=1759371297","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43756822233187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543874244707,"product_id":7892699938915,"position":9,"created_at":"2025-10-02T10:14:52+08:00","updated_at":"2025-10-02T10:14:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294","variant_ids":[43756822233187]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl - 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-AAR02","featured_media":{"alt":null,"id":26113629126755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43756822233187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543874244707,"product_id":7892699938915,"position":9,"created_at":"2025-10-02T10:14:52+08:00","updated_at":"2025-10-02T10:14:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294","variant_ids":[43756822233187]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl - 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-AAR02","featured_media":{"alt":null,"id":26113629126755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940f2977ba56a0915ad2fecf05797bb39047b104.webp?v=1759371294"}},"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: "停產" }