$product = {"id":7888374464611,"title":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER!","handle":"iphone-14-pro-mod-nx-printable-iq04","description":null,"published_at":"2025-09-23T09:23:11+08:00","created_at":"2025-09-22T15:14:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kingjun","device-iPhone 14 Pro","merge","reseller-kingjun"],"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":43742872567907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514160418915,"product_id":7888374464611,"position":9,"created_at":"2025-09-22T15:14:53+08:00","updated_at":"2025-09-22T15:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295","variant_ids":[43742872567907]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER! - 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-IQ04","featured_media":{"alt":null,"id":26084602937443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742872764515,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514159730787,"product_id":7888374464611,"position":4,"created_at":"2025-09-22T15:14:51+08:00","updated_at":"2025-09-22T15:14:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a039b3aa75373a1d42253ba7d1a1f585b380308.webp?v=1758525293","variant_ids":[43742872764515]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER! - 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-IQ04","featured_media":{"alt":null,"id":26084602249315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a039b3aa75373a1d42253ba7d1a1f585b380308.webp?v=1758525293"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742872830051,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514160615523,"product_id":7888374464611,"position":10,"created_at":"2025-09-22T15:14:54+08:00","updated_at":"2025-09-22T15:14:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa8680728820d7df9da0313e7f63f9b5b8ae98ac.webp?v=1758525296","variant_ids":[43742872830051]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER! - 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-IQ04","featured_media":{"alt":null,"id":26084603134051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa8680728820d7df9da0313e7f63f9b5b8ae98ac.webp?v=1758525296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c06f1ca29666b69e014b42809963d67c0b0bea.webp?v=1758525291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83c822a073cbdb964ee37ca3ec61b8315f5a66c.webp?v=1758525292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d9b5f2b504237bdc873af90bd7c07635364a22.webp?v=1758525292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a039b3aa75373a1d42253ba7d1a1f585b380308.webp?v=1758525293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032a5bdcf8cf954021cb6d5d7dae88454b65d42d.webp?v=1758525293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/697cb5dd81b5eb957cd85e57685972c13e61ac9b.webp?v=1758525294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b16bb8f2d37714f5167a79e448d628f82a923d.webp?v=1758525294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb0b33d008f830361cbaefa0177ff1a1b1af25b3.webp?v=1758525295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa8680728820d7df9da0313e7f63f9b5b8ae98ac.webp?v=1758525296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c378114fc8e5be9a126a607ef4eccc28439196ad.webp?v=1758525296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7998c866e8caab9720ae7bf5291eff08943f13c1.webp?v=1758525297"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c06f1ca29666b69e014b42809963d67c0b0bea.webp?v=1758525291","options":["color"],"media":[{"alt":null,"id":26084601888867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c06f1ca29666b69e014b42809963d67c0b0bea.webp?v=1758525291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c06f1ca29666b69e014b42809963d67c0b0bea.webp?v=1758525291","width":2000},{"alt":null,"id":26084601987171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83c822a073cbdb964ee37ca3ec61b8315f5a66c.webp?v=1758525292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83c822a073cbdb964ee37ca3ec61b8315f5a66c.webp?v=1758525292","width":2000},{"alt":null,"id":26084602085475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d9b5f2b504237bdc873af90bd7c07635364a22.webp?v=1758525292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d9b5f2b504237bdc873af90bd7c07635364a22.webp?v=1758525292","width":2000},{"alt":null,"id":26084602249315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a039b3aa75373a1d42253ba7d1a1f585b380308.webp?v=1758525293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a039b3aa75373a1d42253ba7d1a1f585b380308.webp?v=1758525293","width":2000},{"alt":null,"id":26084602380387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032a5bdcf8cf954021cb6d5d7dae88454b65d42d.webp?v=1758525293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032a5bdcf8cf954021cb6d5d7dae88454b65d42d.webp?v=1758525293","width":2000},{"alt":null,"id":26084602544227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/697cb5dd81b5eb957cd85e57685972c13e61ac9b.webp?v=1758525294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/697cb5dd81b5eb957cd85e57685972c13e61ac9b.webp?v=1758525294","width":2000},{"alt":null,"id":26084602675299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b16bb8f2d37714f5167a79e448d628f82a923d.webp?v=1758525294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59b16bb8f2d37714f5167a79e448d628f82a923d.webp?v=1758525294","width":2000},{"alt":null,"id":26084602773603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb0b33d008f830361cbaefa0177ff1a1b1af25b3.webp?v=1758525295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb0b33d008f830361cbaefa0177ff1a1b1af25b3.webp?v=1758525295","width":2000},{"alt":null,"id":26084602937443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295","width":2000},{"alt":null,"id":26084603134051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa8680728820d7df9da0313e7f63f9b5b8ae98ac.webp?v=1758525296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa8680728820d7df9da0313e7f63f9b5b8ae98ac.webp?v=1758525296","width":2000},{"alt":null,"id":26084603265123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c378114fc8e5be9a126a607ef4eccc28439196ad.webp?v=1758525296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c378114fc8e5be9a126a607ef4eccc28439196ad.webp?v=1758525296","width":2000},{"alt":null,"id":26084603461731,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7998c866e8caab9720ae7bf5291eff08943f13c1.webp?v=1758525297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7998c866e8caab9720ae7bf5291eff08943f13c1.webp?v=1758525297","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43742872567907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514160418915,"product_id":7888374464611,"position":9,"created_at":"2025-09-22T15:14:53+08:00","updated_at":"2025-09-22T15:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295","variant_ids":[43742872567907]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER! - 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-IQ04","featured_media":{"alt":null,"id":26084602937443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742872764515,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514159730787,"product_id":7888374464611,"position":4,"created_at":"2025-09-22T15:14:51+08:00","updated_at":"2025-09-22T15:14:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a039b3aa75373a1d42253ba7d1a1f585b380308.webp?v=1758525293","variant_ids":[43742872764515]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER! - 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-IQ04","featured_media":{"alt":null,"id":26084602249315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a039b3aa75373a1d42253ba7d1a1f585b380308.webp?v=1758525293"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742872830051,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514160615523,"product_id":7888374464611,"position":10,"created_at":"2025-09-22T15:14:54+08:00","updated_at":"2025-09-22T15:14:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa8680728820d7df9da0313e7f63f9b5b8ae98ac.webp?v=1758525296","variant_ids":[43742872830051]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER! - 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-IQ04","featured_media":{"alt":null,"id":26084603134051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa8680728820d7df9da0313e7f63f9b5b8ae98ac.webp?v=1758525296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43742872567907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514160418915,"product_id":7888374464611,"position":9,"created_at":"2025-09-22T15:14:53+08:00","updated_at":"2025-09-22T15:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295","variant_ids":[43742872567907]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello VIRUS FLOWER! - 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-IQ04","featured_media":{"alt":null,"id":26084602937443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ce30169bbeac6943d35d94e3f283e1019665e6.webp?v=1758525295"}},"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: "停產" }