$product = {"id":7824212525155,"title":"iPhone 15 Pro SolidX 方坊 Square Studio 請勿打開","handle":"iphone-15-pro-solidx-rk19","description":null,"published_at":"2025-07-01T18:22:15+08:00","created_at":"2025-06-20T17:18:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-squarestudio","device-iPhone 15 Pro","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":43476981448803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187401363555,"product_id":7824212525155,"position":12,"created_at":"2025-07-15T17:34:37+08:00","updated_at":"2025-07-15T17:34:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078","variant_ids":[43476981448803]},"available":true,"name":"iPhone 15 Pro 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":"NST0129752-RK19","featured_media":{"alt":null,"id":25822752505955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986495075,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187396644963,"product_id":7824212525155,"position":5,"created_at":"2025-07-15T17:34:33+08:00","updated_at":"2025-07-15T17:34:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3860ff99b01eb76bcaf9ce50bbda2c25a593f395.webp?v=1752572074","variant_ids":[43476986495075]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 請勿打開 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-RK19","featured_media":{"alt":null,"id":25822750212195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3860ff99b01eb76bcaf9ce50bbda2c25a593f395.webp?v=1752572074"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986527843,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187399168099,"product_id":7824212525155,"position":9,"created_at":"2025-07-15T17:34:35+08:00","updated_at":"2025-07-15T17:34:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af548b6afe5adcfb05699ea571624a3acd26e4d6.webp?v=1752572076","variant_ids":[43476986527843]},"available":true,"name":"iPhone 15 Pro 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":"NST0129753-RK19","featured_media":{"alt":null,"id":25822751522915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af548b6afe5adcfb05699ea571624a3acd26e4d6.webp?v=1752572076"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986560611,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187399954531,"product_id":7824212525155,"position":10,"created_at":"2025-07-15T17:34:35+08:00","updated_at":"2025-07-15T17:34:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75aa764b7f86546bd5989833fb919f7777fb5ea5.webp?v=1752572077","variant_ids":[43476986560611]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 請勿打開 - 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":"NST012970B-RK19","featured_media":{"alt":null,"id":25822751883363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75aa764b7f86546bd5989833fb919f7777fb5ea5.webp?v=1752572077"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986593379,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187395924067,"product_id":7824212525155,"position":4,"created_at":"2025-07-15T17:34:32+08:00","updated_at":"2025-07-15T17:34:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31334ec167d5c59da01b9128eec9cce4e926c75b.webp?v=1752572074","variant_ids":[43476986593379]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 請勿打開 - 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":"NST01297Z8-RK19","featured_media":{"alt":null,"id":25822749917283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31334ec167d5c59da01b9128eec9cce4e926c75b.webp?v=1752572074"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK19_496bcd08-8fef-44dc-9669-4c27b9b24910.png?v=1750411095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK19_0db4e18c-cb76-41ce-97bb-072b732b8dc6.png?v=1750823712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01eedea2d0af6553725a0d9353decd5dbe611bb0.webp?v=1752572073","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31334ec167d5c59da01b9128eec9cce4e926c75b.webp?v=1752572074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3860ff99b01eb76bcaf9ce50bbda2c25a593f395.webp?v=1752572074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0967811dd5c724a729132c6b3a6c202c6fbe75.webp?v=1752572075","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8caf6c23a4e69e9351840bb3a16be371d9b83c0a.webp?v=1752572075","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21507e36a07816145fff79567c745c204eac5eff.webp?v=1752572076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af548b6afe5adcfb05699ea571624a3acd26e4d6.webp?v=1752572076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75aa764b7f86546bd5989833fb919f7777fb5ea5.webp?v=1752572077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0207b8e3f936f9e3779a43d54e27711af695a29c.webp?v=1752572078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK19_496bcd08-8fef-44dc-9669-4c27b9b24910.png?v=1750411095","options":["color"],"media":[{"alt":null,"id":25721764970595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK19_496bcd08-8fef-44dc-9669-4c27b9b24910.png?v=1750411095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK19_496bcd08-8fef-44dc-9669-4c27b9b24910.png?v=1750411095","width":2000},{"alt":null,"id":25735503970403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK19_0db4e18c-cb76-41ce-97bb-072b732b8dc6.png?v=1750823712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK19_0db4e18c-cb76-41ce-97bb-072b732b8dc6.png?v=1750823712","width":2000},{"alt":null,"id":25822749589603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01eedea2d0af6553725a0d9353decd5dbe611bb0.webp?v=1752572073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01eedea2d0af6553725a0d9353decd5dbe611bb0.webp?v=1752572073","width":2000},{"alt":null,"id":25822749917283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31334ec167d5c59da01b9128eec9cce4e926c75b.webp?v=1752572074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31334ec167d5c59da01b9128eec9cce4e926c75b.webp?v=1752572074","width":2000},{"alt":null,"id":25822750212195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3860ff99b01eb76bcaf9ce50bbda2c25a593f395.webp?v=1752572074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3860ff99b01eb76bcaf9ce50bbda2c25a593f395.webp?v=1752572074","width":2000},{"alt":null,"id":25822750441571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0967811dd5c724a729132c6b3a6c202c6fbe75.webp?v=1752572075"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0967811dd5c724a729132c6b3a6c202c6fbe75.webp?v=1752572075","width":2000},{"alt":null,"id":25822750769251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8caf6c23a4e69e9351840bb3a16be371d9b83c0a.webp?v=1752572075"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8caf6c23a4e69e9351840bb3a16be371d9b83c0a.webp?v=1752572075","width":2000},{"alt":null,"id":25822751129699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21507e36a07816145fff79567c745c204eac5eff.webp?v=1752572076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21507e36a07816145fff79567c745c204eac5eff.webp?v=1752572076","width":2000},{"alt":null,"id":25822751522915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af548b6afe5adcfb05699ea571624a3acd26e4d6.webp?v=1752572076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af548b6afe5adcfb05699ea571624a3acd26e4d6.webp?v=1752572076","width":2000},{"alt":null,"id":25822751883363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75aa764b7f86546bd5989833fb919f7777fb5ea5.webp?v=1752572077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75aa764b7f86546bd5989833fb919f7777fb5ea5.webp?v=1752572077","width":2000},{"alt":null,"id":25822752211043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0207b8e3f936f9e3779a43d54e27711af695a29c.webp?v=1752572078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0207b8e3f936f9e3779a43d54e27711af695a29c.webp?v=1752572078","width":2000},{"alt":null,"id":25822752505955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43476981448803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187401363555,"product_id":7824212525155,"position":12,"created_at":"2025-07-15T17:34:37+08:00","updated_at":"2025-07-15T17:34:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078","variant_ids":[43476981448803]},"available":true,"name":"iPhone 15 Pro 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":"NST0129752-RK19","featured_media":{"alt":null,"id":25822752505955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986495075,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187396644963,"product_id":7824212525155,"position":5,"created_at":"2025-07-15T17:34:33+08:00","updated_at":"2025-07-15T17:34:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3860ff99b01eb76bcaf9ce50bbda2c25a593f395.webp?v=1752572074","variant_ids":[43476986495075]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 請勿打開 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-RK19","featured_media":{"alt":null,"id":25822750212195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3860ff99b01eb76bcaf9ce50bbda2c25a593f395.webp?v=1752572074"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986527843,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187399168099,"product_id":7824212525155,"position":9,"created_at":"2025-07-15T17:34:35+08:00","updated_at":"2025-07-15T17:34:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af548b6afe5adcfb05699ea571624a3acd26e4d6.webp?v=1752572076","variant_ids":[43476986527843]},"available":true,"name":"iPhone 15 Pro 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":"NST0129753-RK19","featured_media":{"alt":null,"id":25822751522915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af548b6afe5adcfb05699ea571624a3acd26e4d6.webp?v=1752572076"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986560611,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187399954531,"product_id":7824212525155,"position":10,"created_at":"2025-07-15T17:34:35+08:00","updated_at":"2025-07-15T17:34:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75aa764b7f86546bd5989833fb919f7777fb5ea5.webp?v=1752572077","variant_ids":[43476986560611]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 請勿打開 - 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":"NST012970B-RK19","featured_media":{"alt":null,"id":25822751883363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75aa764b7f86546bd5989833fb919f7777fb5ea5.webp?v=1752572077"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476986593379,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187395924067,"product_id":7824212525155,"position":4,"created_at":"2025-07-15T17:34:32+08:00","updated_at":"2025-07-15T17:34:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31334ec167d5c59da01b9128eec9cce4e926c75b.webp?v=1752572074","variant_ids":[43476986593379]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 請勿打開 - 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":"NST01297Z8-RK19","featured_media":{"alt":null,"id":25822749917283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31334ec167d5c59da01b9128eec9cce4e926c75b.webp?v=1752572074"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43476981448803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK19","requires_shipping":true,"taxable":true,"featured_image":{"id":34187401363555,"product_id":7824212525155,"position":12,"created_at":"2025-07-15T17:34:37+08:00","updated_at":"2025-07-15T17:34:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078","variant_ids":[43476981448803]},"available":true,"name":"iPhone 15 Pro 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":"NST0129752-RK19","featured_media":{"alt":null,"id":25822752505955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971e2814e1a59bef81678dfc23b538ad023ac8c9.webp?v=1752572078"}},"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: "停產"
}