$product = {"id":7893882896483,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚","handle":"iphone-13-mini-mod-nx-magsafe-printable-chu07","description":null,"published_at":"2025-10-09T09:20:03+08:00","created_at":"2025-10-07T10:35:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 13 Mini","merge","reseller-chubbynida"],"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":43763641221219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-CHU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370312803,"product_id":7893882896483,"position":3,"created_at":"2025-10-07T10:36:00+08:00","updated_at":"2025-10-07T10:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562","variant_ids":[43763641221219]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-CHU07","featured_media":{"alt":null,"id":26123017945187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763641253987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-CHU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34553369722979,"product_id":7893882896483,"position":1,"created_at":"2025-10-07T10:35:59+08:00","updated_at":"2025-10-07T10:36:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561","variant_ids":[43763641253987]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-CHU07","featured_media":{"alt":null,"id":26123017355363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763641352291,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-CHU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34553372049507,"product_id":7893882896483,"position":10,"created_at":"2025-10-07T10:36:05+08:00","updated_at":"2025-10-07T10:36:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ded51341d38c0a5739877f01c3f7296e62bc889.webp?v=1759804567","variant_ids":[43763641352291]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-CHU07","featured_media":{"alt":null,"id":26123019681891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ded51341d38c0a5739877f01c3f7296e62bc889.webp?v=1759804567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/099b87152bc46f52b2e537b107bd3fea4c2ae6db.webp?v=1759804561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93b698633b51443137d229658c253e31cc1ddd69.webp?v=1759804563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0641a91ac7e8bf722b3e66b1d3a9dd721d9a72db.webp?v=1759804563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb9905900fe0dd62d2d02c7d0c136ad4e4ce52c2.webp?v=1759804564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3596a4a4b0bcaea1b9a53a4ff1bef3ec4ca1cbc.webp?v=1759804565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa687cb50e712b55c690b810741f72eb9cdb0f89.webp?v=1759804565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e10a662008db44f40e9448c71e902ce45a5c4ac.webp?v=1759804566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ded51341d38c0a5739877f01c3f7296e62bc889.webp?v=1759804567"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561","options":["color"],"media":[{"alt":null,"id":26123017355363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561","width":2000},{"alt":null,"id":26123017683043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/099b87152bc46f52b2e537b107bd3fea4c2ae6db.webp?v=1759804561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/099b87152bc46f52b2e537b107bd3fea4c2ae6db.webp?v=1759804561","width":2000},{"alt":null,"id":26123017945187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562","width":2000},{"alt":null,"id":26123018207331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93b698633b51443137d229658c253e31cc1ddd69.webp?v=1759804563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93b698633b51443137d229658c253e31cc1ddd69.webp?v=1759804563","width":2000},{"alt":null,"id":26123018436707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0641a91ac7e8bf722b3e66b1d3a9dd721d9a72db.webp?v=1759804563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0641a91ac7e8bf722b3e66b1d3a9dd721d9a72db.webp?v=1759804563","width":2000},{"alt":null,"id":26123018731619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb9905900fe0dd62d2d02c7d0c136ad4e4ce52c2.webp?v=1759804564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb9905900fe0dd62d2d02c7d0c136ad4e4ce52c2.webp?v=1759804564","width":2000},{"alt":null,"id":26123018993763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3596a4a4b0bcaea1b9a53a4ff1bef3ec4ca1cbc.webp?v=1759804565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3596a4a4b0bcaea1b9a53a4ff1bef3ec4ca1cbc.webp?v=1759804565","width":2000},{"alt":null,"id":26123019223139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa687cb50e712b55c690b810741f72eb9cdb0f89.webp?v=1759804565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa687cb50e712b55c690b810741f72eb9cdb0f89.webp?v=1759804565","width":2000},{"alt":null,"id":26123019452515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e10a662008db44f40e9448c71e902ce45a5c4ac.webp?v=1759804566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e10a662008db44f40e9448c71e902ce45a5c4ac.webp?v=1759804566","width":2000},{"alt":null,"id":26123019681891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ded51341d38c0a5739877f01c3f7296e62bc889.webp?v=1759804567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ded51341d38c0a5739877f01c3f7296e62bc889.webp?v=1759804567","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763641221219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-CHU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370312803,"product_id":7893882896483,"position":3,"created_at":"2025-10-07T10:36:00+08:00","updated_at":"2025-10-07T10:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562","variant_ids":[43763641221219]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-CHU07","featured_media":{"alt":null,"id":26123017945187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763641253987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-CHU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34553369722979,"product_id":7893882896483,"position":1,"created_at":"2025-10-07T10:35:59+08:00","updated_at":"2025-10-07T10:36:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561","variant_ids":[43763641253987]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-CHU07","featured_media":{"alt":null,"id":26123017355363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbc303fd60fd378553db04811278f3df32566d5.webp?v=1759804561"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763641352291,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-CHU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34553372049507,"product_id":7893882896483,"position":10,"created_at":"2025-10-07T10:36:05+08:00","updated_at":"2025-10-07T10:36:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ded51341d38c0a5739877f01c3f7296e62bc889.webp?v=1759804567","variant_ids":[43763641352291]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-CHU07","featured_media":{"alt":null,"id":26123019681891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ded51341d38c0a5739877f01c3f7296e62bc889.webp?v=1759804567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763641221219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-CHU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34553370312803,"product_id":7893882896483,"position":3,"created_at":"2025-10-07T10:36:00+08:00","updated_at":"2025-10-07T10:36:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562","variant_ids":[43763641221219]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Chubbynida 岩上之魚 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-CHU07","featured_media":{"alt":null,"id":26123017945187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb36fe287ccd28353d1c9012af8a9bb952f44ca2.webp?v=1759804562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }