$product = {"id":7769407160419,"title":"iPhone XS SolidSuit ilovedoodle Mindful Cat - 冷靜","handle":"iphone-xs-solidsuit-classic-xf46","description":null,"published_at":"2025-07-16T17:39:45+08:00","created_at":"2025-04-15T15:36:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone XS","merge","reseller-ilovedoodle"],"price":83000,"price_min":83000,"price_max":83000,"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":43302183665763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34195436240995,"product_id":7769407160419,"position":5,"created_at":"2025-07-16T12:22:10+08:00","updated_at":"2025-07-16T12:22:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732","variant_ids":[43302183665763]},"available":true,"name":"iPhone XS SolidSuit ilovedoodle Mindful Cat - 冷靜 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-XF46","featured_media":{"alt":null,"id":25828639244387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302187958371,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34195435618403,"product_id":7769407160419,"position":2,"created_at":"2025-07-16T12:22:08+08:00","updated_at":"2025-07-16T12:22:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_8f6e96ad-c988-4fca-b010-87502b31f32c.webp?v=1752639731","variant_ids":[43302187958371]},"available":true,"name":"iPhone XS SolidSuit ilovedoodle Mindful Cat - 冷靜 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01064P2-XF46","featured_media":{"alt":null,"id":25828638883939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_8f6e96ad-c988-4fca-b010-87502b31f32c.webp?v=1752639731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5.webp?v=1744702628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_8f6e96ad-c988-4fca-b010-87502b31f32c.webp?v=1752639731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_2453a276-be3b-48b3-9894-6aa431b112da.webp?v=1752639731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_b29cdd8e-449d-472f-b6bd-0d00431673b7.webp?v=1752639732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_d66fcd49-94bd-42f1-aa38-c10eae31a8fc.webp?v=1752639733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_8b59d6db-132b-4721-8c33-15b14f85fa98.webp?v=1752639733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_6d07ed58-a4e5-48a0-b025-19237d103a8f.webp?v=1752649583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_f5e38403-61e9-43d1-9381-f18935a89683.webp?v=1752649583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_2610ca16-a984-4506-8df8-f3700e3b4758.webp?v=1752649584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_d2bad15b-2557-46c8-a6cd-0bb16fb52d2a.webp?v=1752649584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_efa6d308-5d10-4406-ab32-796323534e75.webp?v=1752649585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_bfe8fd8c-3dca-4126-ad24-178d2f6cc0a1.webp?v=1752649585"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5.webp?v=1744702628","options":["color"],"media":[{"alt":null,"id":25495320494179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5.webp?v=1744702628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5.webp?v=1744702628","width":2000},{"alt":null,"id":25828638883939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_8f6e96ad-c988-4fca-b010-87502b31f32c.webp?v=1752639731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_8f6e96ad-c988-4fca-b010-87502b31f32c.webp?v=1752639731","width":2000},{"alt":null,"id":25828638982243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_2453a276-be3b-48b3-9894-6aa431b112da.webp?v=1752639731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_2453a276-be3b-48b3-9894-6aa431b112da.webp?v=1752639731","width":2000},{"alt":null,"id":25828639113315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_b29cdd8e-449d-472f-b6bd-0d00431673b7.webp?v=1752639732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_b29cdd8e-449d-472f-b6bd-0d00431673b7.webp?v=1752639732","width":2000},{"alt":null,"id":25828639244387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732","width":2000},{"alt":null,"id":25828639375459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_d66fcd49-94bd-42f1-aa38-c10eae31a8fc.webp?v=1752639733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_d66fcd49-94bd-42f1-aa38-c10eae31a8fc.webp?v=1752639733","width":2000},{"alt":null,"id":25828639572067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_8b59d6db-132b-4721-8c33-15b14f85fa98.webp?v=1752639733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_8b59d6db-132b-4721-8c33-15b14f85fa98.webp?v=1752639733","width":2000},{"alt":null,"id":25829901697123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_6d07ed58-a4e5-48a0-b025-19237d103a8f.webp?v=1752649583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_6d07ed58-a4e5-48a0-b025-19237d103a8f.webp?v=1752649583","width":2000},{"alt":null,"id":25829901795427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_f5e38403-61e9-43d1-9381-f18935a89683.webp?v=1752649583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_f5e38403-61e9-43d1-9381-f18935a89683.webp?v=1752649583","width":2000},{"alt":null,"id":25829901959267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_2610ca16-a984-4506-8df8-f3700e3b4758.webp?v=1752649584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_2610ca16-a984-4506-8df8-f3700e3b4758.webp?v=1752649584","width":2000},{"alt":null,"id":25829902090339,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_d2bad15b-2557-46c8-a6cd-0bb16fb52d2a.webp?v=1752649584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_d2bad15b-2557-46c8-a6cd-0bb16fb52d2a.webp?v=1752649584","width":2000},{"alt":null,"id":25829902221411,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_efa6d308-5d10-4406-ab32-796323534e75.webp?v=1752649585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_efa6d308-5d10-4406-ab32-796323534e75.webp?v=1752649585","width":2000},{"alt":null,"id":25829902319715,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_bfe8fd8c-3dca-4126-ad24-178d2f6cc0a1.webp?v=1752649585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_bfe8fd8c-3dca-4126-ad24-178d2f6cc0a1.webp?v=1752649585","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302183665763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34195436240995,"product_id":7769407160419,"position":5,"created_at":"2025-07-16T12:22:10+08:00","updated_at":"2025-07-16T12:22:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732","variant_ids":[43302183665763]},"available":true,"name":"iPhone XS SolidSuit ilovedoodle Mindful Cat - 冷靜 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-XF46","featured_media":{"alt":null,"id":25828639244387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302187958371,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34195435618403,"product_id":7769407160419,"position":2,"created_at":"2025-07-16T12:22:08+08:00","updated_at":"2025-07-16T12:22:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_8f6e96ad-c988-4fca-b010-87502b31f32c.webp?v=1752639731","variant_ids":[43302187958371]},"available":true,"name":"iPhone XS SolidSuit ilovedoodle Mindful Cat - 冷靜 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01064P2-XF46","featured_media":{"alt":null,"id":25828638883939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_8f6e96ad-c988-4fca-b010-87502b31f32c.webp?v=1752639731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302183665763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34195436240995,"product_id":7769407160419,"position":5,"created_at":"2025-07-16T12:22:10+08:00","updated_at":"2025-07-16T12:22:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732","variant_ids":[43302183665763]},"available":true,"name":"iPhone XS SolidSuit ilovedoodle Mindful Cat - 冷靜 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-XF46","featured_media":{"alt":null,"id":25828639244387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_5a794214-b709-4d75-952c-8ac178e051da.webp?v=1752639732"}},"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: "停產" }