$product = {"id":7873235976291,"title":"iPhone 13 mini Mod NX Keigo Sleepy Sloth","handle":"iphone-13-mini-mod-nx-printable-kei08","description":null,"published_at":"2025-09-01T11:07:41+08:00","created_at":"2025-09-01T09:31:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 13 Mini","merge","reseller-keigo"],"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":43658424156259,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0122804-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409778741347,"product_id":7873235976291,"position":7,"created_at":"2025-09-01T09:31:25+08:00","updated_at":"2025-09-01T09:31:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287","variant_ids":[43658424156259]},"available":true,"name":"iPhone 13 mini Mod NX Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-KEI08","featured_media":{"alt":null,"id":25982093885539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658424221795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0122824-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409778511971,"product_id":7873235976291,"position":6,"created_at":"2025-09-01T09:31:24+08:00","updated_at":"2025-09-01T09:31:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65c265fb4b279fb956fe64bc6d7c0f3b5eac2f5.webp?v=1756690286","variant_ids":[43658424221795]},"available":true,"name":"iPhone 13 mini Mod NX Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-KEI08","featured_media":{"alt":null,"id":25982093688931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65c265fb4b279fb956fe64bc6d7c0f3b5eac2f5.webp?v=1756690286"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658424254563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01228J5-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409778315363,"product_id":7873235976291,"position":5,"created_at":"2025-09-01T09:31:23+08:00","updated_at":"2025-09-01T09:31:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022784d67996e56c8abb343da95f81797382899a.webp?v=1756690285","variant_ids":[43658424254563]},"available":true,"name":"iPhone 13 mini Mod NX Keigo Sleepy Sloth - 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":"NPB01228J5-KEI08","featured_media":{"alt":null,"id":25982093492323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022784d67996e56c8abb343da95f81797382899a.webp?v=1756690285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1bb67559576a0bb88c87a63a28a5503811eca0.webp?v=1756690282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01132d7ba8591ac05e60a4e4638db740544db75.webp?v=1756690283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e3142ae502d9a11704500b08d11c146eebb1cb.webp?v=1756690284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/824ac6f9adbe35d1c469e5046688fce2baf8f02c.webp?v=1756690285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022784d67996e56c8abb343da95f81797382899a.webp?v=1756690285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65c265fb4b279fb956fe64bc6d7c0f3b5eac2f5.webp?v=1756690286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256d60ac1873e9fb358e1fc852654fcf496e80ea.webp?v=1756690288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5d08d1aa9d2e06822c7989e20c83456c0269f2.webp?v=1756690289"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1bb67559576a0bb88c87a63a28a5503811eca0.webp?v=1756690282","options":["color"],"media":[{"alt":null,"id":25982092705891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1bb67559576a0bb88c87a63a28a5503811eca0.webp?v=1756690282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1bb67559576a0bb88c87a63a28a5503811eca0.webp?v=1756690282","width":2000},{"alt":null,"id":25982092968035,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01132d7ba8591ac05e60a4e4638db740544db75.webp?v=1756690283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01132d7ba8591ac05e60a4e4638db740544db75.webp?v=1756690283","width":2000},{"alt":null,"id":25982093164643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e3142ae502d9a11704500b08d11c146eebb1cb.webp?v=1756690284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e3142ae502d9a11704500b08d11c146eebb1cb.webp?v=1756690284","width":2000},{"alt":null,"id":25982093328483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/824ac6f9adbe35d1c469e5046688fce2baf8f02c.webp?v=1756690285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/824ac6f9adbe35d1c469e5046688fce2baf8f02c.webp?v=1756690285","width":2000},{"alt":null,"id":25982093492323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022784d67996e56c8abb343da95f81797382899a.webp?v=1756690285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022784d67996e56c8abb343da95f81797382899a.webp?v=1756690285","width":2000},{"alt":null,"id":25982093688931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65c265fb4b279fb956fe64bc6d7c0f3b5eac2f5.webp?v=1756690286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65c265fb4b279fb956fe64bc6d7c0f3b5eac2f5.webp?v=1756690286","width":2000},{"alt":null,"id":25982093885539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287","width":2000},{"alt":null,"id":25982094082147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256d60ac1873e9fb358e1fc852654fcf496e80ea.webp?v=1756690288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256d60ac1873e9fb358e1fc852654fcf496e80ea.webp?v=1756690288","width":2000},{"alt":null,"id":25982094213219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5d08d1aa9d2e06822c7989e20c83456c0269f2.webp?v=1756690289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5d08d1aa9d2e06822c7989e20c83456c0269f2.webp?v=1756690289","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43658424156259,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0122804-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409778741347,"product_id":7873235976291,"position":7,"created_at":"2025-09-01T09:31:25+08:00","updated_at":"2025-09-01T09:31:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287","variant_ids":[43658424156259]},"available":true,"name":"iPhone 13 mini Mod NX Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-KEI08","featured_media":{"alt":null,"id":25982093885539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658424221795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0122824-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409778511971,"product_id":7873235976291,"position":6,"created_at":"2025-09-01T09:31:24+08:00","updated_at":"2025-09-01T09:31:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65c265fb4b279fb956fe64bc6d7c0f3b5eac2f5.webp?v=1756690286","variant_ids":[43658424221795]},"available":true,"name":"iPhone 13 mini Mod NX Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-KEI08","featured_media":{"alt":null,"id":25982093688931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a65c265fb4b279fb956fe64bc6d7c0f3b5eac2f5.webp?v=1756690286"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658424254563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01228J5-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409778315363,"product_id":7873235976291,"position":5,"created_at":"2025-09-01T09:31:23+08:00","updated_at":"2025-09-01T09:31:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022784d67996e56c8abb343da95f81797382899a.webp?v=1756690285","variant_ids":[43658424254563]},"available":true,"name":"iPhone 13 mini Mod NX Keigo Sleepy Sloth - 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":"NPB01228J5-KEI08","featured_media":{"alt":null,"id":25982093492323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022784d67996e56c8abb343da95f81797382899a.webp?v=1756690285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658424156259,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0122804-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409778741347,"product_id":7873235976291,"position":7,"created_at":"2025-09-01T09:31:25+08:00","updated_at":"2025-09-01T09:31:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287","variant_ids":[43658424156259]},"available":true,"name":"iPhone 13 mini Mod NX Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-KEI08","featured_media":{"alt":null,"id":25982093885539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f5b00c74974e71ef471bb2e8102311f84aac1f.webp?v=1756690287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }