$product = {"id":7769490620515,"title":"iPhone X SolidSuit ilovedoodle Stay Curious - 保持好奇心","handle":"iphone-x-solidsuit-classic-xf57","description":null,"published_at":"2025-07-16T17:30:23+08:00","created_at":"2025-04-15T16:50:52+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":43302601359459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":33724148154467,"product_id":7769490620515,"position":1,"created_at":"2025-04-15T16:50:58+08:00","updated_at":"2025-04-15T16:51:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060","variant_ids":[43302601359459]},"available":true,"name":"iPhone X SolidSuit ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25495591845987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302606045283,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34195700154467,"product_id":7769490620515,"position":7,"created_at":"2025-07-16T12:28:52+08:00","updated_at":"2025-07-16T12:28:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_20f68b6e-d7bd-4665-84dd-e6f253c406a9.webp?v=1752640134","variant_ids":[43302606045283]},"available":true,"name":"iPhone X SolidSuit ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25828778934371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_20f68b6e-d7bd-4665-84dd-e6f253c406a9.webp?v=1752640134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca70d15a0dc0399d84755e9de0b0708f1ad07af_62c00967-6ba7-402f-969a-a4626542280f.webp?v=1752640131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29549152bd777b9016676a14e859e6311b415be_9a6ae59a-e978-4a2d-b9b6-11e6e8b42d1b.webp?v=1752640132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d6b43c55165ee605c1da82babcc18760f49d0e_8d05f91e-4a0a-43fa-849e-6b933f922966.webp?v=1752640132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b78451448a69a67a70c23c9e89abcb25d48fe8_cce66a2b-b716-4dfd-b055-89225ea6c89f.webp?v=1752640133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/455a9aba7bea938a09c46f26c85181471c4df08b_69e83f0e-eafd-4613-986b-5d6d35386309.webp?v=1752640134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_20f68b6e-d7bd-4665-84dd-e6f253c406a9.webp?v=1752640134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/455a9aba7bea938a09c46f26c85181471c4df08b_2909dbb9-a0a8-4f88-9799-77f4bf23e2c9.webp?v=1752649652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d6b43c55165ee605c1da82babcc18760f49d0e_24b94b87-bc7f-4311-89bc-16713e78e680.webp?v=1752649653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b78451448a69a67a70c23c9e89abcb25d48fe8_158a8ad7-5fb8-4873-b7ce-81fab01390df.webp?v=1752649654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_a11d19be-d894-4d91-918f-9f562cf86e20.webp?v=1752649655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29549152bd777b9016676a14e859e6311b415be_36657626-768d-4523-b434-dd7736457a0e.webp?v=1752649655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca70d15a0dc0399d84755e9de0b0708f1ad07af_2a35ef73-b679-490e-9bd0-6663eeb825c8.webp?v=1752649656"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060","options":["color"],"media":[{"alt":null,"id":25495591845987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060","width":2000},{"alt":null,"id":25828778213475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca70d15a0dc0399d84755e9de0b0708f1ad07af_62c00967-6ba7-402f-969a-a4626542280f.webp?v=1752640131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca70d15a0dc0399d84755e9de0b0708f1ad07af_62c00967-6ba7-402f-969a-a4626542280f.webp?v=1752640131","width":2000},{"alt":null,"id":25828778475619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29549152bd777b9016676a14e859e6311b415be_9a6ae59a-e978-4a2d-b9b6-11e6e8b42d1b.webp?v=1752640132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29549152bd777b9016676a14e859e6311b415be_9a6ae59a-e978-4a2d-b9b6-11e6e8b42d1b.webp?v=1752640132","width":2000},{"alt":null,"id":25828778573923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d6b43c55165ee605c1da82babcc18760f49d0e_8d05f91e-4a0a-43fa-849e-6b933f922966.webp?v=1752640132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d6b43c55165ee605c1da82babcc18760f49d0e_8d05f91e-4a0a-43fa-849e-6b933f922966.webp?v=1752640132","width":2000},{"alt":null,"id":25828778704995,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b78451448a69a67a70c23c9e89abcb25d48fe8_cce66a2b-b716-4dfd-b055-89225ea6c89f.webp?v=1752640133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b78451448a69a67a70c23c9e89abcb25d48fe8_cce66a2b-b716-4dfd-b055-89225ea6c89f.webp?v=1752640133","width":2000},{"alt":null,"id":25828778803299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/455a9aba7bea938a09c46f26c85181471c4df08b_69e83f0e-eafd-4613-986b-5d6d35386309.webp?v=1752640134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/455a9aba7bea938a09c46f26c85181471c4df08b_69e83f0e-eafd-4613-986b-5d6d35386309.webp?v=1752640134","width":2000},{"alt":null,"id":25828778934371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_20f68b6e-d7bd-4665-84dd-e6f253c406a9.webp?v=1752640134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_20f68b6e-d7bd-4665-84dd-e6f253c406a9.webp?v=1752640134","width":2000},{"alt":null,"id":25829927583843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/455a9aba7bea938a09c46f26c85181471c4df08b_2909dbb9-a0a8-4f88-9799-77f4bf23e2c9.webp?v=1752649652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/455a9aba7bea938a09c46f26c85181471c4df08b_2909dbb9-a0a8-4f88-9799-77f4bf23e2c9.webp?v=1752649652","width":2000},{"alt":null,"id":25829927911523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d6b43c55165ee605c1da82babcc18760f49d0e_24b94b87-bc7f-4311-89bc-16713e78e680.webp?v=1752649653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d6b43c55165ee605c1da82babcc18760f49d0e_24b94b87-bc7f-4311-89bc-16713e78e680.webp?v=1752649653","width":2000},{"alt":null,"id":25829928239203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b78451448a69a67a70c23c9e89abcb25d48fe8_158a8ad7-5fb8-4873-b7ce-81fab01390df.webp?v=1752649654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b78451448a69a67a70c23c9e89abcb25d48fe8_158a8ad7-5fb8-4873-b7ce-81fab01390df.webp?v=1752649654","width":2000},{"alt":null,"id":25829928403043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_a11d19be-d894-4d91-918f-9f562cf86e20.webp?v=1752649655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_a11d19be-d894-4d91-918f-9f562cf86e20.webp?v=1752649655","width":2000},{"alt":null,"id":25829928534115,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29549152bd777b9016676a14e859e6311b415be_36657626-768d-4523-b434-dd7736457a0e.webp?v=1752649655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29549152bd777b9016676a14e859e6311b415be_36657626-768d-4523-b434-dd7736457a0e.webp?v=1752649655","width":2000},{"alt":null,"id":25829928730723,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca70d15a0dc0399d84755e9de0b0708f1ad07af_2a35ef73-b679-490e-9bd0-6663eeb825c8.webp?v=1752649656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca70d15a0dc0399d84755e9de0b0708f1ad07af_2a35ef73-b679-490e-9bd0-6663eeb825c8.webp?v=1752649656","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302601359459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":33724148154467,"product_id":7769490620515,"position":1,"created_at":"2025-04-15T16:50:58+08:00","updated_at":"2025-04-15T16:51:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060","variant_ids":[43302601359459]},"available":true,"name":"iPhone X SolidSuit ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25495591845987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302606045283,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34195700154467,"product_id":7769490620515,"position":7,"created_at":"2025-07-16T12:28:52+08:00","updated_at":"2025-07-16T12:28:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_20f68b6e-d7bd-4665-84dd-e6f253c406a9.webp?v=1752640134","variant_ids":[43302606045283]},"available":true,"name":"iPhone X SolidSuit ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25828778934371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae349b04e485ca0e099a8970a4cf73e96830dbd_20f68b6e-d7bd-4665-84dd-e6f253c406a9.webp?v=1752640134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302601359459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":33724148154467,"product_id":7769490620515,"position":1,"created_at":"2025-04-15T16:50:58+08:00","updated_at":"2025-04-15T16:51:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060","variant_ids":[43302601359459]},"available":true,"name":"iPhone X SolidSuit ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25495591845987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3394e8f1ae10856f843ce94863d9da4927b3e4d6.webp?v=1744707060"}},"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: "停產" }