$product = {"id":7888637198435,"title":"iPhone 14 Plus Mod NX 餃貓FAMILY LAZY DAY","handle":"iphone-14-plus-mod-nx-printable-dm02","description":null,"published_at":"2025-09-23T09:00:25+08:00","created_at":"2025-09-22T16:55:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-dumplingcat","device-iPhone 14 Plus","merge","reseller-dumplingcat"],"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":43743862227043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515840237667,"product_id":7888637198435,"position":1,"created_at":"2025-09-22T16:55:37+08:00","updated_at":"2025-09-22T16:55:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339","variant_ids":[43743862227043]},"available":true,"name":"iPhone 14 Plus Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086277808227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f03ad3aba3b15884f7d97779cf1d989364e8cc80.webp?v=1758531339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320e354be58ea781855dc1624d009411a59991c3.webp?v=1758531340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debb9d890548b90a93da574b85ffcc3aa6283261.webp?v=1758531341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1962a213dbc2d937a4a05293af7bacec988bfc6.webp?v=1758531341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319a8c2661d199980876396d7347834dea3e687d.webp?v=1758531342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a6c7de4da7c378d5b0c266d4eb7b16fa9aecaa.webp?v=1758531342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d5c465389020410d203dfa26cb7d5707fe49386.webp?v=1758531342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b523c46f2564f2c1cd58b44156637a48e658d8d.webp?v=1758531343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e0724a97590b60b3534deac2309b95bf98e13c.webp?v=1758531344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6babf82f2a23e8b27b8034f16739c9c43187ad80.webp?v=1758531344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8f9fe526cac2dd034f5ba3b535c7333276ab92f.webp?v=1758531344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc5cf8c4765f4d1289ad5f5b3d5ce30b9338d1e.webp?v=1758531345"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339","options":["color"],"media":[{"alt":null,"id":26086277808227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339","width":2000},{"alt":null,"id":26086278004835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f03ad3aba3b15884f7d97779cf1d989364e8cc80.webp?v=1758531339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f03ad3aba3b15884f7d97779cf1d989364e8cc80.webp?v=1758531339","width":2000},{"alt":null,"id":26086278234211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320e354be58ea781855dc1624d009411a59991c3.webp?v=1758531340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320e354be58ea781855dc1624d009411a59991c3.webp?v=1758531340","width":2000},{"alt":null,"id":26086278758499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debb9d890548b90a93da574b85ffcc3aa6283261.webp?v=1758531341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debb9d890548b90a93da574b85ffcc3aa6283261.webp?v=1758531341","width":2000},{"alt":null,"id":26086278955107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1962a213dbc2d937a4a05293af7bacec988bfc6.webp?v=1758531341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1962a213dbc2d937a4a05293af7bacec988bfc6.webp?v=1758531341","width":2000},{"alt":null,"id":26086279086179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319a8c2661d199980876396d7347834dea3e687d.webp?v=1758531342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319a8c2661d199980876396d7347834dea3e687d.webp?v=1758531342","width":2000},{"alt":null,"id":26086279315555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a6c7de4da7c378d5b0c266d4eb7b16fa9aecaa.webp?v=1758531342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a6c7de4da7c378d5b0c266d4eb7b16fa9aecaa.webp?v=1758531342","width":2000},{"alt":null,"id":26086279544931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d5c465389020410d203dfa26cb7d5707fe49386.webp?v=1758531342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d5c465389020410d203dfa26cb7d5707fe49386.webp?v=1758531342","width":2000},{"alt":null,"id":26086279676003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b523c46f2564f2c1cd58b44156637a48e658d8d.webp?v=1758531343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b523c46f2564f2c1cd58b44156637a48e658d8d.webp?v=1758531343","width":2000},{"alt":null,"id":26086279839843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e0724a97590b60b3534deac2309b95bf98e13c.webp?v=1758531344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e0724a97590b60b3534deac2309b95bf98e13c.webp?v=1758531344","width":2000},{"alt":null,"id":26086279970915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6babf82f2a23e8b27b8034f16739c9c43187ad80.webp?v=1758531344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6babf82f2a23e8b27b8034f16739c9c43187ad80.webp?v=1758531344","width":2000},{"alt":null,"id":26086280101987,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8f9fe526cac2dd034f5ba3b535c7333276ab92f.webp?v=1758531344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8f9fe526cac2dd034f5ba3b535c7333276ab92f.webp?v=1758531344","width":2000},{"alt":null,"id":26086280364131,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc5cf8c4765f4d1289ad5f5b3d5ce30b9338d1e.webp?v=1758531345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc5cf8c4765f4d1289ad5f5b3d5ce30b9338d1e.webp?v=1758531345","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743862227043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515840237667,"product_id":7888637198435,"position":1,"created_at":"2025-09-22T16:55:37+08:00","updated_at":"2025-09-22T16:55:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339","variant_ids":[43743862227043]},"available":true,"name":"iPhone 14 Plus Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086277808227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743862227043,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515840237667,"product_id":7888637198435,"position":1,"created_at":"2025-09-22T16:55:37+08:00","updated_at":"2025-09-22T16:55:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339","variant_ids":[43743862227043]},"available":true,"name":"iPhone 14 Plus Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086277808227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf78d6f60bd8b87808ba2de39042b9b2e23f71a.webp?v=1758531339"}},"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: "停產" }