Home
›
iPhone 13 mini SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變Q版系列-全員集合
$product = {"id":7920628039779,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變Q版系列-全員集合","handle":"iphone-13-mini-solidsuit-classic-magsafe-ptt19","description":null,"published_at":"2025-11-10T16:20:14+08:00","created_at":"2025-11-10T15:58:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 13 Mini","merge","reseller-jujutsu-kaisen"],"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":43829232861283,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36124764831843,"product_id":7920628039779,"position":17,"created_at":"2026-06-29T15:22:29+08:00","updated_at":"2026-06-29T15:22:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751","variant_ids":[43829232861283]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變Q版系列-全員集合 - 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":"MST01228Z8-PTT19","featured_media":{"alt":null,"id":27630007779427,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829232926819,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36124764897379,"product_id":7920628039779,"position":19,"created_at":"2026-06-29T15:22:30+08:00","updated_at":"2026-06-29T15:22:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_49af9779-64d4-4133-8372-06b70e998b45.webp?v=1782717753","variant_ids":[43829232926819]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變Q版系列-全員集合 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-PTT19","featured_media":{"alt":null,"id":27630007844963,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_49af9779-64d4-4133-8372-06b70e998b45.webp?v=1782717753"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8055283ba2dd39208d2bbf3fede5c70bf8e0cef7.webp?v=1762761525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74b65defa44bf9e754697c3644ca9668a481a44.webp?v=1762761526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78.webp?v=1762761527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2.webp?v=1762761527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977864dd9f651267ad2988d10acc1b84d96a0164.webp?v=1762761528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512.webp?v=1762761528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b49cbdd4d932db46c7dbf24111b1cd1b49ac6c76.webp?v=1762761529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6313d39ed0fe4a00b268042a33a8bbe2d12a58ac.webp?v=1762761530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f5276dced2dc322542d305d4727d6422a651b4.webp?v=1762761531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4911b3659bee2289e292a92111a55174e63a800.webp?v=1762761531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_d300fd0a-e154-4a44-82a2-9b3f29f1bcf6.webp?v=1782265117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_bbf1498c-527a-4943-85bd-e8d0cfa10100.webp?v=1782265119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_52044f22-ab3a-4123-8f56-1e0c99dbedec.webp?v=1782265120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_c73391bf-fbe9-4b39-8621-7bfbf193268c.webp?v=1782291276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_dfb65c08-b7b1-42ee-a94b-3b306a7203e2.webp?v=1782291277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_70ea227c-c8c1-485f-a6a5-afa83c5ba188.webp?v=1782291277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_a04b91c5-4aa5-4206-a5ca-fae42b0fe359.webp?v=1782717752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_49af9779-64d4-4133-8372-06b70e998b45.webp?v=1782717753"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8055283ba2dd39208d2bbf3fede5c70bf8e0cef7.webp?v=1762761525","options":["color"],"media":[{"alt":null,"id":26348210716771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8055283ba2dd39208d2bbf3fede5c70bf8e0cef7.webp?v=1762761525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8055283ba2dd39208d2bbf3fede5c70bf8e0cef7.webp?v=1762761525","width":2000},{"alt":null,"id":26348210913379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74b65defa44bf9e754697c3644ca9668a481a44.webp?v=1762761526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74b65defa44bf9e754697c3644ca9668a481a44.webp?v=1762761526","width":2000},{"alt":null,"id":26348211273827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78.webp?v=1762761527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78.webp?v=1762761527","width":2000},{"alt":null,"id":26348211503203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2.webp?v=1762761527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2.webp?v=1762761527","width":2000},{"alt":null,"id":26348211863651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977864dd9f651267ad2988d10acc1b84d96a0164.webp?v=1762761528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977864dd9f651267ad2988d10acc1b84d96a0164.webp?v=1762761528","width":2000},{"alt":null,"id":26348212191331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512.webp?v=1762761528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512.webp?v=1762761528","width":2000},{"alt":null,"id":26348212486243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b49cbdd4d932db46c7dbf24111b1cd1b49ac6c76.webp?v=1762761529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b49cbdd4d932db46c7dbf24111b1cd1b49ac6c76.webp?v=1762761529","width":2000},{"alt":null,"id":26348212879459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6313d39ed0fe4a00b268042a33a8bbe2d12a58ac.webp?v=1762761530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6313d39ed0fe4a00b268042a33a8bbe2d12a58ac.webp?v=1762761530","width":2000},{"alt":null,"id":26348213174371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f5276dced2dc322542d305d4727d6422a651b4.webp?v=1762761531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f5276dced2dc322542d305d4727d6422a651b4.webp?v=1762761531","width":2000},{"alt":null,"id":26348213370979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4911b3659bee2289e292a92111a55174e63a800.webp?v=1762761531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4911b3659bee2289e292a92111a55174e63a800.webp?v=1762761531","width":2000},{"alt":null,"id":27586969010275,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_d300fd0a-e154-4a44-82a2-9b3f29f1bcf6.webp?v=1782265117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_d300fd0a-e154-4a44-82a2-9b3f29f1bcf6.webp?v=1782265117","width":2000},{"alt":null,"id":27586969600099,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_bbf1498c-527a-4943-85bd-e8d0cfa10100.webp?v=1782265119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_bbf1498c-527a-4943-85bd-e8d0cfa10100.webp?v=1782265119","width":2000},{"alt":null,"id":27586970157155,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_52044f22-ab3a-4123-8f56-1e0c99dbedec.webp?v=1782265120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_52044f22-ab3a-4123-8f56-1e0c99dbedec.webp?v=1782265120","width":2000},{"alt":null,"id":27594577543267,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_c73391bf-fbe9-4b39-8621-7bfbf193268c.webp?v=1782291276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_c73391bf-fbe9-4b39-8621-7bfbf193268c.webp?v=1782291276","width":2000},{"alt":null,"id":27594577805411,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_dfb65c08-b7b1-42ee-a94b-3b306a7203e2.webp?v=1782291277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_dfb65c08-b7b1-42ee-a94b-3b306a7203e2.webp?v=1782291277","width":2000},{"alt":null,"id":27594578231395,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_70ea227c-c8c1-485f-a6a5-afa83c5ba188.webp?v=1782291277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_70ea227c-c8c1-485f-a6a5-afa83c5ba188.webp?v=1782291277","width":2000},{"alt":null,"id":27630007779427,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751","width":2000},{"alt":null,"id":27630007812195,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_a04b91c5-4aa5-4206-a5ca-fae42b0fe359.webp?v=1782717752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dd775a3c27b6254e35bc46460973d148a38ee78_a04b91c5-4aa5-4206-a5ca-fae42b0fe359.webp?v=1782717752","width":2000},{"alt":null,"id":27630007844963,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_49af9779-64d4-4133-8372-06b70e998b45.webp?v=1782717753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_49af9779-64d4-4133-8372-06b70e998b45.webp?v=1782717753","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43829232861283,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36124764831843,"product_id":7920628039779,"position":17,"created_at":"2026-06-29T15:22:29+08:00","updated_at":"2026-06-29T15:22:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751","variant_ids":[43829232861283]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變Q版系列-全員集合 - 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":"MST01228Z8-PTT19","featured_media":{"alt":null,"id":27630007779427,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829232926819,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36124764897379,"product_id":7920628039779,"position":19,"created_at":"2026-06-29T15:22:30+08:00","updated_at":"2026-06-29T15:22:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_49af9779-64d4-4133-8372-06b70e998b45.webp?v=1782717753","variant_ids":[43829232926819]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變Q版系列-全員集合 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-PTT19","featured_media":{"alt":null,"id":27630007844963,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba4a6fb55fab000fe480825113393310f347512_49af9779-64d4-4133-8372-06b70e998b45.webp?v=1782717753"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43829232861283,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36124764831843,"product_id":7920628039779,"position":17,"created_at":"2026-06-29T15:22:29+08:00","updated_at":"2026-06-29T15:22:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751","variant_ids":[43829232861283]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變Q版系列-全員集合 - 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":"MST01228Z8-PTT19","featured_media":{"alt":null,"id":27630007779427,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd439f3e6f3fca957ff7e9f60b3113fb76f58a2_4ce181d8-9991-4ddf-804e-1c89e6afc3cd.webp?v=1782717751"}},"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: "停產"
}