$product = {"id":7892371079267,"title":"iPhone 14 SolidSuit (MagSafe 兼容) 小王子 人生就是一場冒險","handle":"iphone-14-solidsuit-classic-magsafe-to62","description":null,"published_at":"2025-10-03T10:13:57+08:00","created_at":"2025-10-01T15:40:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-le-petit-prince","device-iPhone 14","merge","reseller-le-petit-prince"],"price":0,"price_min":0,"price_max":0,"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":43755467931747,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"iPhone 14 SolidSuit (MagSafe 兼容) 小王子 人生就是一場冒險 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":0,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421d041a2cc474fd11cd5b579a0f93808bfbc728_db1ac957-22eb-49d6-b352-60dfd84a8a48.webp?v=1759304404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59daa383f73b21cd761018d61417c73c89e5a944_7fa52d93-4a34-4ae0-82ec-2ed9344bf0f9.webp?v=1759304405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fea6b43ce6742249422b61c3a3fca622b9eabc_80734694-3df6-441d-bad5-df7ca946538d.webp?v=1759304406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e615f021642570791fcbb7697d318f3987a90c93_709bca83-44c8-4edd-ace8-722cc780045b.webp?v=1759304407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ea30c3b4adfc7aa9bc514e0918ef90e31dbe52_7e55f615-df6a-48cb-a14b-0492edc37afe.webp?v=1759304411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f6442fca895f0018682e17f1390d648ff7980f_9810f44e-c97d-4f82-9a27-97e104624aec.webp?v=1759304411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2e5d7bc202d9eb09dd93435a46e55684bf3fda_5b6d701b-a90d-4f09-998d-d16b52ce7edc.webp?v=1759304413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115c4e9e6fed99c0c98a84d20098b68f6e00c9d9_17ea252b-fe2e-4c88-8fb2-741d8b9e10db.webp?v=1759304413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3894e2e4b6310216355ab67cede019834dcdc7eb_58294629-1e83-4326-9c6e-5384ae087089.webp?v=1759304414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb506e37b73f1c7b155157e6e65b1d67364a5dcf_13f31f84-f73e-4b17-8d67-654998a36e29.webp?v=1759304414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/222bc9425aec6068812424e211724cce12ee8b19_7b63d59c-5e54-4094-b5ba-a98dad7e8d93.webp?v=1759304415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b72106d73203ae507f19686fe429a3291087d4fe_d52c0de9-c71b-4cb1-b76f-c13b1be654ce.webp?v=1759304416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57961a581fee7fa2edaa35db70cfbbdbec937451_69c2a804-cd93-481f-b027-6be2f75db30e.webp?v=1759304417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19bd9bad44a21fed1921e149c23d2505c5e78f1b_88d00138-4ebf-4aff-a7e5-898957a6370c.webp?v=1759304417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40c9edce5fc3621f5ca562687d63931b9928177_8e5b60e1-92f9-4d2d-a329-d567200c4ad3.webp?v=1759304418"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421d041a2cc474fd11cd5b579a0f93808bfbc728_db1ac957-22eb-49d6-b352-60dfd84a8a48.webp?v=1759304404","options":["color"],"media":[{"alt":null,"id":26111796904035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421d041a2cc474fd11cd5b579a0f93808bfbc728_db1ac957-22eb-49d6-b352-60dfd84a8a48.webp?v=1759304404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421d041a2cc474fd11cd5b579a0f93808bfbc728_db1ac957-22eb-49d6-b352-60dfd84a8a48.webp?v=1759304404","width":2000},{"alt":null,"id":26111797166179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59daa383f73b21cd761018d61417c73c89e5a944_7fa52d93-4a34-4ae0-82ec-2ed9344bf0f9.webp?v=1759304405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59daa383f73b21cd761018d61417c73c89e5a944_7fa52d93-4a34-4ae0-82ec-2ed9344bf0f9.webp?v=1759304405","width":2000},{"alt":null,"id":26111797395555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fea6b43ce6742249422b61c3a3fca622b9eabc_80734694-3df6-441d-bad5-df7ca946538d.webp?v=1759304406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fea6b43ce6742249422b61c3a3fca622b9eabc_80734694-3df6-441d-bad5-df7ca946538d.webp?v=1759304406","width":2000},{"alt":null,"id":26111797559395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e615f021642570791fcbb7697d318f3987a90c93_709bca83-44c8-4edd-ace8-722cc780045b.webp?v=1759304407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e615f021642570791fcbb7697d318f3987a90c93_709bca83-44c8-4edd-ace8-722cc780045b.webp?v=1759304407","width":2000},{"alt":null,"id":26111797723235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ea30c3b4adfc7aa9bc514e0918ef90e31dbe52_7e55f615-df6a-48cb-a14b-0492edc37afe.webp?v=1759304411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ea30c3b4adfc7aa9bc514e0918ef90e31dbe52_7e55f615-df6a-48cb-a14b-0492edc37afe.webp?v=1759304411","width":2000},{"alt":null,"id":26111797985379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f6442fca895f0018682e17f1390d648ff7980f_9810f44e-c97d-4f82-9a27-97e104624aec.webp?v=1759304411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f6442fca895f0018682e17f1390d648ff7980f_9810f44e-c97d-4f82-9a27-97e104624aec.webp?v=1759304411","width":2000},{"alt":null,"id":26111798247523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2e5d7bc202d9eb09dd93435a46e55684bf3fda_5b6d701b-a90d-4f09-998d-d16b52ce7edc.webp?v=1759304413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2e5d7bc202d9eb09dd93435a46e55684bf3fda_5b6d701b-a90d-4f09-998d-d16b52ce7edc.webp?v=1759304413","width":2000},{"alt":null,"id":26111798476899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115c4e9e6fed99c0c98a84d20098b68f6e00c9d9_17ea252b-fe2e-4c88-8fb2-741d8b9e10db.webp?v=1759304413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115c4e9e6fed99c0c98a84d20098b68f6e00c9d9_17ea252b-fe2e-4c88-8fb2-741d8b9e10db.webp?v=1759304413","width":2000},{"alt":null,"id":26111798607971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3894e2e4b6310216355ab67cede019834dcdc7eb_58294629-1e83-4326-9c6e-5384ae087089.webp?v=1759304414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3894e2e4b6310216355ab67cede019834dcdc7eb_58294629-1e83-4326-9c6e-5384ae087089.webp?v=1759304414","width":2000},{"alt":null,"id":26111798771811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb506e37b73f1c7b155157e6e65b1d67364a5dcf_13f31f84-f73e-4b17-8d67-654998a36e29.webp?v=1759304414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb506e37b73f1c7b155157e6e65b1d67364a5dcf_13f31f84-f73e-4b17-8d67-654998a36e29.webp?v=1759304414","width":2000},{"alt":null,"id":26111798935651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/222bc9425aec6068812424e211724cce12ee8b19_7b63d59c-5e54-4094-b5ba-a98dad7e8d93.webp?v=1759304415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/222bc9425aec6068812424e211724cce12ee8b19_7b63d59c-5e54-4094-b5ba-a98dad7e8d93.webp?v=1759304415","width":2000},{"alt":null,"id":26111799197795,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b72106d73203ae507f19686fe429a3291087d4fe_d52c0de9-c71b-4cb1-b76f-c13b1be654ce.webp?v=1759304416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b72106d73203ae507f19686fe429a3291087d4fe_d52c0de9-c71b-4cb1-b76f-c13b1be654ce.webp?v=1759304416","width":2000},{"alt":null,"id":26111799394403,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57961a581fee7fa2edaa35db70cfbbdbec937451_69c2a804-cd93-481f-b027-6be2f75db30e.webp?v=1759304417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57961a581fee7fa2edaa35db70cfbbdbec937451_69c2a804-cd93-481f-b027-6be2f75db30e.webp?v=1759304417","width":2000},{"alt":null,"id":26111799623779,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19bd9bad44a21fed1921e149c23d2505c5e78f1b_88d00138-4ebf-4aff-a7e5-898957a6370c.webp?v=1759304417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19bd9bad44a21fed1921e149c23d2505c5e78f1b_88d00138-4ebf-4aff-a7e5-898957a6370c.webp?v=1759304417","width":2000},{"alt":null,"id":26111799787619,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40c9edce5fc3621f5ca562687d63931b9928177_8e5b60e1-92f9-4d2d-a329-d567200c4ad3.webp?v=1759304418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40c9edce5fc3621f5ca562687d63931b9928177_8e5b60e1-92f9-4d2d-a329-d567200c4ad3.webp?v=1759304418","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43755467931747,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"iPhone 14 SolidSuit (MagSafe 兼容) 小王子 人生就是一場冒險 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":0,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43755467931747,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"iPhone 14 SolidSuit (MagSafe 兼容) 小王子 人生就是一場冒險 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":0,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":null,"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: "停產" }