$product = {"id":6986763698275,"title":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓","handle":"iphone-12-mini-solidsuit-classic-magsafe-ea01","description":null,"published_at":"2023-08-03T01:29:06+08:00","created_at":"2023-07-29T20:24:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區爽爽貓 Song Song Meow By SECOND","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 12 Mini","merge","reseller-songsongmeow"],"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":40612950016099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210602442851,"product_id":6986763698275,"position":4,"created_at":"2026-07-08T16:10:49+08:00","updated_at":"2026-07-08T16:10:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251","variant_ids":[40612950016099]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-EA01","featured_media":{"alt":null,"id":27715397451875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950278243,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210602967139,"product_id":6986763698275,"position":5,"created_at":"2026-07-08T16:10:50+08:00","updated_at":"2026-07-08T16:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a9e42127dada083dce84818317cc2bd4761713.webp?v=1783498252","variant_ids":[40612950278243]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-EA01","featured_media":{"alt":null,"id":27715397976163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a9e42127dada083dce84818317cc2bd4761713.webp?v=1783498252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950311011,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210604277859,"product_id":6986763698275,"position":7,"created_at":"2026-07-08T16:10:51+08:00","updated_at":"2026-07-08T16:10:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7291b454859567903e68ccc405e25569fcf73a8.webp?v=1783498254","variant_ids":[40612950311011]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-EA01","featured_media":{"alt":null,"id":27715399286883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7291b454859567903e68ccc405e25569fcf73a8.webp?v=1783498254"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950343779,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210601787491,"product_id":6986763698275,"position":3,"created_at":"2026-07-08T16:10:48+08:00","updated_at":"2026-07-08T16:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa78af7938d098ca749a0ea3fe9a6e149259a60b.webp?v=1783498250","variant_ids":[40612950343779]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-EA01","featured_media":{"alt":null,"id":27715396796515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa78af7938d098ca749a0ea3fe9a6e149259a60b.webp?v=1783498250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950409315,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210603622499,"product_id":6986763698275,"position":6,"created_at":"2026-07-08T16:10:50+08:00","updated_at":"2026-07-08T16:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233cc00673eaded9f5eec6c11581dfa7f7dbd5e8.webp?v=1783498252","variant_ids":[40612950409315]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840D-EA01","featured_media":{"alt":null,"id":27715398631523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233cc00673eaded9f5eec6c11581dfa7f7dbd5e8.webp?v=1783498252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950507619,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210601328739,"product_id":6986763698275,"position":2,"created_at":"2026-07-08T16:10:48+08:00","updated_at":"2026-07-08T16:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ef2583033e8bcff6fe28e8f261d768cc9f67f3.webp?v=1783498250","variant_ids":[40612950507619]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-EA01","featured_media":{"alt":null,"id":27715396337763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ef2583033e8bcff6fe28e8f261d768cc9f67f3.webp?v=1783498250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-184-EA01.png?v=1690636875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ef2583033e8bcff6fe28e8f261d768cc9f67f3.webp?v=1783498250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa78af7938d098ca749a0ea3fe9a6e149259a60b.webp?v=1783498250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a9e42127dada083dce84818317cc2bd4761713.webp?v=1783498252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233cc00673eaded9f5eec6c11581dfa7f7dbd5e8.webp?v=1783498252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7291b454859567903e68ccc405e25569fcf73a8.webp?v=1783498254"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-184-EA01.png?v=1690636875","options":["color"],"media":[{"alt":null,"id":22643284213859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-184-EA01.png?v=1690636875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-184-EA01.png?v=1690636875","width":2000},{"alt":null,"id":27715396337763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ef2583033e8bcff6fe28e8f261d768cc9f67f3.webp?v=1783498250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ef2583033e8bcff6fe28e8f261d768cc9f67f3.webp?v=1783498250","width":2000},{"alt":null,"id":27715396796515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa78af7938d098ca749a0ea3fe9a6e149259a60b.webp?v=1783498250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa78af7938d098ca749a0ea3fe9a6e149259a60b.webp?v=1783498250","width":2000},{"alt":null,"id":27715397451875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251","width":2000},{"alt":null,"id":27715397976163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a9e42127dada083dce84818317cc2bd4761713.webp?v=1783498252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a9e42127dada083dce84818317cc2bd4761713.webp?v=1783498252","width":2000},{"alt":null,"id":27715398631523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233cc00673eaded9f5eec6c11581dfa7f7dbd5e8.webp?v=1783498252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233cc00673eaded9f5eec6c11581dfa7f7dbd5e8.webp?v=1783498252","width":2000},{"alt":null,"id":27715399286883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7291b454859567903e68ccc405e25569fcf73a8.webp?v=1783498254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7291b454859567903e68ccc405e25569fcf73a8.webp?v=1783498254","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":40612950016099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210602442851,"product_id":6986763698275,"position":4,"created_at":"2026-07-08T16:10:49+08:00","updated_at":"2026-07-08T16:10:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251","variant_ids":[40612950016099]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-EA01","featured_media":{"alt":null,"id":27715397451875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950278243,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210602967139,"product_id":6986763698275,"position":5,"created_at":"2026-07-08T16:10:50+08:00","updated_at":"2026-07-08T16:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a9e42127dada083dce84818317cc2bd4761713.webp?v=1783498252","variant_ids":[40612950278243]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-EA01","featured_media":{"alt":null,"id":27715397976163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a9e42127dada083dce84818317cc2bd4761713.webp?v=1783498252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950311011,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210604277859,"product_id":6986763698275,"position":7,"created_at":"2026-07-08T16:10:51+08:00","updated_at":"2026-07-08T16:10:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7291b454859567903e68ccc405e25569fcf73a8.webp?v=1783498254","variant_ids":[40612950311011]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-EA01","featured_media":{"alt":null,"id":27715399286883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7291b454859567903e68ccc405e25569fcf73a8.webp?v=1783498254"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950343779,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210601787491,"product_id":6986763698275,"position":3,"created_at":"2026-07-08T16:10:48+08:00","updated_at":"2026-07-08T16:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa78af7938d098ca749a0ea3fe9a6e149259a60b.webp?v=1783498250","variant_ids":[40612950343779]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-EA01","featured_media":{"alt":null,"id":27715396796515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa78af7938d098ca749a0ea3fe9a6e149259a60b.webp?v=1783498250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950409315,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210603622499,"product_id":6986763698275,"position":6,"created_at":"2026-07-08T16:10:50+08:00","updated_at":"2026-07-08T16:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233cc00673eaded9f5eec6c11581dfa7f7dbd5e8.webp?v=1783498252","variant_ids":[40612950409315]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840D-EA01","featured_media":{"alt":null,"id":27715398631523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233cc00673eaded9f5eec6c11581dfa7f7dbd5e8.webp?v=1783498252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40612950507619,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210601328739,"product_id":6986763698275,"position":2,"created_at":"2026-07-08T16:10:48+08:00","updated_at":"2026-07-08T16:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ef2583033e8bcff6fe28e8f261d768cc9f67f3.webp?v=1783498250","variant_ids":[40612950507619]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-EA01","featured_media":{"alt":null,"id":27715396337763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ef2583033e8bcff6fe28e8f261d768cc9f67f3.webp?v=1783498250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40612950016099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-EA01","requires_shipping":true,"taxable":true,"featured_image":{"id":36210602442851,"product_id":6986763698275,"position":4,"created_at":"2026-07-08T16:10:49+08:00","updated_at":"2026-07-08T16:10:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251","variant_ids":[40612950016099]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 爽爽貓 by SECOND HI!爽爽貓 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-EA01","featured_media":{"alt":null,"id":27715397451875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba47ae959f721b1600d00de0bcff68cd3016ffb0.webp?v=1783498251"}},"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: "停產" }