$product = {"id":7577153896547,"title":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比","handle":"iphone-13-mini-solidsuit-classic-yo02","description":null,"published_at":"2024-07-22T14:56:34+08:00","created_at":"2024-07-19T17:55:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區摩登原始人 The Flintstones","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-warnerbros-classics","device-iPhone 13 Mini","merge","reseller-warnerbros-classics"],"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":42560659226723,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0122852-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560278627,"product_id":7577153896547,"position":8,"created_at":"2026-07-20T18:03:25+08:00","updated_at":"2026-07-20T18:03:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807","variant_ids":[42560659226723]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0122852-YO02","featured_media":{"alt":null,"id":27826468192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42560659325027,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01228O8-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560409699,"product_id":7577153896547,"position":9,"created_at":"2026-07-20T18:03:27+08:00","updated_at":"2026-07-20T18:03:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd_c91fcfdb-f122-4d6d-a066-25418e01825f.webp?v=1784541809","variant_ids":[42560659325027]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01228O8-YO02","featured_media":{"alt":null,"id":27826468323427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd_c91fcfdb-f122-4d6d-a066-25418e01825f.webp?v=1784541809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42560659488867,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"SST01228Z8-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560213091,"product_id":7577153896547,"position":7,"created_at":"2026-07-20T18:03:24+08:00","updated_at":"2026-07-20T18:03:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f_61ffaeff-b3c8-4f95-8569-805204249c1a.webp?v=1784541807","variant_ids":[42560659488867]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01228Z8-YO02","featured_media":{"alt":null,"id":27826468126819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f_61ffaeff-b3c8-4f95-8569-805204249c1a.webp?v=1784541807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42560659521635,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"SST01228Z9-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560540771,"product_id":7577153896547,"position":10,"created_at":"2026-07-20T18:03:27+08:00","updated_at":"2026-07-20T18:03:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65_ec532b9a-c259-454c-9756-9f55c3fdf280.webp?v=1784541809","variant_ids":[42560659521635]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01228Z9-YO02","featured_media":{"alt":null,"id":27826468454499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65_ec532b9a-c259-454c-9756-9f55c3fdf280.webp?v=1784541809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448beaf6c9a9e35070cd4b928995ee9d5a393e43.webp?v=1721382957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f.webp?v=1782880482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65.webp?v=1782880482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea.webp?v=1782880483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d057cb565963723fa2a3dcb8fb4f754026b3823d.webp?v=1782880483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd.webp?v=1782880484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f_61ffaeff-b3c8-4f95-8569-805204249c1a.webp?v=1784541807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd_c91fcfdb-f122-4d6d-a066-25418e01825f.webp?v=1784541809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65_ec532b9a-c259-454c-9756-9f55c3fdf280.webp?v=1784541809"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448beaf6c9a9e35070cd4b928995ee9d5a393e43.webp?v=1721382957","options":["color"],"media":[{"alt":null,"id":24415987368035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448beaf6c9a9e35070cd4b928995ee9d5a393e43.webp?v=1721382957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448beaf6c9a9e35070cd4b928995ee9d5a393e43.webp?v=1721382957","width":2000},{"alt":null,"id":27646845157475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f.webp?v=1782880482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f.webp?v=1782880482","width":2000},{"alt":null,"id":27646845583459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65.webp?v=1782880482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65.webp?v=1782880482","width":2000},{"alt":null,"id":27646846271587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea.webp?v=1782880483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea.webp?v=1782880483","width":2000},{"alt":null,"id":27646846795875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d057cb565963723fa2a3dcb8fb4f754026b3823d.webp?v=1782880483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d057cb565963723fa2a3dcb8fb4f754026b3823d.webp?v=1782880483","width":2000},{"alt":null,"id":27646847320163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd.webp?v=1782880484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd.webp?v=1782880484","width":2000},{"alt":null,"id":27826468126819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f_61ffaeff-b3c8-4f95-8569-805204249c1a.webp?v=1784541807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f_61ffaeff-b3c8-4f95-8569-805204249c1a.webp?v=1784541807","width":2000},{"alt":null,"id":27826468192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807","width":2000},{"alt":null,"id":27826468323427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd_c91fcfdb-f122-4d6d-a066-25418e01825f.webp?v=1784541809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd_c91fcfdb-f122-4d6d-a066-25418e01825f.webp?v=1784541809","width":2000},{"alt":null,"id":27826468454499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65_ec532b9a-c259-454c-9756-9f55c3fdf280.webp?v=1784541809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65_ec532b9a-c259-454c-9756-9f55c3fdf280.webp?v=1784541809","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":42560659226723,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0122852-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560278627,"product_id":7577153896547,"position":8,"created_at":"2026-07-20T18:03:25+08:00","updated_at":"2026-07-20T18:03:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807","variant_ids":[42560659226723]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0122852-YO02","featured_media":{"alt":null,"id":27826468192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42560659325027,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01228O8-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560409699,"product_id":7577153896547,"position":9,"created_at":"2026-07-20T18:03:27+08:00","updated_at":"2026-07-20T18:03:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd_c91fcfdb-f122-4d6d-a066-25418e01825f.webp?v=1784541809","variant_ids":[42560659325027]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01228O8-YO02","featured_media":{"alt":null,"id":27826468323427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5953b392cfbb7bd4f4df79b85cbff4d9094a9cd_c91fcfdb-f122-4d6d-a066-25418e01825f.webp?v=1784541809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42560659488867,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"SST01228Z8-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560213091,"product_id":7577153896547,"position":7,"created_at":"2026-07-20T18:03:24+08:00","updated_at":"2026-07-20T18:03:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f_61ffaeff-b3c8-4f95-8569-805204249c1a.webp?v=1784541807","variant_ids":[42560659488867]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01228Z8-YO02","featured_media":{"alt":null,"id":27826468126819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446bbe131a32964b94dbccdad940d9e22da12c6f_61ffaeff-b3c8-4f95-8569-805204249c1a.webp?v=1784541807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42560659521635,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"SST01228Z9-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560540771,"product_id":7577153896547,"position":10,"created_at":"2026-07-20T18:03:27+08:00","updated_at":"2026-07-20T18:03:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65_ec532b9a-c259-454c-9756-9f55c3fdf280.webp?v=1784541809","variant_ids":[42560659521635]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01228Z9-YO02","featured_media":{"alt":null,"id":27826468454499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfccb732c2fd875388040c947f6efbb9ff987f65_ec532b9a-c259-454c-9756-9f55c3fdf280.webp?v=1784541809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":42560659226723,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0122852-YO02","requires_shipping":true,"taxable":true,"featured_image":{"id":36322560278627,"product_id":7577153896547,"position":8,"created_at":"2026-07-20T18:03:25+08:00","updated_at":"2026-07-20T18:03:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807","variant_ids":[42560659226723]},"available":true,"name":"iPhone 13 mini SolidSuit Scooby-Doo史酷比 逗趣史酷比 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0122852-YO02","featured_media":{"alt":null,"id":27826468192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f610a79fb4f6dd8b6ded647f5182555f81a3ea_4de12b2d-14a1-458e-820c-bc070b4eeecb.webp?v=1784541807"}},"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: "停產" }