Home
›
iPhone 16 Clear (MagSafe 兼容 & 相機按鈕) StarWars 星際大戰 星際大戰 – 達斯·維達
$product = {"id":7809254883427,"title":"iPhone 16 Clear (MagSafe 兼容 \u0026 相機按鈕) StarWars 星際大戰 星際大戰 – 達斯·維達","handle":"iphone-16-jellytint-magsafe-with-capture-button-pb147","description":null,"published_at":"2025-06-06T18:27:54+08:00","created_at":"2025-06-03T16:20:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"Collab JellyTint (MagSafe compatible) With Capture Button 迪士尼-星際大戰 Star Wars","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-star-wars","device-iPhone 16","merge","reseller-star-wars"],"price":148000,"price_min":148000,"price_max":148000,"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":43420342943843,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082919018595,"product_id":7809254883427,"position":19,"created_at":"2026-01-09T10:16:12+08:00","updated_at":"2026-01-09T10:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974","variant_ids":[43420342943843]},"available":true,"name":"iPhone 16 Clear (MagSafe 兼容 \u0026 相機按鈕) StarWars 星際大戰 星際大戰 – 達斯·維達 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013250G-PB147","featured_media":{"alt":null,"id":26639857942627,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54f5e859848001e7826efd89eb5dd7bb96209ce9.webp?v=1748938850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044.webp?v=1767858212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1.webp?v=1767858213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49.webp?v=1767858213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba.webp?v=1767858214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_5fdea04d-fd4d-4bf0-b36c-b73bdebcf952.webp?v=1767860494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_90fdc9e0-ffc6-4745-afaf-09731f0c36a7.webp?v=1767860494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_026310b1-f3e3-485e-80d2-0cd74ed36a4a.webp?v=1767860495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_f2390b44-d942-43f8-9756-9e2e37dbf082.webp?v=1767860495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_e46304eb-13e2-4c11-8359-ed08d5ee0383.webp?v=1767861082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_894e7d15-51ec-4c62-8475-b7450cf3491f.webp?v=1767861082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_ab7ba0b7-9ed2-4c42-a166-cce19d503893.webp?v=1767861083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_d9754649-36dd-41ff-9832-02b85456dfc6.webp?v=1767861083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_f719332d-d468-464a-a8c5-3c1d7d16c17c.webp?v=1767861380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_9b73c642-89c1-45c3-88a2-1b33dbd7b885.webp?v=1767861380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cd00c0ea-c623-465f-9223-442e66da9d2e.webp?v=1767861380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_88a44bf9-3ed5-43c7-81fb-507e007f6747.webp?v=1767861381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_46c8f691-2047-4f6b-bf74-be30c4bfa099.webp?v=1767924974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_5dbef2ba-ea96-4a41-ad73-da1650a51b1e.webp?v=1767924975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_a0904ec2-b5dd-476a-bb5d-017e7fa8e06f.webp?v=1767924975"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54f5e859848001e7826efd89eb5dd7bb96209ce9.webp?v=1748938850","options":["color"],"media":[{"alt":null,"id":25662020747363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54f5e859848001e7826efd89eb5dd7bb96209ce9.webp?v=1748938850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54f5e859848001e7826efd89eb5dd7bb96209ce9.webp?v=1748938850","width":2000},{"alt":null,"id":26636207358051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044.webp?v=1767858212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044.webp?v=1767858212","width":2000},{"alt":null,"id":26636207816803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1.webp?v=1767858213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1.webp?v=1767858213","width":2000},{"alt":null,"id":26636208177251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49.webp?v=1767858213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49.webp?v=1767858213","width":2000},{"alt":null,"id":26636208537699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba.webp?v=1767858214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba.webp?v=1767858214","width":2000},{"alt":null,"id":26636274565219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_5fdea04d-fd4d-4bf0-b36c-b73bdebcf952.webp?v=1767860494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_5fdea04d-fd4d-4bf0-b36c-b73bdebcf952.webp?v=1767860494","width":2000},{"alt":null,"id":26636274827363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_90fdc9e0-ffc6-4745-afaf-09731f0c36a7.webp?v=1767860494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_90fdc9e0-ffc6-4745-afaf-09731f0c36a7.webp?v=1767860494","width":2000},{"alt":null,"id":26636275187811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_026310b1-f3e3-485e-80d2-0cd74ed36a4a.webp?v=1767860495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_026310b1-f3e3-485e-80d2-0cd74ed36a4a.webp?v=1767860495","width":2000},{"alt":null,"id":26636275515491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_f2390b44-d942-43f8-9756-9e2e37dbf082.webp?v=1767860495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_f2390b44-d942-43f8-9756-9e2e37dbf082.webp?v=1767860495","width":2000},{"alt":null,"id":26636317294691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_e46304eb-13e2-4c11-8359-ed08d5ee0383.webp?v=1767861082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_e46304eb-13e2-4c11-8359-ed08d5ee0383.webp?v=1767861082","width":2000},{"alt":null,"id":26636317458531,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_894e7d15-51ec-4c62-8475-b7450cf3491f.webp?v=1767861082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_894e7d15-51ec-4c62-8475-b7450cf3491f.webp?v=1767861082","width":2000},{"alt":null,"id":26636317720675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_ab7ba0b7-9ed2-4c42-a166-cce19d503893.webp?v=1767861083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_ab7ba0b7-9ed2-4c42-a166-cce19d503893.webp?v=1767861083","width":2000},{"alt":null,"id":26636318015587,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_d9754649-36dd-41ff-9832-02b85456dfc6.webp?v=1767861083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_d9754649-36dd-41ff-9832-02b85456dfc6.webp?v=1767861083","width":2000},{"alt":null,"id":26636357468259,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_f719332d-d468-464a-a8c5-3c1d7d16c17c.webp?v=1767861380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_f719332d-d468-464a-a8c5-3c1d7d16c17c.webp?v=1767861380","width":2000},{"alt":null,"id":26636357730403,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_9b73c642-89c1-45c3-88a2-1b33dbd7b885.webp?v=1767861380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_9b73c642-89c1-45c3-88a2-1b33dbd7b885.webp?v=1767861380","width":2000},{"alt":null,"id":26636357992547,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cd00c0ea-c623-465f-9223-442e66da9d2e.webp?v=1767861380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cd00c0ea-c623-465f-9223-442e66da9d2e.webp?v=1767861380","width":2000},{"alt":null,"id":26636358254691,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_88a44bf9-3ed5-43c7-81fb-507e007f6747.webp?v=1767861381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_88a44bf9-3ed5-43c7-81fb-507e007f6747.webp?v=1767861381","width":2000},{"alt":null,"id":26639857746019,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_46c8f691-2047-4f6b-bf74-be30c4bfa099.webp?v=1767924974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a4f6fb3440aa1f96df92cdb421bf2877468a49_46c8f691-2047-4f6b-bf74-be30c4bfa099.webp?v=1767924974","width":2000},{"alt":null,"id":26639857942627,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974","width":2000},{"alt":null,"id":26639858335843,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_5dbef2ba-ea96-4a41-ad73-da1650a51b1e.webp?v=1767924975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665e662fbe8b324e411a2e0fb9ad161591737ba_5dbef2ba-ea96-4a41-ad73-da1650a51b1e.webp?v=1767924975","width":2000},{"alt":null,"id":26639858663523,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_a0904ec2-b5dd-476a-bb5d-017e7fa8e06f.webp?v=1767924975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f17de7681b5cb974d8d4a9114dca1bea3f9044_a0904ec2-b5dd-476a-bb5d-017e7fa8e06f.webp?v=1767924975","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43420342943843,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082919018595,"product_id":7809254883427,"position":19,"created_at":"2026-01-09T10:16:12+08:00","updated_at":"2026-01-09T10:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974","variant_ids":[43420342943843]},"available":true,"name":"iPhone 16 Clear (MagSafe 兼容 \u0026 相機按鈕) StarWars 星際大戰 星際大戰 – 達斯·維達 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013250G-PB147","featured_media":{"alt":null,"id":26639857942627,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43420342943843,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082919018595,"product_id":7809254883427,"position":19,"created_at":"2026-01-09T10:16:12+08:00","updated_at":"2026-01-09T10:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974","variant_ids":[43420342943843]},"available":true,"name":"iPhone 16 Clear (MagSafe 兼容 \u0026 相機按鈕) StarWars 星際大戰 星際大戰 – 達斯·維達 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013250G-PB147","featured_media":{"alt":null,"id":26639857942627,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1ad208fc4beb24c44c908a55f648e6b3d0ecd1_cb56e968-7f5b-45e9-8348-30727bf4c181.webp?v=1767924974"}},"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: "停產"
}