$product = {"id":7769524895843,"title":"iPhone X SolidSuit ilovedoodle Mindful Cat - 冷靜","handle":"iphone-x-solidsuit-classic-xf46","description":null,"published_at":"2025-07-16T17:27:03+08:00","created_at":"2025-04-15T17:19:04+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone X","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":43302757269603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197471199331,"product_id":7769524895843,"position":10,"created_at":"2025-07-16T15:06:59+08:00","updated_at":"2025-07-16T15:07:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621","variant_ids":[43302757269603]},"available":true,"name":"iPhone X 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":25829915426915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302760972387,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197471363171,"product_id":7769524895843,"position":11,"created_at":"2025-07-16T15:06:59+08:00","updated_at":"2025-07-16T15:07:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_c9df78c0-e34d-4db9-af81-626efd7fac27.webp?v=1752649621","variant_ids":[43302760972387]},"available":true,"name":"iPhone X 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":25829915623523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_c9df78c0-e34d-4db9-af81-626efd7fac27.webp?v=1752649621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5_549eb042-3f6b-4375-8b84-c801901b1ac5.webp?v=1744708751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d.webp?v=1752638981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd.webp?v=1752638981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e.webp?v=1752638982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded.webp?v=1752638982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339.webp?v=1752638983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5.webp?v=1752638983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_4dfe6357-eee8-40c9-a9f5-622670fc8a66.webp?v=1752649620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_0860c6b1-4021-439e-9108-d172f26a877b.webp?v=1752649620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_c9df78c0-e34d-4db9-af81-626efd7fac27.webp?v=1752649621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_1fc6a48e-f46e-4364-b316-29ff464127fe.webp?v=1752649623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_2f798a39-5117-4b9c-b068-3e1e0a5d0850.webp?v=1752649623"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5_549eb042-3f6b-4375-8b84-c801901b1ac5.webp?v=1744708751","options":["color"],"media":[{"alt":null,"id":25495700602979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5_549eb042-3f6b-4375-8b84-c801901b1ac5.webp?v=1744708751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a18fa162554a9577dc95f306f3c3fdbbce604fb5_549eb042-3f6b-4375-8b84-c801901b1ac5.webp?v=1744708751","width":2000},{"alt":null,"id":25828370219107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d.webp?v=1752638981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d.webp?v=1752638981","width":2000},{"alt":null,"id":25828370448483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd.webp?v=1752638981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd.webp?v=1752638981","width":2000},{"alt":null,"id":25828370579555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e.webp?v=1752638982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e.webp?v=1752638982","width":2000},{"alt":null,"id":25828370743395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded.webp?v=1752638982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded.webp?v=1752638982","width":2000},{"alt":null,"id":25828370907235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339.webp?v=1752638983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339.webp?v=1752638983","width":2000},{"alt":null,"id":25828371071075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5.webp?v=1752638983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5.webp?v=1752638983","width":2000},{"alt":null,"id":25829914968163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_4dfe6357-eee8-40c9-a9f5-622670fc8a66.webp?v=1752649620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed35e9b9c5470de26b6c704723af4db6d86e38e_4dfe6357-eee8-40c9-a9f5-622670fc8a66.webp?v=1752649620","width":2000},{"alt":null,"id":25829915230307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_0860c6b1-4021-439e-9108-d172f26a877b.webp?v=1752649620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91be5b9d813e9f5bb09f39f057515162a3019339_0860c6b1-4021-439e-9108-d172f26a877b.webp?v=1752649620","width":2000},{"alt":null,"id":25829915426915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621","width":2000},{"alt":null,"id":25829915623523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_c9df78c0-e34d-4db9-af81-626efd7fac27.webp?v=1752649621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_c9df78c0-e34d-4db9-af81-626efd7fac27.webp?v=1752649621","width":2000},{"alt":null,"id":25829916115043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_1fc6a48e-f46e-4364-b316-29ff464127fe.webp?v=1752649623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417b612007a410b2e68aac86ccfd9e8e637e0bfd_1fc6a48e-f46e-4364-b316-29ff464127fe.webp?v=1752649623","width":2000},{"alt":null,"id":25829916344419,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_2f798a39-5117-4b9c-b068-3e1e0a5d0850.webp?v=1752649623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b1272d0000ad68973013cb3ae64b168d59a6c5_2f798a39-5117-4b9c-b068-3e1e0a5d0850.webp?v=1752649623","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302757269603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197471199331,"product_id":7769524895843,"position":10,"created_at":"2025-07-16T15:06:59+08:00","updated_at":"2025-07-16T15:07:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621","variant_ids":[43302757269603]},"available":true,"name":"iPhone X 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":25829915426915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302760972387,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197471363171,"product_id":7769524895843,"position":11,"created_at":"2025-07-16T15:06:59+08:00","updated_at":"2025-07-16T15:07:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_c9df78c0-e34d-4db9-af81-626efd7fac27.webp?v=1752649621","variant_ids":[43302760972387]},"available":true,"name":"iPhone X 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":25829915623523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00ece6cf05d337c148a7414f93f05459f28e24d_c9df78c0-e34d-4db9-af81-626efd7fac27.webp?v=1752649621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302757269603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197471199331,"product_id":7769524895843,"position":10,"created_at":"2025-07-16T15:06:59+08:00","updated_at":"2025-07-16T15:07:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621","variant_ids":[43302757269603]},"available":true,"name":"iPhone X 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":25829915426915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80fe2eca6308fd8ed99553d017363a0fa1556ded_06170299-89bd-421e-8595-a9a49d9a402f.webp?v=1752649621"}},"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: "停產" }