$product = {"id":7836776431715,"title":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog","handle":"iphone-13-pro-max-solidsuit-magsafe-bumper-back-crossover-design-yn30","description":null,"published_at":"2025-07-14T16:13:10+08:00","created_at":"2025-07-14T09:44:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-osamugoods","device-iPhone 13 Pro Max","merge","reseller-osamugoods"],"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":43524869783651,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST012320B-YN30","requires_shipping":true,"taxable":true,"featured_image":{"id":34179976036451,"product_id":7836776431715,"position":11,"created_at":"2025-07-14T14:57:57+08:00","updated_at":"2025-07-14T14:57:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279","variant_ids":[43524869783651]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012320B-YN30","featured_media":{"alt":null,"id":25817119260771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524869816419,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01232Z9-YN30","requires_shipping":true,"taxable":true,"featured_image":{"id":34179977576547,"product_id":7836776431715,"position":16,"created_at":"2025-07-14T14:58:00+08:00","updated_at":"2025-07-14T14:58:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723_7c792dd9-bab2-430c-81a8-b4debe54f530.webp?v=1752476281","variant_ids":[43524869816419]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog - 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":"MST01232Z9-YN30","featured_media":{"alt":null,"id":25817120243811,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723_7c792dd9-bab2-430c-81a8-b4debe54f530.webp?v=1752476281"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524869849187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0123252-YN30","requires_shipping":true,"taxable":true,"featured_image":{"id":34179976855651,"product_id":7836776431715,"position":14,"created_at":"2025-07-14T14:57:59+08:00","updated_at":"2025-07-14T14:58:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b_92453813-1a33-48b0-b642-f59415bfc88d.webp?v=1752476280","variant_ids":[43524869849187]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0123252-YN30","featured_media":{"alt":null,"id":25817119883363,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b_92453813-1a33-48b0-b642-f59415bfc88d.webp?v=1752476280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b.webp?v=1752457492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7947169b217c2b036ff77382107de87eefcc0c4.webp?v=1752457493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc516b33dd0897d9dc437e07543c0efee59df2d8.webp?v=1752457493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717ee0643606b932d3b265530bdc5f62d30f232.webp?v=1752457494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15b57d51d3d18825a9b9f03ac48fc56ad5271bb.webp?v=1752457494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d.webp?v=1752457495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723.webp?v=1752457496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a71e57a890d2020ca974a457f222e4e3b78593.webp?v=1752457496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717ee0643606b932d3b265530bdc5f62d30f232_9e692eef-5160-4abe-be4a-55599f3f91db.webp?v=1752476277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc516b33dd0897d9dc437e07543c0efee59df2d8_155d69c3-cd2f-4638-82cb-c277d02d27ed.webp?v=1752476278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7947169b217c2b036ff77382107de87eefcc0c4_1b4a280e-d722-4a93-9ae7-a36b57211f9e.webp?v=1752476279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a71e57a890d2020ca974a457f222e4e3b78593_b37ec9c1-77c3-4c00-8b00-5e2a569aedb6.webp?v=1752476280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b_92453813-1a33-48b0-b642-f59415bfc88d.webp?v=1752476280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15b57d51d3d18825a9b9f03ac48fc56ad5271bb_0a8e1be3-dde4-4a26-a5d2-8bc46c2af5ee.webp?v=1752476281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723_7c792dd9-bab2-430c-81a8-b4debe54f530.webp?v=1752476281"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b.webp?v=1752457492","options":["color"],"media":[{"alt":null,"id":25815768006755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b.webp?v=1752457492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b.webp?v=1752457492","width":2000},{"alt":null,"id":25815768072291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7947169b217c2b036ff77382107de87eefcc0c4.webp?v=1752457493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7947169b217c2b036ff77382107de87eefcc0c4.webp?v=1752457493","width":2000},{"alt":null,"id":25815768563811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc516b33dd0897d9dc437e07543c0efee59df2d8.webp?v=1752457493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc516b33dd0897d9dc437e07543c0efee59df2d8.webp?v=1752457493","width":2000},{"alt":null,"id":25815768825955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717ee0643606b932d3b265530bdc5f62d30f232.webp?v=1752457494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717ee0643606b932d3b265530bdc5f62d30f232.webp?v=1752457494","width":2000},{"alt":null,"id":25815769088099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15b57d51d3d18825a9b9f03ac48fc56ad5271bb.webp?v=1752457494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15b57d51d3d18825a9b9f03ac48fc56ad5271bb.webp?v=1752457494","width":2000},{"alt":null,"id":25815769317475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d.webp?v=1752457495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d.webp?v=1752457495","width":2000},{"alt":null,"id":25815769776227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723.webp?v=1752457496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723.webp?v=1752457496","width":2000},{"alt":null,"id":25815769940067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a71e57a890d2020ca974a457f222e4e3b78593.webp?v=1752457496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a71e57a890d2020ca974a457f222e4e3b78593.webp?v=1752457496","width":2000},{"alt":null,"id":25817118834787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717ee0643606b932d3b265530bdc5f62d30f232_9e692eef-5160-4abe-be4a-55599f3f91db.webp?v=1752476277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717ee0643606b932d3b265530bdc5f62d30f232_9e692eef-5160-4abe-be4a-55599f3f91db.webp?v=1752476277","width":2000},{"alt":null,"id":25817119096931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc516b33dd0897d9dc437e07543c0efee59df2d8_155d69c3-cd2f-4638-82cb-c277d02d27ed.webp?v=1752476278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc516b33dd0897d9dc437e07543c0efee59df2d8_155d69c3-cd2f-4638-82cb-c277d02d27ed.webp?v=1752476278","width":2000},{"alt":null,"id":25817119260771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279","width":2000},{"alt":null,"id":25817119457379,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7947169b217c2b036ff77382107de87eefcc0c4_1b4a280e-d722-4a93-9ae7-a36b57211f9e.webp?v=1752476279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7947169b217c2b036ff77382107de87eefcc0c4_1b4a280e-d722-4a93-9ae7-a36b57211f9e.webp?v=1752476279","width":2000},{"alt":null,"id":25817119817827,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a71e57a890d2020ca974a457f222e4e3b78593_b37ec9c1-77c3-4c00-8b00-5e2a569aedb6.webp?v=1752476280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a71e57a890d2020ca974a457f222e4e3b78593_b37ec9c1-77c3-4c00-8b00-5e2a569aedb6.webp?v=1752476280","width":2000},{"alt":null,"id":25817119883363,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b_92453813-1a33-48b0-b642-f59415bfc88d.webp?v=1752476280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b_92453813-1a33-48b0-b642-f59415bfc88d.webp?v=1752476280","width":2000},{"alt":null,"id":25817120178275,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15b57d51d3d18825a9b9f03ac48fc56ad5271bb_0a8e1be3-dde4-4a26-a5d2-8bc46c2af5ee.webp?v=1752476281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15b57d51d3d18825a9b9f03ac48fc56ad5271bb_0a8e1be3-dde4-4a26-a5d2-8bc46c2af5ee.webp?v=1752476281","width":2000},{"alt":null,"id":25817120243811,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723_7c792dd9-bab2-430c-81a8-b4debe54f530.webp?v=1752476281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723_7c792dd9-bab2-430c-81a8-b4debe54f530.webp?v=1752476281","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43524869783651,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST012320B-YN30","requires_shipping":true,"taxable":true,"featured_image":{"id":34179976036451,"product_id":7836776431715,"position":11,"created_at":"2025-07-14T14:57:57+08:00","updated_at":"2025-07-14T14:57:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279","variant_ids":[43524869783651]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012320B-YN30","featured_media":{"alt":null,"id":25817119260771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524869816419,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01232Z9-YN30","requires_shipping":true,"taxable":true,"featured_image":{"id":34179977576547,"product_id":7836776431715,"position":16,"created_at":"2025-07-14T14:58:00+08:00","updated_at":"2025-07-14T14:58:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723_7c792dd9-bab2-430c-81a8-b4debe54f530.webp?v=1752476281","variant_ids":[43524869816419]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog - 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":"MST01232Z9-YN30","featured_media":{"alt":null,"id":25817120243811,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29dabe0f4b0ec9be640b4c669d26856b28546723_7c792dd9-bab2-430c-81a8-b4debe54f530.webp?v=1752476281"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524869849187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0123252-YN30","requires_shipping":true,"taxable":true,"featured_image":{"id":34179976855651,"product_id":7836776431715,"position":14,"created_at":"2025-07-14T14:57:59+08:00","updated_at":"2025-07-14T14:58:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b_92453813-1a33-48b0-b642-f59415bfc88d.webp?v=1752476280","variant_ids":[43524869849187]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0123252-YN30","featured_media":{"alt":null,"id":25817119883363,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37130529dc5ce53ab6b83ad63ff0ce33040a374b_92453813-1a33-48b0-b642-f59415bfc88d.webp?v=1752476280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43524869783651,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST012320B-YN30","requires_shipping":true,"taxable":true,"featured_image":{"id":34179976036451,"product_id":7836776431715,"position":11,"created_at":"2025-07-14T14:57:57+08:00","updated_at":"2025-07-14T14:57:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279","variant_ids":[43524869783651]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 經典復古系列-Dog - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012320B-YN30","featured_media":{"alt":null,"id":25817119260771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2445cf8e418ffc5d568a2fceeb234702e806d_465f26c8-8ea1-44aa-bd64-708cb036c430.webp?v=1752476279"}},"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: "停產"
}