$product = {"id":7824198434915,"title":"iPhone 15 Pro SolidX 方坊 Square Studio Me time","handle":"iphone-15-pro-solidx-rk12","description":null,"published_at":"2025-07-01T18:24:14+08:00","created_at":"2025-06-20T17:16:42+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":43476844118115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187350835299,"product_id":7824198434915,"position":9,"created_at":"2025-07-15T17:33:51+08:00","updated_at":"2025-07-15T17:33:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032","variant_ids":[43476844118115]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822726291555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847853667,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187349786723,"product_id":7824198434915,"position":7,"created_at":"2025-07-15T17:33:49+08:00","updated_at":"2025-07-15T17:33:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a1f73b41ebe872fda180895bf3a7f21bec4347.webp?v=1752572031","variant_ids":[43476847853667]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822725800035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a1f73b41ebe872fda180895bf3a7f21bec4347.webp?v=1752572031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847886435,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187350048867,"product_id":7824198434915,"position":8,"created_at":"2025-07-15T17:33:50+08:00","updated_at":"2025-07-15T17:33:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbd12cb8ab61cb662ddf22081d2951d47b6ff397.webp?v=1752572032","variant_ids":[43476847886435]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822726029411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbd12cb8ab61cb662ddf22081d2951d47b6ff397.webp?v=1752572032"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847919203,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187351654499,"product_id":7824198434915,"position":11,"created_at":"2025-07-15T17:33:52+08:00","updated_at":"2025-07-15T17:33:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb724b861ecb01ec28fc0e8a3a921793f1e4da65.webp?v=1752572034","variant_ids":[43476847919203]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822726717539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb724b861ecb01ec28fc0e8a3a921793f1e4da65.webp?v=1752572034"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847951971,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187347361891,"product_id":7824198434915,"position":4,"created_at":"2025-07-15T17:33:48+08:00","updated_at":"2025-07-15T17:33:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e565254262eb497fdcb8a2dc73ffc1280062934c.webp?v=1752572029","variant_ids":[43476847951971]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822724587619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e565254262eb497fdcb8a2dc73ffc1280062934c.webp?v=1752572029"}},"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-RK12_a06cbe4b-ec14-4466-af9f-86efb02b77bc.png?v=1750411004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK12_0a6436d1-19c2-4c92-97b2-d7da84116023.png?v=1750824613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d146777fcd2876b8f90c96dbfd1b3b3961aff509.webp?v=1752572029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e565254262eb497fdcb8a2dc73ffc1280062934c.webp?v=1752572029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d60a3cde958fd3e4e30acab98be58fc018a3f92.webp?v=1752572030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b7fc7ca4ab1e6d96e549980de4e2b0d8cd53b9.webp?v=1752572031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a1f73b41ebe872fda180895bf3a7f21bec4347.webp?v=1752572031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbd12cb8ab61cb662ddf22081d2951d47b6ff397.webp?v=1752572032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7f8e8f2c2150696389feaf818d67eeeaa968a46.webp?v=1752572033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb724b861ecb01ec28fc0e8a3a921793f1e4da65.webp?v=1752572034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25edbbcc362c53016ac57281d950b428a589bbae.webp?v=1752572034"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK12_a06cbe4b-ec14-4466-af9f-86efb02b77bc.png?v=1750411004","options":["color"],"media":[{"alt":null,"id":25721747636323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK12_a06cbe4b-ec14-4466-af9f-86efb02b77bc.png?v=1750411004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK12_a06cbe4b-ec14-4466-af9f-86efb02b77bc.png?v=1750411004","width":2000},{"alt":null,"id":25735671840867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK12_0a6436d1-19c2-4c92-97b2-d7da84116023.png?v=1750824613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK12_0a6436d1-19c2-4c92-97b2-d7da84116023.png?v=1750824613","width":2000},{"alt":null,"id":25822724030563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d146777fcd2876b8f90c96dbfd1b3b3961aff509.webp?v=1752572029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d146777fcd2876b8f90c96dbfd1b3b3961aff509.webp?v=1752572029","width":2000},{"alt":null,"id":25822724587619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e565254262eb497fdcb8a2dc73ffc1280062934c.webp?v=1752572029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e565254262eb497fdcb8a2dc73ffc1280062934c.webp?v=1752572029","width":2000},{"alt":null,"id":25822725046371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d60a3cde958fd3e4e30acab98be58fc018a3f92.webp?v=1752572030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d60a3cde958fd3e4e30acab98be58fc018a3f92.webp?v=1752572030","width":2000},{"alt":null,"id":25822725505123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b7fc7ca4ab1e6d96e549980de4e2b0d8cd53b9.webp?v=1752572031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b7fc7ca4ab1e6d96e549980de4e2b0d8cd53b9.webp?v=1752572031","width":2000},{"alt":null,"id":25822725800035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a1f73b41ebe872fda180895bf3a7f21bec4347.webp?v=1752572031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a1f73b41ebe872fda180895bf3a7f21bec4347.webp?v=1752572031","width":2000},{"alt":null,"id":25822726029411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbd12cb8ab61cb662ddf22081d2951d47b6ff397.webp?v=1752572032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbd12cb8ab61cb662ddf22081d2951d47b6ff397.webp?v=1752572032","width":2000},{"alt":null,"id":25822726291555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032","width":2000},{"alt":null,"id":25822726553699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7f8e8f2c2150696389feaf818d67eeeaa968a46.webp?v=1752572033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7f8e8f2c2150696389feaf818d67eeeaa968a46.webp?v=1752572033","width":2000},{"alt":null,"id":25822726717539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb724b861ecb01ec28fc0e8a3a921793f1e4da65.webp?v=1752572034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb724b861ecb01ec28fc0e8a3a921793f1e4da65.webp?v=1752572034","width":2000},{"alt":null,"id":25822726914147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25edbbcc362c53016ac57281d950b428a589bbae.webp?v=1752572034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25edbbcc362c53016ac57281d950b428a589bbae.webp?v=1752572034","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43476844118115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187350835299,"product_id":7824198434915,"position":9,"created_at":"2025-07-15T17:33:51+08:00","updated_at":"2025-07-15T17:33:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032","variant_ids":[43476844118115]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822726291555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847853667,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187349786723,"product_id":7824198434915,"position":7,"created_at":"2025-07-15T17:33:49+08:00","updated_at":"2025-07-15T17:33:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a1f73b41ebe872fda180895bf3a7f21bec4347.webp?v=1752572031","variant_ids":[43476847853667]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822725800035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31a1f73b41ebe872fda180895bf3a7f21bec4347.webp?v=1752572031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847886435,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187350048867,"product_id":7824198434915,"position":8,"created_at":"2025-07-15T17:33:50+08:00","updated_at":"2025-07-15T17:33:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbd12cb8ab61cb662ddf22081d2951d47b6ff397.webp?v=1752572032","variant_ids":[43476847886435]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822726029411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbd12cb8ab61cb662ddf22081d2951d47b6ff397.webp?v=1752572032"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847919203,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187351654499,"product_id":7824198434915,"position":11,"created_at":"2025-07-15T17:33:52+08:00","updated_at":"2025-07-15T17:33:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb724b861ecb01ec28fc0e8a3a921793f1e4da65.webp?v=1752572034","variant_ids":[43476847919203]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822726717539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb724b861ecb01ec28fc0e8a3a921793f1e4da65.webp?v=1752572034"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476847951971,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187347361891,"product_id":7824198434915,"position":4,"created_at":"2025-07-15T17:33:48+08:00","updated_at":"2025-07-15T17:33:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e565254262eb497fdcb8a2dc73ffc1280062934c.webp?v=1752572029","variant_ids":[43476847951971]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822724587619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e565254262eb497fdcb8a2dc73ffc1280062934c.webp?v=1752572029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43476844118115,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK12","requires_shipping":true,"taxable":true,"featured_image":{"id":34187350835299,"product_id":7824198434915,"position":9,"created_at":"2025-07-15T17:33:51+08:00","updated_at":"2025-07-15T17:33:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032","variant_ids":[43476844118115]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio Me time - 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-RK12","featured_media":{"alt":null,"id":25822726291555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3b6015be3b6b3e05419fc1bcef176f9f151171.webp?v=1752572032"}},"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: "停產"
}