$product = {"id":7155932168291,"title":"iPhone 15 Pro Clear 1G G本款","handle":"iphone-15-pro-jellytint-iv07","description":null,"published_at":"2024-02-02T09:58:34+08:00","created_at":"2024-01-23T17:21:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-1G","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-1chun","device-iPhone 15 Pro","merge","reseller-1chun"],"price":128000,"price_min":128000,"price_max":128000,"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":41197394133091,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36322973876323,"product_id":7155932168291,"position":15,"created_at":"2026-07-20T18:28:38+08:00","updated_at":"2026-07-20T18:28:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320","variant_ids":[41197394133091]},"available":true,"name":"iPhone 15 Pro Clear 1G G本款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-IV07","featured_media":{"alt":null,"id":27826881658979,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197394165859,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36322971680867,"product_id":7155932168291,"position":13,"created_at":"2026-07-20T18:28:27+08:00","updated_at":"2026-07-20T18:28:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211_7a22db18-519d-4c22-aa7f-179b27d487fd.webp?v=1784543309","variant_ids":[41197394165859]},"available":true,"name":"iPhone 15 Pro Clear 1G G本款 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-IV07","featured_media":{"alt":null,"id":27826879463523,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211_7a22db18-519d-4c22-aa7f-179b27d487fd.webp?v=1784543309"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197394198627,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36322973089891,"product_id":7155932168291,"position":14,"created_at":"2026-07-20T18:28:33+08:00","updated_at":"2026-07-20T18:28:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755_5c90873d-60ef-49b9-ac7e-456100a54f28.webp?v=1784543315","variant_ids":[41197394198627]},"available":true,"name":"iPhone 15 Pro Clear 1G G本款 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-IV07","featured_media":{"alt":null,"id":27826880938083,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755_5c90873d-60ef-49b9-ac7e-456100a54f28.webp?v=1784543315"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc043771a2c7a96192c3dbaf34e0428c793253d_28cee3b9-a17d-4d6d-bd78-871e556267de.webp?v=1706001698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae78a93408f15019a4393583d72b53a07eb13c7_f306f633-fca5-43ae-8e4a-30a348a22d04.webp?v=1706001700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d5b0370ed8f8c2cfb9a6eb631ff72b6b8b62e7_4458175c-9098-4161-b6bb-305547bcf655.webp?v=1706001702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040ac0449b2058beea6b5e0f0a89f3dbabe61cbc_069ac48a-036a-455a-a801-67e41a5bc5d9.webp?v=1706001704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9d9f4a66c6dec04ea060e94c5477dd23e4eb42_c7522b5f-98c9-47c1-bd93-5e70bc6b5e39.webp?v=1706001709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3226d300a36694deeb302a728eb260beb7c6e460_80744b29-cb67-4fad-8abc-21855da36917.webp?v=1706062702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9d9f4a66c6dec04ea060e94c5477dd23e4eb42_e5335889-e27d-4100-84b7-d56275f8dd8c.webp?v=1706062704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161b771d50b02ef67c6338c5545a90fca6241d3d_dfc833df-02ae-40b1-bf8b-961c99ae5868.webp?v=1706062711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f147d6accf8d6117a2e8587d56e9a4aa739fd959_b83b398a-524b-4d1a-ac09-2db63c6a02b5.webp?v=1706254261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755.webp?v=1782882968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d.webp?v=1782882969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211.webp?v=1782882971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211_7a22db18-519d-4c22-aa7f-179b27d487fd.webp?v=1784543309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755_5c90873d-60ef-49b9-ac7e-456100a54f28.webp?v=1784543315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc043771a2c7a96192c3dbaf34e0428c793253d_28cee3b9-a17d-4d6d-bd78-871e556267de.webp?v=1706001698","options":["color"],"media":[{"alt":null,"id":23202238955619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc043771a2c7a96192c3dbaf34e0428c793253d_28cee3b9-a17d-4d6d-bd78-871e556267de.webp?v=1706001698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc043771a2c7a96192c3dbaf34e0428c793253d_28cee3b9-a17d-4d6d-bd78-871e556267de.webp?v=1706001698","width":2000},{"alt":null,"id":23202239381603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae78a93408f15019a4393583d72b53a07eb13c7_f306f633-fca5-43ae-8e4a-30a348a22d04.webp?v=1706001700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae78a93408f15019a4393583d72b53a07eb13c7_f306f633-fca5-43ae-8e4a-30a348a22d04.webp?v=1706001700","width":2000},{"alt":null,"id":23202239938659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d5b0370ed8f8c2cfb9a6eb631ff72b6b8b62e7_4458175c-9098-4161-b6bb-305547bcf655.webp?v=1706001702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d5b0370ed8f8c2cfb9a6eb631ff72b6b8b62e7_4458175c-9098-4161-b6bb-305547bcf655.webp?v=1706001702","width":2000},{"alt":null,"id":23202240626787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040ac0449b2058beea6b5e0f0a89f3dbabe61cbc_069ac48a-036a-455a-a801-67e41a5bc5d9.webp?v=1706001704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040ac0449b2058beea6b5e0f0a89f3dbabe61cbc_069ac48a-036a-455a-a801-67e41a5bc5d9.webp?v=1706001704","width":2000},{"alt":null,"id":23202241871971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9d9f4a66c6dec04ea060e94c5477dd23e4eb42_c7522b5f-98c9-47c1-bd93-5e70bc6b5e39.webp?v=1706001709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9d9f4a66c6dec04ea060e94c5477dd23e4eb42_c7522b5f-98c9-47c1-bd93-5e70bc6b5e39.webp?v=1706001709","width":2000},{"alt":null,"id":23207193247843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3226d300a36694deeb302a728eb260beb7c6e460_80744b29-cb67-4fad-8abc-21855da36917.webp?v=1706062702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3226d300a36694deeb302a728eb260beb7c6e460_80744b29-cb67-4fad-8abc-21855da36917.webp?v=1706062702","width":2000},{"alt":null,"id":23207194132579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9d9f4a66c6dec04ea060e94c5477dd23e4eb42_e5335889-e27d-4100-84b7-d56275f8dd8c.webp?v=1706062704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9d9f4a66c6dec04ea060e94c5477dd23e4eb42_e5335889-e27d-4100-84b7-d56275f8dd8c.webp?v=1706062704","width":2000},{"alt":null,"id":23207197212771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161b771d50b02ef67c6338c5545a90fca6241d3d_dfc833df-02ae-40b1-bf8b-961c99ae5868.webp?v=1706062711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161b771d50b02ef67c6338c5545a90fca6241d3d_dfc833df-02ae-40b1-bf8b-961c99ae5868.webp?v=1706062711","width":2000},{"alt":null,"id":23217642242147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f147d6accf8d6117a2e8587d56e9a4aa739fd959_b83b398a-524b-4d1a-ac09-2db63c6a02b5.webp?v=1706254261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f147d6accf8d6117a2e8587d56e9a4aa739fd959_b83b398a-524b-4d1a-ac09-2db63c6a02b5.webp?v=1706254261","width":2000},{"alt":null,"id":27647720456291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755.webp?v=1782882968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755.webp?v=1782882968","width":2000},{"alt":null,"id":27647721177187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d.webp?v=1782882969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d.webp?v=1782882969","width":2000},{"alt":null,"id":27647721767011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211.webp?v=1782882971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211.webp?v=1782882971","width":2000},{"alt":null,"id":27826879463523,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211_7a22db18-519d-4c22-aa7f-179b27d487fd.webp?v=1784543309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211_7a22db18-519d-4c22-aa7f-179b27d487fd.webp?v=1784543309","width":2000},{"alt":null,"id":27826880938083,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755_5c90873d-60ef-49b9-ac7e-456100a54f28.webp?v=1784543315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755_5c90873d-60ef-49b9-ac7e-456100a54f28.webp?v=1784543315","width":2000},{"alt":null,"id":27826881658979,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197394133091,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36322973876323,"product_id":7155932168291,"position":15,"created_at":"2026-07-20T18:28:38+08:00","updated_at":"2026-07-20T18:28:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320","variant_ids":[41197394133091]},"available":true,"name":"iPhone 15 Pro Clear 1G G本款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-IV07","featured_media":{"alt":null,"id":27826881658979,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197394165859,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36322971680867,"product_id":7155932168291,"position":13,"created_at":"2026-07-20T18:28:27+08:00","updated_at":"2026-07-20T18:28:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211_7a22db18-519d-4c22-aa7f-179b27d487fd.webp?v=1784543309","variant_ids":[41197394165859]},"available":true,"name":"iPhone 15 Pro Clear 1G G本款 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-IV07","featured_media":{"alt":null,"id":27826879463523,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957dd88b644ec6e6297348581ef5d053c3b43211_7a22db18-519d-4c22-aa7f-179b27d487fd.webp?v=1784543309"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197394198627,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36322973089891,"product_id":7155932168291,"position":14,"created_at":"2026-07-20T18:28:33+08:00","updated_at":"2026-07-20T18:28:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755_5c90873d-60ef-49b9-ac7e-456100a54f28.webp?v=1784543315","variant_ids":[41197394198627]},"available":true,"name":"iPhone 15 Pro Clear 1G G本款 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-IV07","featured_media":{"alt":null,"id":27826880938083,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71fb6bf1268fee4c44ceac8228bf8dbd9553c755_5c90873d-60ef-49b9-ac7e-456100a54f28.webp?v=1784543315"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197394133091,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36322973876323,"product_id":7155932168291,"position":15,"created_at":"2026-07-20T18:28:38+08:00","updated_at":"2026-07-20T18:28:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320","variant_ids":[41197394133091]},"available":true,"name":"iPhone 15 Pro Clear 1G G本款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-IV07","featured_media":{"alt":null,"id":27826881658979,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb7cbcea5b8c554cc92a29b28c8a7abea2f235d_af4a02a6-cfeb-450b-a5a5-4d492f110010.webp?v=1784543320"}},"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: "停產" }