$product = {"id":7876160913507,"title":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了","handle":"iphone-14-pro-mod-nx-printable-ea107","description":null,"published_at":"2025-09-04T09:20:33+08:00","created_at":"2025-09-03T12:17:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 14 Pro","merge","reseller-songsongmeow"],"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":43675668185187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416631283811,"product_id":7876160913507,"position":7,"created_at":"2025-09-03T12:17:30+08:00","updated_at":"2025-09-03T12:17:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052","variant_ids":[43675668185187]},"available":true,"name":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EA107","featured_media":{"alt":null,"id":25988905795683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675668349027,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416631840867,"product_id":7876160913507,"position":11,"created_at":"2025-09-03T12:17:33+08:00","updated_at":"2025-09-03T12:17:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f54cf9f1f5ad7abf12bed0631ef18a1f9a1728.webp?v=1756873055","variant_ids":[43675668349027]},"available":true,"name":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EA107","featured_media":{"alt":null,"id":25988906352739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f54cf9f1f5ad7abf12bed0631ef18a1f9a1728.webp?v=1756873055"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675668447331,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416631677027,"product_id":7876160913507,"position":10,"created_at":"2025-09-03T12:17:32+08:00","updated_at":"2025-09-03T12:17:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee3a4112eb726a1251101df161134c645f228ad.webp?v=1756873054","variant_ids":[43675668447331]},"available":true,"name":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EA107","featured_media":{"alt":null,"id":25988906188899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee3a4112eb726a1251101df161134c645f228ad.webp?v=1756873054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b0162d2ffd00c85db65b173b1ac6c2cd4097fb5.webp?v=1756873048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6edf22a9bb907913c91d9483db6e46a64cd96e8c.webp?v=1756873048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f0e53fae993942525e4dd6a7feb8c34e4edd8b.webp?v=1756873049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/602f2d18b247b10f0d6ae5c27676416d79b296b2.webp?v=1756873049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d4b2d298cbac153485662ad91c6a1f96d9608bd.webp?v=1756873050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/526e206b7bd7bd42b19a652662a819f0dcbe740e.webp?v=1756873051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7f3aae039fe8acf3151b72a3da1f7cad735c076.webp?v=1756873053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343b3ab403745fed84f7a74a1eb0c9bf81f88436.webp?v=1756873054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee3a4112eb726a1251101df161134c645f228ad.webp?v=1756873054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f54cf9f1f5ad7abf12bed0631ef18a1f9a1728.webp?v=1756873055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9396d22f098690d8a4c539a68d691d67568f3f71.webp?v=1756873056"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b0162d2ffd00c85db65b173b1ac6c2cd4097fb5.webp?v=1756873048","options":["color"],"media":[{"alt":null,"id":25988904779875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b0162d2ffd00c85db65b173b1ac6c2cd4097fb5.webp?v=1756873048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b0162d2ffd00c85db65b173b1ac6c2cd4097fb5.webp?v=1756873048","width":2000},{"alt":null,"id":25988905009251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6edf22a9bb907913c91d9483db6e46a64cd96e8c.webp?v=1756873048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6edf22a9bb907913c91d9483db6e46a64cd96e8c.webp?v=1756873048","width":2000},{"alt":null,"id":25988905107555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f0e53fae993942525e4dd6a7feb8c34e4edd8b.webp?v=1756873049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f0e53fae993942525e4dd6a7feb8c34e4edd8b.webp?v=1756873049","width":2000},{"alt":null,"id":25988905238627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/602f2d18b247b10f0d6ae5c27676416d79b296b2.webp?v=1756873049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/602f2d18b247b10f0d6ae5c27676416d79b296b2.webp?v=1756873049","width":2000},{"alt":null,"id":25988905402467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d4b2d298cbac153485662ad91c6a1f96d9608bd.webp?v=1756873050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d4b2d298cbac153485662ad91c6a1f96d9608bd.webp?v=1756873050","width":2000},{"alt":null,"id":25988905631843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/526e206b7bd7bd42b19a652662a819f0dcbe740e.webp?v=1756873051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/526e206b7bd7bd42b19a652662a819f0dcbe740e.webp?v=1756873051","width":2000},{"alt":null,"id":25988905795683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052","width":2000},{"alt":null,"id":25988905959523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7f3aae039fe8acf3151b72a3da1f7cad735c076.webp?v=1756873053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7f3aae039fe8acf3151b72a3da1f7cad735c076.webp?v=1756873053","width":2000},{"alt":null,"id":25988906057827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343b3ab403745fed84f7a74a1eb0c9bf81f88436.webp?v=1756873054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343b3ab403745fed84f7a74a1eb0c9bf81f88436.webp?v=1756873054","width":2000},{"alt":null,"id":25988906188899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee3a4112eb726a1251101df161134c645f228ad.webp?v=1756873054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee3a4112eb726a1251101df161134c645f228ad.webp?v=1756873054","width":2000},{"alt":null,"id":25988906352739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f54cf9f1f5ad7abf12bed0631ef18a1f9a1728.webp?v=1756873055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f54cf9f1f5ad7abf12bed0631ef18a1f9a1728.webp?v=1756873055","width":2000},{"alt":null,"id":25988906549347,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9396d22f098690d8a4c539a68d691d67568f3f71.webp?v=1756873056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9396d22f098690d8a4c539a68d691d67568f3f71.webp?v=1756873056","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675668185187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416631283811,"product_id":7876160913507,"position":7,"created_at":"2025-09-03T12:17:30+08:00","updated_at":"2025-09-03T12:17:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052","variant_ids":[43675668185187]},"available":true,"name":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EA107","featured_media":{"alt":null,"id":25988905795683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675668349027,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416631840867,"product_id":7876160913507,"position":11,"created_at":"2025-09-03T12:17:33+08:00","updated_at":"2025-09-03T12:17:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f54cf9f1f5ad7abf12bed0631ef18a1f9a1728.webp?v=1756873055","variant_ids":[43675668349027]},"available":true,"name":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EA107","featured_media":{"alt":null,"id":25988906352739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f54cf9f1f5ad7abf12bed0631ef18a1f9a1728.webp?v=1756873055"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675668447331,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416631677027,"product_id":7876160913507,"position":10,"created_at":"2025-09-03T12:17:32+08:00","updated_at":"2025-09-03T12:17:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee3a4112eb726a1251101df161134c645f228ad.webp?v=1756873054","variant_ids":[43675668447331]},"available":true,"name":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EA107","featured_media":{"alt":null,"id":25988906188899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee3a4112eb726a1251101df161134c645f228ad.webp?v=1756873054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675668185187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416631283811,"product_id":7876160913507,"position":7,"created_at":"2025-09-03T12:17:30+08:00","updated_at":"2025-09-03T12:17:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052","variant_ids":[43675668185187]},"available":true,"name":"iPhone 14 Pro Mod NX 爽爽貓 by SECOND 愛了愛了 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EA107","featured_media":{"alt":null,"id":25988905795683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/902acce9c38f685b799a45ffb68d48e0455216eb.webp?v=1756873052"}},"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: "停產" }