$product = {"id":7893805596771,"title":"iPhone 14 Plus Mod NX Chubbynida 紫野花語","handle":"iphone-14-plus-mod-nx-printable-chu01","description":null,"published_at":"2025-10-09T09:34:18+08:00","created_at":"2025-10-07T10:15:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 14 Plus","merge","reseller-chubbynida"],"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":43763335856227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CHU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34553064161379,"product_id":7893805596771,"position":1,"created_at":"2025-10-07T10:15:33+08:00","updated_at":"2025-10-07T10:15:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335","variant_ids":[43763335856227]},"available":true,"name":"iPhone 14 Plus Mod NX Chubbynida 紫野花語 - 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-CHU01","featured_media":{"alt":null,"id":26122711859299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/887f9c24a87577c6d38c2875c3f514e3b0a4aeeb.webp?v=1759803336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0cc804825179aa3fe9cbe0362ad8bd7d4b117c.webp?v=1759803337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6563301fb924d61aa75b3be8f2a0c99b7a399329.webp?v=1759803337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef8177e9db149c96cc00442ccb314bbda852241.webp?v=1759803338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42636d90d6cb164c24c2eee661fe7b9987ca863c.webp?v=1759803339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cdc3c4f516bfe2e2d93b96d2122e5a7cb2d8283.webp?v=1759803340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c8fd3a602a05962f551fd7e51141834868ef9a2.webp?v=1759803340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77015f9d2d2a47a1a721d1c1426e22b5dcb66621.webp?v=1759803341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587a39928d3e3a96e95ddd981e5964b9bd2e50b5.webp?v=1759803341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0871184edafae8df33667ac0f6cb8d2189e580.webp?v=1759803342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c163958cefac77c814304dbc2a033e75bbbe35.webp?v=1759803343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1538867425ab49164ac71b9460faa61564ce4ec3.webp?v=1759803344"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335","options":["color"],"media":[{"alt":null,"id":26122711859299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335","width":2000},{"alt":null,"id":26122712023139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/887f9c24a87577c6d38c2875c3f514e3b0a4aeeb.webp?v=1759803336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/887f9c24a87577c6d38c2875c3f514e3b0a4aeeb.webp?v=1759803336","width":2000},{"alt":null,"id":26122712252515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0cc804825179aa3fe9cbe0362ad8bd7d4b117c.webp?v=1759803337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0cc804825179aa3fe9cbe0362ad8bd7d4b117c.webp?v=1759803337","width":2000},{"alt":null,"id":26122712514659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6563301fb924d61aa75b3be8f2a0c99b7a399329.webp?v=1759803337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6563301fb924d61aa75b3be8f2a0c99b7a399329.webp?v=1759803337","width":2000},{"alt":null,"id":26122712645731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef8177e9db149c96cc00442ccb314bbda852241.webp?v=1759803338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef8177e9db149c96cc00442ccb314bbda852241.webp?v=1759803338","width":2000},{"alt":null,"id":26122712842339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42636d90d6cb164c24c2eee661fe7b9987ca863c.webp?v=1759803339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42636d90d6cb164c24c2eee661fe7b9987ca863c.webp?v=1759803339","width":2000},{"alt":null,"id":26122713006179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cdc3c4f516bfe2e2d93b96d2122e5a7cb2d8283.webp?v=1759803340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cdc3c4f516bfe2e2d93b96d2122e5a7cb2d8283.webp?v=1759803340","width":2000},{"alt":null,"id":26122713170019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c8fd3a602a05962f551fd7e51141834868ef9a2.webp?v=1759803340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c8fd3a602a05962f551fd7e51141834868ef9a2.webp?v=1759803340","width":2000},{"alt":null,"id":26122713432163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77015f9d2d2a47a1a721d1c1426e22b5dcb66621.webp?v=1759803341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77015f9d2d2a47a1a721d1c1426e22b5dcb66621.webp?v=1759803341","width":2000},{"alt":null,"id":26122713628771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587a39928d3e3a96e95ddd981e5964b9bd2e50b5.webp?v=1759803341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587a39928d3e3a96e95ddd981e5964b9bd2e50b5.webp?v=1759803341","width":2000},{"alt":null,"id":26122713858147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0871184edafae8df33667ac0f6cb8d2189e580.webp?v=1759803342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0871184edafae8df33667ac0f6cb8d2189e580.webp?v=1759803342","width":2000},{"alt":null,"id":26122714153059,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c163958cefac77c814304dbc2a033e75bbbe35.webp?v=1759803343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c163958cefac77c814304dbc2a033e75bbbe35.webp?v=1759803343","width":2000},{"alt":null,"id":26122714349667,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1538867425ab49164ac71b9460faa61564ce4ec3.webp?v=1759803344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1538867425ab49164ac71b9460faa61564ce4ec3.webp?v=1759803344","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763335856227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CHU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34553064161379,"product_id":7893805596771,"position":1,"created_at":"2025-10-07T10:15:33+08:00","updated_at":"2025-10-07T10:15:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335","variant_ids":[43763335856227]},"available":true,"name":"iPhone 14 Plus Mod NX Chubbynida 紫野花語 - 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-CHU01","featured_media":{"alt":null,"id":26122711859299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763335856227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CHU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34553064161379,"product_id":7893805596771,"position":1,"created_at":"2025-10-07T10:15:33+08:00","updated_at":"2025-10-07T10:15:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335","variant_ids":[43763335856227]},"available":true,"name":"iPhone 14 Plus Mod NX Chubbynida 紫野花語 - 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-CHU01","featured_media":{"alt":null,"id":26122711859299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee5fac22c845eddac05a31076b0d7cc44ded37e.webp?v=1759803335"}},"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: "停產" }