$product = {"id":7873287848035,"title":"iPhone 15 Clear Keigo Mascot Costume","handle":"iphone-15-jellytint-kei06","description":null,"published_at":"2025-09-01T10:47:19+08:00","created_at":"2025-09-01T09:44:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 15","merge","reseller-keigo"],"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":43658615226467,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012950G-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319396986979,"product_id":7873287848035,"position":10,"created_at":"2026-07-20T12:59:13+08:00","updated_at":"2026-07-20T12:59:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555","variant_ids":[43658615226467]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - 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":"CCN012950G-KEI06","featured_media":{"alt":null,"id":27823349301347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658617094243,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012950I-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319397150819,"product_id":7873287848035,"position":11,"created_at":"2026-07-20T12:59:14+08:00","updated_at":"2026-07-20T12:59:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_3b3deb72-fe46-49da-9190-f50cb517636a.webp?v=1784523556","variant_ids":[43658617094243]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012950I-KEI06","featured_media":{"alt":null,"id":27823349465187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_3b3deb72-fe46-49da-9190-f50cb517636a.webp?v=1784523556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658617127011,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012950H-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319396659299,"product_id":7873287848035,"position":9,"created_at":"2026-07-20T12:59:12+08:00","updated_at":"2026-07-20T12:59:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_35528e9e-aa5d-41cc-8047-a6693b2c8953.webp?v=1784523554","variant_ids":[43658617127011]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - 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":"CCN012950H-KEI06","featured_media":{"alt":null,"id":27823348973667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_35528e9e-aa5d-41cc-8047-a6693b2c8953.webp?v=1784523554"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658617159779,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012950J-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319397249123,"product_id":7873287848035,"position":12,"created_at":"2026-07-20T12:59:14+08:00","updated_at":"2026-07-20T12:59:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_dfaad7a7-46e7-49c3-b953-f2ff8c123775.webp?v=1784523556","variant_ids":[43658617159779]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - 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":"CCN012950J-KEI06","featured_media":{"alt":null,"id":27823349563491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_dfaad7a7-46e7-49c3-b953-f2ff8c123775.webp?v=1784523556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6.webp?v=1756691072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99.webp?v=1756691073","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f.webp?v=1756691073","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de.webp?v=1756691074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_ae7b587a-6fdf-4b1f-a0e0-86140556287c.webp?v=1784107191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_1711f40c-e494-4aea-a0e0-ff395653320d.webp?v=1784107192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_4e834dd4-b89e-4363-a62b-aea9fbcc4464.webp?v=1784107192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_0960c62d-3728-414a-a85a-189719c8e99f.webp?v=1784107193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_35528e9e-aa5d-41cc-8047-a6693b2c8953.webp?v=1784523554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_3b3deb72-fe46-49da-9190-f50cb517636a.webp?v=1784523556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_dfaad7a7-46e7-49c3-b953-f2ff8c123775.webp?v=1784523556"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6.webp?v=1756691072","options":["color"],"media":[{"alt":null,"id":25982285480035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6.webp?v=1756691072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6.webp?v=1756691072","width":2000},{"alt":null,"id":25982285709411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99.webp?v=1756691073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99.webp?v=1756691073","width":2000},{"alt":null,"id":25982285906019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f.webp?v=1756691073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f.webp?v=1756691073","width":2000},{"alt":null,"id":25982286168163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de.webp?v=1756691074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de.webp?v=1756691074","width":2000},{"alt":null,"id":27777142816867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_ae7b587a-6fdf-4b1f-a0e0-86140556287c.webp?v=1784107191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_ae7b587a-6fdf-4b1f-a0e0-86140556287c.webp?v=1784107191","width":2000},{"alt":null,"id":27777143013475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_1711f40c-e494-4aea-a0e0-ff395653320d.webp?v=1784107192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_1711f40c-e494-4aea-a0e0-ff395653320d.webp?v=1784107192","width":2000},{"alt":null,"id":27777143504995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_4e834dd4-b89e-4363-a62b-aea9fbcc4464.webp?v=1784107192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_4e834dd4-b89e-4363-a62b-aea9fbcc4464.webp?v=1784107192","width":2000},{"alt":null,"id":27777143963747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_0960c62d-3728-414a-a85a-189719c8e99f.webp?v=1784107193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_0960c62d-3728-414a-a85a-189719c8e99f.webp?v=1784107193","width":2000},{"alt":null,"id":27823348973667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_35528e9e-aa5d-41cc-8047-a6693b2c8953.webp?v=1784523554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_35528e9e-aa5d-41cc-8047-a6693b2c8953.webp?v=1784523554","width":2000},{"alt":null,"id":27823349301347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555","width":2000},{"alt":null,"id":27823349465187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_3b3deb72-fe46-49da-9190-f50cb517636a.webp?v=1784523556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_3b3deb72-fe46-49da-9190-f50cb517636a.webp?v=1784523556","width":2000},{"alt":null,"id":27823349563491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_dfaad7a7-46e7-49c3-b953-f2ff8c123775.webp?v=1784523556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_dfaad7a7-46e7-49c3-b953-f2ff8c123775.webp?v=1784523556","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658615226467,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012950G-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319396986979,"product_id":7873287848035,"position":10,"created_at":"2026-07-20T12:59:13+08:00","updated_at":"2026-07-20T12:59:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555","variant_ids":[43658615226467]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - 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":"CCN012950G-KEI06","featured_media":{"alt":null,"id":27823349301347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658617094243,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012950I-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319397150819,"product_id":7873287848035,"position":11,"created_at":"2026-07-20T12:59:14+08:00","updated_at":"2026-07-20T12:59:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_3b3deb72-fe46-49da-9190-f50cb517636a.webp?v=1784523556","variant_ids":[43658617094243]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012950I-KEI06","featured_media":{"alt":null,"id":27823349465187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60e808d461da461fa498a7b54e079c730acc5de_3b3deb72-fe46-49da-9190-f50cb517636a.webp?v=1784523556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658617127011,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012950H-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319396659299,"product_id":7873287848035,"position":9,"created_at":"2026-07-20T12:59:12+08:00","updated_at":"2026-07-20T12:59:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_35528e9e-aa5d-41cc-8047-a6693b2c8953.webp?v=1784523554","variant_ids":[43658617127011]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - 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":"CCN012950H-KEI06","featured_media":{"alt":null,"id":27823348973667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736a664264b2cabae2b60bdf9a874d459166a2c6_35528e9e-aa5d-41cc-8047-a6693b2c8953.webp?v=1784523554"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658617159779,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012950J-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319397249123,"product_id":7873287848035,"position":12,"created_at":"2026-07-20T12:59:14+08:00","updated_at":"2026-07-20T12:59:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_dfaad7a7-46e7-49c3-b953-f2ff8c123775.webp?v=1784523556","variant_ids":[43658617159779]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - 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":"CCN012950J-KEI06","featured_media":{"alt":null,"id":27823349563491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53fefba6a64d1a9cf889d2cd612c9415e32d4b99_dfaad7a7-46e7-49c3-b953-f2ff8c123775.webp?v=1784523556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658615226467,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012950G-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319396986979,"product_id":7873287848035,"position":10,"created_at":"2026-07-20T12:59:13+08:00","updated_at":"2026-07-20T12:59:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555","variant_ids":[43658615226467]},"available":true,"name":"iPhone 15 Clear Keigo Mascot Costume - 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":"CCN012950G-KEI06","featured_media":{"alt":null,"id":27823349301347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f74a27de2aa95d4ae367bbab7759442dfc890f_c71938f1-934e-41c9-8e29-9f0510c952fb.webp?v=1784523555"}},"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: "停產" }