$product = {"id":7951284338787,"title":"iPhone 14 Plus Mod NX 田中 Shen Sparkly","handle":"iphone-14-plus-mod-nx-tan04","description":null,"published_at":"2026-01-13T10:18:51+08:00","created_at":"2026-01-12T17:09:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tanakashen","device-iPhone 14 Plus","merge","reseller-tanakashen"],"price":90000,"price_min":90000,"price_max":90000,"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":43946233528419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TAN04","requires_shipping":true,"taxable":true,"featured_image":{"id":35093952757859,"product_id":7951284338787,"position":3,"created_at":"2026-01-12T17:09:40+08:00","updated_at":"2026-01-12T17:09:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982","variant_ids":[43946233528419]},"available":true,"name":"iPhone 14 Plus Mod NX 田中 Shen Sparkly - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-TAN04","featured_media":{"alt":null,"id":26650608566371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2c39830a6a86c7b72c46a5a0012720725dc03f.webp?v=1768208981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f50b4ad453d7c134d2ac031c0ea25d9a3488df.webp?v=1768208982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ddaf64072cab5ef631cfc47624790265338024.webp?v=1768208982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abdcdc1fa947eb33ec08952ea9ab84cccad176a.webp?v=1768208983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f877da874451586ce8fb197e4329d064e984182.webp?v=1768208983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5753af698e46ab9be1351eaef00b053ad4343c.webp?v=1768208984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe11e03bf87ff1937f59f45fcdceabd4437c367.webp?v=1768208984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf6b9d44234605a2e9adaaab74325a16aac957d6.webp?v=1768208985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ffdf0accf6d555807c53732ebdcfe6645679c.webp?v=1768208985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acddd5b215864ee2bc08dec41c00ed1b67ca7b34.webp?v=1768208986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db108cde14edd7783efdaf8ca59389ff50c7ef0f.webp?v=1768208987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85087dcd8984175e41184393ef5e41431540dfdd.webp?v=1768208987"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2c39830a6a86c7b72c46a5a0012720725dc03f.webp?v=1768208981","options":["color"],"media":[{"alt":null,"id":26650608271459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2c39830a6a86c7b72c46a5a0012720725dc03f.webp?v=1768208981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2c39830a6a86c7b72c46a5a0012720725dc03f.webp?v=1768208981","width":2000},{"alt":null,"id":26650608468067,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f50b4ad453d7c134d2ac031c0ea25d9a3488df.webp?v=1768208982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f50b4ad453d7c134d2ac031c0ea25d9a3488df.webp?v=1768208982","width":2000},{"alt":null,"id":26650608566371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982","width":2000},{"alt":null,"id":26650608730211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ddaf64072cab5ef631cfc47624790265338024.webp?v=1768208982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ddaf64072cab5ef631cfc47624790265338024.webp?v=1768208982","width":2000},{"alt":null,"id":26650608894051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abdcdc1fa947eb33ec08952ea9ab84cccad176a.webp?v=1768208983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abdcdc1fa947eb33ec08952ea9ab84cccad176a.webp?v=1768208983","width":2000},{"alt":null,"id":26650609057891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f877da874451586ce8fb197e4329d064e984182.webp?v=1768208983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f877da874451586ce8fb197e4329d064e984182.webp?v=1768208983","width":2000},{"alt":null,"id":26650609320035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5753af698e46ab9be1351eaef00b053ad4343c.webp?v=1768208984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5753af698e46ab9be1351eaef00b053ad4343c.webp?v=1768208984","width":2000},{"alt":null,"id":26650609614947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe11e03bf87ff1937f59f45fcdceabd4437c367.webp?v=1768208984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe11e03bf87ff1937f59f45fcdceabd4437c367.webp?v=1768208984","width":2000},{"alt":null,"id":26650609811555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf6b9d44234605a2e9adaaab74325a16aac957d6.webp?v=1768208985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf6b9d44234605a2e9adaaab74325a16aac957d6.webp?v=1768208985","width":2000},{"alt":null,"id":26650610008163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ffdf0accf6d555807c53732ebdcfe6645679c.webp?v=1768208985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ffdf0accf6d555807c53732ebdcfe6645679c.webp?v=1768208985","width":2000},{"alt":null,"id":26650610172003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acddd5b215864ee2bc08dec41c00ed1b67ca7b34.webp?v=1768208986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acddd5b215864ee2bc08dec41c00ed1b67ca7b34.webp?v=1768208986","width":2000},{"alt":null,"id":26650610401379,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db108cde14edd7783efdaf8ca59389ff50c7ef0f.webp?v=1768208987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db108cde14edd7783efdaf8ca59389ff50c7ef0f.webp?v=1768208987","width":2000},{"alt":null,"id":26650610565219,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85087dcd8984175e41184393ef5e41431540dfdd.webp?v=1768208987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85087dcd8984175e41184393ef5e41431540dfdd.webp?v=1768208987","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43946233528419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TAN04","requires_shipping":true,"taxable":true,"featured_image":{"id":35093952757859,"product_id":7951284338787,"position":3,"created_at":"2026-01-12T17:09:40+08:00","updated_at":"2026-01-12T17:09:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982","variant_ids":[43946233528419]},"available":true,"name":"iPhone 14 Plus Mod NX 田中 Shen Sparkly - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-TAN04","featured_media":{"alt":null,"id":26650608566371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43946233528419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TAN04","requires_shipping":true,"taxable":true,"featured_image":{"id":35093952757859,"product_id":7951284338787,"position":3,"created_at":"2026-01-12T17:09:40+08:00","updated_at":"2026-01-12T17:09:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982","variant_ids":[43946233528419]},"available":true,"name":"iPhone 14 Plus Mod NX 田中 Shen Sparkly - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-TAN04","featured_media":{"alt":null,"id":26650608566371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bce2de4970c077a37fc5cf8f15778302ff94e177.webp?v=1768208982"}},"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: "停產" }