$product = {"id":7815650672739,"title":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍","handle":"iphone-14-pro-max-jellytint-bumper-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:14:04+08:00","created_at":"2025-06-11T14:31:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 14 Pro Max","merge","reseller-littlepopcorn"],"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":43444955283555,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012349005923,"product_id":7815650672739,"position":13,"created_at":"2025-06-12T10:09:58+08:00","updated_at":"2025-06-12T10:10:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200","variant_ids":[43444955283555]},"available":true,"name":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-EG10","featured_media":{"alt":null,"id":25692898164835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444957085795,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012349825123,"product_id":7815650672739,"position":15,"created_at":"2025-06-12T10:09:59+08:00","updated_at":"2025-06-12T10:10:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_7b11b857-a616-48ef-a1c3-560134f06f89.webp?v=1749694201","variant_ids":[43444957085795]},"available":true,"name":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-EG10","featured_media":{"alt":null,"id":25692898754659,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_7b11b857-a616-48ef-a1c3-560134f06f89.webp?v=1749694201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444957151331,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012350316643,"product_id":7815650672739,"position":16,"created_at":"2025-06-12T10:09:59+08:00","updated_at":"2025-06-12T10:10:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_53a94b2f-cce3-40e9-ad2e-a082d920fd88.webp?v=1749694201","variant_ids":[43444957151331]},"available":true,"name":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-EG10","featured_media":{"alt":null,"id":25692898885731,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_53a94b2f-cce3-40e9-ad2e-a082d920fd88.webp?v=1749694201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f.webp?v=1749623496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725.webp?v=1749623497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd.webp?v=1749623497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8.webp?v=1749623498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_354c1bb8-f7e7-4829-b283-34f84f7e7107.webp?v=1749624744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_7a63e447-32a3-4de9-8060-1f931daf4326.webp?v=1749624744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_4328f2f1-00d7-4cce-94ba-9d81119a259f.webp?v=1749624745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_bec7801e-ae91-479f-aef2-fe14554d4527.webp?v=1749624746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_7f37eec1-cde0-4501-8e9e-db7bdf250cde.webp?v=1749625232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_fa84d440-634b-4ade-8aeb-3da31a07b427.webp?v=1749625233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_fcd06e53-c172-4aa3-ad6f-d5ac7d16dd00.webp?v=1749625233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_38be685f-632f-4ef1-aa5e-6cf873dcfabc.webp?v=1749625234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_2e26dc53-edd9-43cc-ba53-c661c3721d16.webp?v=1749694200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_7b11b857-a616-48ef-a1c3-560134f06f89.webp?v=1749694201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_53a94b2f-cce3-40e9-ad2e-a082d920fd88.webp?v=1749694201"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f.webp?v=1749623496","options":["color"],"media":[{"alt":null,"id":25689626345571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f.webp?v=1749623496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f.webp?v=1749623496","width":2000},{"alt":null,"id":25689626607715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725.webp?v=1749623497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725.webp?v=1749623497","width":2000},{"alt":null,"id":25689626935395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd.webp?v=1749623497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd.webp?v=1749623497","width":2000},{"alt":null,"id":25689627230307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8.webp?v=1749623498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8.webp?v=1749623498","width":2000},{"alt":null,"id":25689836290147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_354c1bb8-f7e7-4829-b283-34f84f7e7107.webp?v=1749624744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_354c1bb8-f7e7-4829-b283-34f84f7e7107.webp?v=1749624744","width":2000},{"alt":null,"id":25689836650595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_7a63e447-32a3-4de9-8060-1f931daf4326.webp?v=1749624744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_7a63e447-32a3-4de9-8060-1f931daf4326.webp?v=1749624744","width":2000},{"alt":null,"id":25689836879971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_4328f2f1-00d7-4cce-94ba-9d81119a259f.webp?v=1749624745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_4328f2f1-00d7-4cce-94ba-9d81119a259f.webp?v=1749624745","width":2000},{"alt":null,"id":25689837109347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_bec7801e-ae91-479f-aef2-fe14554d4527.webp?v=1749624746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_bec7801e-ae91-479f-aef2-fe14554d4527.webp?v=1749624746","width":2000},{"alt":null,"id":25689903104099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_7f37eec1-cde0-4501-8e9e-db7bdf250cde.webp?v=1749625232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_7f37eec1-cde0-4501-8e9e-db7bdf250cde.webp?v=1749625232","width":2000},{"alt":null,"id":25689903235171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_fa84d440-634b-4ade-8aeb-3da31a07b427.webp?v=1749625233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_fa84d440-634b-4ade-8aeb-3da31a07b427.webp?v=1749625233","width":2000},{"alt":null,"id":25689903399011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_fcd06e53-c172-4aa3-ad6f-d5ac7d16dd00.webp?v=1749625233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_fcd06e53-c172-4aa3-ad6f-d5ac7d16dd00.webp?v=1749625233","width":2000},{"alt":null,"id":25689903628387,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_38be685f-632f-4ef1-aa5e-6cf873dcfabc.webp?v=1749625234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_38be685f-632f-4ef1-aa5e-6cf873dcfabc.webp?v=1749625234","width":2000},{"alt":null,"id":25692898164835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200","width":2000},{"alt":null,"id":25692898459747,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_2e26dc53-edd9-43cc-ba53-c661c3721d16.webp?v=1749694200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b552b138fbd5ac19bc94ae0669ea209868581f8_2e26dc53-edd9-43cc-ba53-c661c3721d16.webp?v=1749694200","width":2000},{"alt":null,"id":25692898754659,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_7b11b857-a616-48ef-a1c3-560134f06f89.webp?v=1749694201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_7b11b857-a616-48ef-a1c3-560134f06f89.webp?v=1749694201","width":2000},{"alt":null,"id":25692898885731,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_53a94b2f-cce3-40e9-ad2e-a082d920fd88.webp?v=1749694201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_53a94b2f-cce3-40e9-ad2e-a082d920fd88.webp?v=1749694201","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43444955283555,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012349005923,"product_id":7815650672739,"position":13,"created_at":"2025-06-12T10:09:58+08:00","updated_at":"2025-06-12T10:10:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200","variant_ids":[43444955283555]},"available":true,"name":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-EG10","featured_media":{"alt":null,"id":25692898164835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444957085795,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012349825123,"product_id":7815650672739,"position":15,"created_at":"2025-06-12T10:09:59+08:00","updated_at":"2025-06-12T10:10:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_7b11b857-a616-48ef-a1c3-560134f06f89.webp?v=1749694201","variant_ids":[43444957085795]},"available":true,"name":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-EG10","featured_media":{"alt":null,"id":25692898754659,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25acbed09c723f62f8e08420e78718e7408a0fd_7b11b857-a616-48ef-a1c3-560134f06f89.webp?v=1749694201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444957151331,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012350316643,"product_id":7815650672739,"position":16,"created_at":"2025-06-12T10:09:59+08:00","updated_at":"2025-06-12T10:10:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_53a94b2f-cce3-40e9-ad2e-a082d920fd88.webp?v=1749694201","variant_ids":[43444957151331]},"available":true,"name":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-EG10","featured_media":{"alt":null,"id":25692898885731,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5cc791866de642e14c316ceea24fd299bdd73f_53a94b2f-cce3-40e9-ad2e-a082d920fd88.webp?v=1749694201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43444955283555,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012349005923,"product_id":7815650672739,"position":13,"created_at":"2025-06-12T10:09:58+08:00","updated_at":"2025-06-12T10:10:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200","variant_ids":[43444955283555]},"available":true,"name":"iPhone 14 Pro Max Clear 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-EG10","featured_media":{"alt":null,"id":25692898164835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37359085ff596960b54015d215a89d67a1631725_d36ee247-ad08-402e-a1fa-099a096f404a.webp?v=1749694200"}},"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: "停產"
}