$product = {"id":7927220371555,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款","handle":"iphone-13-mini-solidsuit-classic-magsafe-hik70","description":null,"published_at":"2025-11-25T09:39:37+08:00","created_at":"2025-11-24T16:43:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-haikyu","device-iPhone 13 Mini","merge","reseller-haikyu"],"price":125000,"price_min":125000,"price_max":125000,"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":43851174805603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-HIK70","requires_shipping":true,"taxable":true,"featured_image":{"id":36041436725347,"product_id":7927220371555,"position":12,"created_at":"2026-06-22T17:04:23+08:00","updated_at":"2026-06-22T17:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066","variant_ids":[43851174805603]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-HIK70","featured_media":{"alt":null,"id":27557973622883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43851174969443,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-HIK70","requires_shipping":true,"taxable":true,"featured_image":{"id":36041438199907,"product_id":7927220371555,"position":14,"created_at":"2026-06-22T17:04:25+08:00","updated_at":"2026-06-22T17:04:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a_ec49ee1c-db78-44de-8ebe-49136b497958.webp?v=1782119067","variant_ids":[43851174969443]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-HIK70","featured_media":{"alt":null,"id":27557975064675,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a_ec49ee1c-db78-44de-8ebe-49136b497958.webp?v=1782119067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43851175002211,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-HIK70","requires_shipping":true,"taxable":true,"featured_image":{"id":36041435971683,"product_id":7927220371555,"position":11,"created_at":"2026-06-22T17:04:23+08:00","updated_at":"2026-06-22T17:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec_e538d62a-7063-44f4-91ab-34ae8d29e550.webp?v=1782119065","variant_ids":[43851175002211]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-HIK70","featured_media":{"alt":null,"id":27557972836451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec_e538d62a-7063-44f4-91ab-34ae8d29e550.webp?v=1782119065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec.webp?v=1763973841","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49b0081da4a6abd3e0c7ae01693bd2e11aab8bd7.webp?v=1763973842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a.webp?v=1763973843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff.webp?v=1763973843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbad2d887eb0b6a1457b1190391b547034700333.webp?v=1763973844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbcfbb42245b5e68062884cf8b5679d6216040a8.webp?v=1763973844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53f3515aca245e59cfdc09d3e465193b010f48a.webp?v=1763973844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/827254e02fb3866dd45e3efa5cff9920f70d898e.webp?v=1763973845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f8e5c008b786d493cd53bace4dccaad74ee0b.webp?v=1763973845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f8e5c008b786d493cd53bace4dccaad74ee0b_3afd6459-9a99-4e9d-87b1-9e805892e761.webp?v=1782119064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec_e538d62a-7063-44f4-91ab-34ae8d29e550.webp?v=1782119065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbad2d887eb0b6a1457b1190391b547034700333_156282c4-1a3a-49c3-8e92-5cf536aaaebd.webp?v=1782119067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a_ec49ee1c-db78-44de-8ebe-49136b497958.webp?v=1782119067"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec.webp?v=1763973841","options":["color"],"media":[{"alt":null,"id":26398797004899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec.webp?v=1763973841"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec.webp?v=1763973841","width":2000},{"alt":null,"id":26398797299811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49b0081da4a6abd3e0c7ae01693bd2e11aab8bd7.webp?v=1763973842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49b0081da4a6abd3e0c7ae01693bd2e11aab8bd7.webp?v=1763973842","width":2000},{"alt":null,"id":26398797561955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a.webp?v=1763973843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a.webp?v=1763973843","width":2000},{"alt":null,"id":26398798020707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff.webp?v=1763973843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff.webp?v=1763973843","width":2000},{"alt":null,"id":26398798250083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbad2d887eb0b6a1457b1190391b547034700333.webp?v=1763973844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbad2d887eb0b6a1457b1190391b547034700333.webp?v=1763973844","width":2000},{"alt":null,"id":26398798512227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbcfbb42245b5e68062884cf8b5679d6216040a8.webp?v=1763973844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbcfbb42245b5e68062884cf8b5679d6216040a8.webp?v=1763973844","width":2000},{"alt":null,"id":26398798708835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53f3515aca245e59cfdc09d3e465193b010f48a.webp?v=1763973844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c53f3515aca245e59cfdc09d3e465193b010f48a.webp?v=1763973844","width":2000},{"alt":null,"id":26398798839907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/827254e02fb3866dd45e3efa5cff9920f70d898e.webp?v=1763973845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/827254e02fb3866dd45e3efa5cff9920f70d898e.webp?v=1763973845","width":2000},{"alt":null,"id":26398799036515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f8e5c008b786d493cd53bace4dccaad74ee0b.webp?v=1763973845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f8e5c008b786d493cd53bace4dccaad74ee0b.webp?v=1763973845","width":2000},{"alt":null,"id":27557972508771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f8e5c008b786d493cd53bace4dccaad74ee0b_3afd6459-9a99-4e9d-87b1-9e805892e761.webp?v=1782119064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f8e5c008b786d493cd53bace4dccaad74ee0b_3afd6459-9a99-4e9d-87b1-9e805892e761.webp?v=1782119064","width":2000},{"alt":null,"id":27557972836451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec_e538d62a-7063-44f4-91ab-34ae8d29e550.webp?v=1782119065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec_e538d62a-7063-44f4-91ab-34ae8d29e550.webp?v=1782119065","width":2000},{"alt":null,"id":27557973622883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066","width":2000},{"alt":null,"id":27557974605923,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbad2d887eb0b6a1457b1190391b547034700333_156282c4-1a3a-49c3-8e92-5cf536aaaebd.webp?v=1782119067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbad2d887eb0b6a1457b1190391b547034700333_156282c4-1a3a-49c3-8e92-5cf536aaaebd.webp?v=1782119067","width":2000},{"alt":null,"id":27557975064675,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a_ec49ee1c-db78-44de-8ebe-49136b497958.webp?v=1782119067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a_ec49ee1c-db78-44de-8ebe-49136b497958.webp?v=1782119067","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43851174805603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-HIK70","requires_shipping":true,"taxable":true,"featured_image":{"id":36041436725347,"product_id":7927220371555,"position":12,"created_at":"2026-06-22T17:04:23+08:00","updated_at":"2026-06-22T17:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066","variant_ids":[43851174805603]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-HIK70","featured_media":{"alt":null,"id":27557973622883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43851174969443,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-HIK70","requires_shipping":true,"taxable":true,"featured_image":{"id":36041438199907,"product_id":7927220371555,"position":14,"created_at":"2026-06-22T17:04:25+08:00","updated_at":"2026-06-22T17:04:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a_ec49ee1c-db78-44de-8ebe-49136b497958.webp?v=1782119067","variant_ids":[43851174969443]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-HIK70","featured_media":{"alt":null,"id":27557975064675,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4686e166479e65ef2ea54e158b57d8c6bf63e5a_ec49ee1c-db78-44de-8ebe-49136b497958.webp?v=1782119067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43851175002211,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-HIK70","requires_shipping":true,"taxable":true,"featured_image":{"id":36041435971683,"product_id":7927220371555,"position":11,"created_at":"2026-06-22T17:04:23+08:00","updated_at":"2026-06-22T17:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec_e538d62a-7063-44f4-91ab-34ae8d29e550.webp?v=1782119065","variant_ids":[43851175002211]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-HIK70","featured_media":{"alt":null,"id":27557972836451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b1348808705983f3b3ba145ea3a69091182ec_e538d62a-7063-44f4-91ab-34ae8d29e550.webp?v=1782119065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43851174805603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-HIK70","requires_shipping":true,"taxable":true,"featured_image":{"id":36041436725347,"product_id":7927220371555,"position":12,"created_at":"2026-06-22T17:04:23+08:00","updated_at":"2026-06-22T17:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066","variant_ids":[43851174805603]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 烏野貼紙包設計款 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-HIK70","featured_media":{"alt":null,"id":27557973622883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c430961317e05ee0b2e36ddcac3a05d3329b8ff_0c5506d9-569f-45f9-a35e-bb4e3e5996e2.webp?v=1782119066"}},"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: "停產" }