$product = {"id":7823734734947,"title":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場","handle":"iphone-15-pro-max-solidx-rk14","description":null,"published_at":"2025-07-01T19:24:22+08:00","created_at":"2025-06-20T10:19:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-squarestudio","device-iPhone 15 Pro Max","merge","reseller-squarestudio"],"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":43472503701603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187332583523,"product_id":7823734734947,"position":12,"created_at":"2025-07-15T17:33:35+08:00","updated_at":"2025-07-15T17:33:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017","variant_ids":[43472503701603]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-RK14","featured_media":{"alt":null,"id":25822716723299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472506978403,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187328618595,"product_id":7823734734947,"position":5,"created_at":"2025-07-15T17:33:31+08:00","updated_at":"2025-07-15T17:33:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e7c37947486c52b5916c489f0d7e674a2a03b0.webp?v=1752572013","variant_ids":[43472506978403]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-RK14","featured_media":{"alt":null,"id":25822714757219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e7c37947486c52b5916c489f0d7e674a2a03b0.webp?v=1752572013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472507076707,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187331207267,"product_id":7823734734947,"position":10,"created_at":"2025-07-15T17:33:34+08:00","updated_at":"2025-07-15T17:33:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf6631b5f47d0befb8d826638cdbed9d6959ac.webp?v=1752572016","variant_ids":[43472507076707]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-RK14","featured_media":{"alt":null,"id":25822716133475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf6631b5f47d0befb8d826638cdbed9d6959ac.webp?v=1752572016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472507109475,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187328094307,"product_id":7823734734947,"position":4,"created_at":"2025-07-15T17:33:31+08:00","updated_at":"2025-07-15T17:33:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7da1b4fcce0e29e8b858677d4f94eb0a51ead02.webp?v=1752572012","variant_ids":[43472507109475]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-RK14","featured_media":{"alt":null,"id":25822714527843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7da1b4fcce0e29e8b858677d4f94eb0a51ead02.webp?v=1752572012"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494106890339,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187330093155,"product_id":7823734734947,"position":8,"created_at":"2025-07-15T17:33:33+08:00","updated_at":"2025-07-15T17:33:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6a33af5c6d2c5726458499404c814fbb2f5ad4e.webp?v=1752572014","variant_ids":[43494106890339]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-RK14","featured_media":{"alt":null,"id":25822715576419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6a33af5c6d2c5726458499404c814fbb2f5ad4e.webp?v=1752572014"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-RK14.png?v=1750385981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_6a683344-58bb-4c07-9c2a-9da1f222d703.png?v=1750831589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9300db44e31320b3675d8120ec6f3b1098ebb3e.webp?v=1752572012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7da1b4fcce0e29e8b858677d4f94eb0a51ead02.webp?v=1752572012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e7c37947486c52b5916c489f0d7e674a2a03b0.webp?v=1752572013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f2813abf3bad69aca58626bd3ba4233de23cda.webp?v=1752572014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02cfbcf02fa9a87b1718545a2c667cad7388fabd.webp?v=1752572014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6a33af5c6d2c5726458499404c814fbb2f5ad4e.webp?v=1752572014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed44d7db851787f7b4ef7a859dc0e69c3f9a2cd.webp?v=1752572015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf6631b5f47d0befb8d826638cdbed9d6959ac.webp?v=1752572016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b165b718da167823299503cd0931d73b2a94d460.webp?v=1752572016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-RK14.png?v=1750385981","options":["color"],"media":[{"alt":null,"id":25720285560931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-RK14.png?v=1750385981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-RK14.png?v=1750385981","width":2000},{"alt":null,"id":25736218640483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_6a683344-58bb-4c07-9c2a-9da1f222d703.png?v=1750831589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_6a683344-58bb-4c07-9c2a-9da1f222d703.png?v=1750831589","width":2000},{"alt":null,"id":25822714232931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9300db44e31320b3675d8120ec6f3b1098ebb3e.webp?v=1752572012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9300db44e31320b3675d8120ec6f3b1098ebb3e.webp?v=1752572012","width":2000},{"alt":null,"id":25822714527843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7da1b4fcce0e29e8b858677d4f94eb0a51ead02.webp?v=1752572012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7da1b4fcce0e29e8b858677d4f94eb0a51ead02.webp?v=1752572012","width":2000},{"alt":null,"id":25822714757219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e7c37947486c52b5916c489f0d7e674a2a03b0.webp?v=1752572013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e7c37947486c52b5916c489f0d7e674a2a03b0.webp?v=1752572013","width":2000},{"alt":null,"id":25822715019363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f2813abf3bad69aca58626bd3ba4233de23cda.webp?v=1752572014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f2813abf3bad69aca58626bd3ba4233de23cda.webp?v=1752572014","width":2000},{"alt":null,"id":25822715281507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02cfbcf02fa9a87b1718545a2c667cad7388fabd.webp?v=1752572014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02cfbcf02fa9a87b1718545a2c667cad7388fabd.webp?v=1752572014","width":2000},{"alt":null,"id":25822715576419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6a33af5c6d2c5726458499404c814fbb2f5ad4e.webp?v=1752572014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6a33af5c6d2c5726458499404c814fbb2f5ad4e.webp?v=1752572014","width":2000},{"alt":null,"id":25822715871331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed44d7db851787f7b4ef7a859dc0e69c3f9a2cd.webp?v=1752572015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed44d7db851787f7b4ef7a859dc0e69c3f9a2cd.webp?v=1752572015","width":2000},{"alt":null,"id":25822716133475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf6631b5f47d0befb8d826638cdbed9d6959ac.webp?v=1752572016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf6631b5f47d0befb8d826638cdbed9d6959ac.webp?v=1752572016","width":2000},{"alt":null,"id":25822716428387,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b165b718da167823299503cd0931d73b2a94d460.webp?v=1752572016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b165b718da167823299503cd0931d73b2a94d460.webp?v=1752572016","width":2000},{"alt":null,"id":25822716723299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43472503701603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187332583523,"product_id":7823734734947,"position":12,"created_at":"2025-07-15T17:33:35+08:00","updated_at":"2025-07-15T17:33:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017","variant_ids":[43472503701603]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-RK14","featured_media":{"alt":null,"id":25822716723299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472506978403,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187328618595,"product_id":7823734734947,"position":5,"created_at":"2025-07-15T17:33:31+08:00","updated_at":"2025-07-15T17:33:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e7c37947486c52b5916c489f0d7e674a2a03b0.webp?v=1752572013","variant_ids":[43472506978403]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-RK14","featured_media":{"alt":null,"id":25822714757219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e7c37947486c52b5916c489f0d7e674a2a03b0.webp?v=1752572013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472507076707,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187331207267,"product_id":7823734734947,"position":10,"created_at":"2025-07-15T17:33:34+08:00","updated_at":"2025-07-15T17:33:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf6631b5f47d0befb8d826638cdbed9d6959ac.webp?v=1752572016","variant_ids":[43472507076707]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-RK14","featured_media":{"alt":null,"id":25822716133475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf6631b5f47d0befb8d826638cdbed9d6959ac.webp?v=1752572016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472507109475,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187328094307,"product_id":7823734734947,"position":4,"created_at":"2025-07-15T17:33:31+08:00","updated_at":"2025-07-15T17:33:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7da1b4fcce0e29e8b858677d4f94eb0a51ead02.webp?v=1752572012","variant_ids":[43472507109475]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-RK14","featured_media":{"alt":null,"id":25822714527843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7da1b4fcce0e29e8b858677d4f94eb0a51ead02.webp?v=1752572012"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494106890339,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187330093155,"product_id":7823734734947,"position":8,"created_at":"2025-07-15T17:33:33+08:00","updated_at":"2025-07-15T17:33:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6a33af5c6d2c5726458499404c814fbb2f5ad4e.webp?v=1752572014","variant_ids":[43494106890339]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-RK14","featured_media":{"alt":null,"id":25822715576419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6a33af5c6d2c5726458499404c814fbb2f5ad4e.webp?v=1752572014"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43472503701603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187332583523,"product_id":7823734734947,"position":12,"created_at":"2025-07-15T17:33:35+08:00","updated_at":"2025-07-15T17:33:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017","variant_ids":[43472503701603]},"available":true,"name":"iPhone 15 Pro Max SolidX 方坊 Square Studio 樂樂登場 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-RK14","featured_media":{"alt":null,"id":25822716723299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5c5a7f4813bbfa71303fe548fda7462bcd1709c.webp?v=1752572017"}},"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: "停產"
}