$product = {"id":7888647946339,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓電玩","handle":"iphone-14-plus-mod-nx-magsafe-printable-dm01","description":null,"published_at":"2025-09-23T08:59:08+08:00","created_at":"2025-09-22T16:57:48+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":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":43743905415267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM01","requires_shipping":true,"taxable":true,"featured_image":{"id":34515888406627,"product_id":7888647946339,"position":1,"created_at":"2025-09-22T16:57:52+08:00","updated_at":"2025-09-22T16:57:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474","variant_ids":[43743905415267]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓電玩 - 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-DM01","featured_media":{"alt":null,"id":26086326272099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cd3651fd9da273a9b8a7456da5a8ec7fd88d2bc.webp?v=1758531475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/474e38d51198704a12cc46b4df1014b721166e55.webp?v=1758531475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039a96b6420e7667e72a358f7fc91045d45ba0eb.webp?v=1758531476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e68dd5d8382280c60d4410e337abb3eeb8e03f8.webp?v=1758531476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/155761f744e2ce7d18c5afa6d7698d83df70eb0e.webp?v=1758531476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b804583fef4154c5e76b3dee45c3c2ec8c18e4.webp?v=1758531477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd0fe35fb14a0c1ae173f2e78603157ab09ce8d2.webp?v=1758531478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa57f7d49a9994dff6d7a65517159c3987c5f747.webp?v=1758531478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247261b54429f4c9fd6db1113b66a7dec446125d.webp?v=1758531479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3800476d36deb786cea081be542476e010e6840.webp?v=1758531479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0109f761a86f4488c77369febccaa3381c29ca73.webp?v=1758531480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a486ab761ad896d1d557e7e11149f5d8965af1.webp?v=1758531480"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474","options":["color"],"media":[{"alt":null,"id":26086326272099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474","width":2000},{"alt":null,"id":26086326435939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cd3651fd9da273a9b8a7456da5a8ec7fd88d2bc.webp?v=1758531475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cd3651fd9da273a9b8a7456da5a8ec7fd88d2bc.webp?v=1758531475","width":2000},{"alt":null,"id":26086326665315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/474e38d51198704a12cc46b4df1014b721166e55.webp?v=1758531475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/474e38d51198704a12cc46b4df1014b721166e55.webp?v=1758531475","width":2000},{"alt":null,"id":26086326861923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039a96b6420e7667e72a358f7fc91045d45ba0eb.webp?v=1758531476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039a96b6420e7667e72a358f7fc91045d45ba0eb.webp?v=1758531476","width":2000},{"alt":null,"id":26086327058531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e68dd5d8382280c60d4410e337abb3eeb8e03f8.webp?v=1758531476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e68dd5d8382280c60d4410e337abb3eeb8e03f8.webp?v=1758531476","width":2000},{"alt":null,"id":26086327320675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/155761f744e2ce7d18c5afa6d7698d83df70eb0e.webp?v=1758531476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/155761f744e2ce7d18c5afa6d7698d83df70eb0e.webp?v=1758531476","width":2000},{"alt":null,"id":26086327550051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b804583fef4154c5e76b3dee45c3c2ec8c18e4.webp?v=1758531477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b804583fef4154c5e76b3dee45c3c2ec8c18e4.webp?v=1758531477","width":2000},{"alt":null,"id":26086327812195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd0fe35fb14a0c1ae173f2e78603157ab09ce8d2.webp?v=1758531478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd0fe35fb14a0c1ae173f2e78603157ab09ce8d2.webp?v=1758531478","width":2000},{"alt":null,"id":26086328008803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa57f7d49a9994dff6d7a65517159c3987c5f747.webp?v=1758531478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa57f7d49a9994dff6d7a65517159c3987c5f747.webp?v=1758531478","width":2000},{"alt":null,"id":26086328205411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247261b54429f4c9fd6db1113b66a7dec446125d.webp?v=1758531479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247261b54429f4c9fd6db1113b66a7dec446125d.webp?v=1758531479","width":2000},{"alt":null,"id":26086328402019,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3800476d36deb786cea081be542476e010e6840.webp?v=1758531479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3800476d36deb786cea081be542476e010e6840.webp?v=1758531479","width":2000},{"alt":null,"id":26086328500323,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0109f761a86f4488c77369febccaa3381c29ca73.webp?v=1758531480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0109f761a86f4488c77369febccaa3381c29ca73.webp?v=1758531480","width":2000},{"alt":null,"id":26086328565859,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a486ab761ad896d1d557e7e11149f5d8965af1.webp?v=1758531480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a486ab761ad896d1d557e7e11149f5d8965af1.webp?v=1758531480","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743905415267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM01","requires_shipping":true,"taxable":true,"featured_image":{"id":34515888406627,"product_id":7888647946339,"position":1,"created_at":"2025-09-22T16:57:52+08:00","updated_at":"2025-09-22T16:57:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474","variant_ids":[43743905415267]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓電玩 - 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-DM01","featured_media":{"alt":null,"id":26086326272099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743905415267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM01","requires_shipping":true,"taxable":true,"featured_image":{"id":34515888406627,"product_id":7888647946339,"position":1,"created_at":"2025-09-22T16:57:52+08:00","updated_at":"2025-09-22T16:57:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474","variant_ids":[43743905415267]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓電玩 - 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-DM01","featured_media":{"alt":null,"id":26086326272099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d31e3e2412430bfec93de753983e5f15fedb8f.webp?v=1758531474"}},"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: "停產" }