$product = {"id":7895848091747,"title":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星","handle":"iphone-14-plus-solidsuit-classic-magsafe-yq02","description":null,"published_at":"2026-01-28T12:18:18+08:00","created_at":"2025-10-09T14:25:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-spongebob","device-iPhone 14 Plus","merge","reseller-spongebob"],"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":43767878942819,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"MST012610F-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559132565603,"product_id":7895848091747,"position":4,"created_at":"2025-10-09T14:25:47+08:00","updated_at":"2025-10-09T14:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149","variant_ids":[43767878942819]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610F-YQ02","featured_media":{"alt":null,"id":26128743694435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880581219,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST012610D-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559131844707,"product_id":7895848091747,"position":1,"created_at":"2025-10-09T14:25:45+08:00","updated_at":"2025-10-09T14:25:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147","variant_ids":[43767880581219]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610D-YQ02","featured_media":{"alt":null,"id":26128742973539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880646755,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MST0126157-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559133319267,"product_id":7895848091747,"position":6,"created_at":"2025-10-09T14:25:49+08:00","updated_at":"2025-10-09T14:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26d6c702098d916f9282ed81f6e8f2abc3b79fe.webp?v=1759991151","variant_ids":[43767880646755]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126157-YQ02","featured_media":{"alt":null,"id":26128744448099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26d6c702098d916f9282ed81f6e8f2abc3b79fe.webp?v=1759991151"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880679523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0126152-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559133646947,"product_id":7895848091747,"position":7,"created_at":"2025-10-09T14:25:49+08:00","updated_at":"2025-10-09T14:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717840917cb790542fb4904b79a93dd17b019279.webp?v=1759991152","variant_ids":[43767880679523]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126152-YQ02","featured_media":{"alt":null,"id":26128744775779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717840917cb790542fb4904b79a93dd17b019279.webp?v=1759991152"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880712291,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST012610C-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559132270691,"product_id":7895848091747,"position":3,"created_at":"2025-10-09T14:25:46+08:00","updated_at":"2025-10-09T14:25:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdd21cb5e7ffb6c4bde86c0a785bceac6265a20.webp?v=1759991148","variant_ids":[43767880712291]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610C-YQ02","featured_media":{"alt":null,"id":26128743399523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdd21cb5e7ffb6c4bde86c0a785bceac6265a20.webp?v=1759991148"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880745059,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01261O9-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559132074083,"product_id":7895848091747,"position":2,"created_at":"2025-10-09T14:25:46+08:00","updated_at":"2025-10-09T14:25:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7d23a1903a7cbb2f4a2b3bb4b5a3075ffd860.webp?v=1759991147","variant_ids":[43767880745059]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01261O9-YQ02","featured_media":{"alt":null,"id":26128743202915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7d23a1903a7cbb2f4a2b3bb4b5a3075ffd860.webp?v=1759991147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7d23a1903a7cbb2f4a2b3bb4b5a3075ffd860.webp?v=1759991147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdd21cb5e7ffb6c4bde86c0a785bceac6265a20.webp?v=1759991148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b495ea959c33db4ab1a6ef46ace4b2c159ebee.webp?v=1759991150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26d6c702098d916f9282ed81f6e8f2abc3b79fe.webp?v=1759991151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717840917cb790542fb4904b79a93dd17b019279.webp?v=1759991152"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147","options":["color"],"media":[{"alt":null,"id":26128742973539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147","width":2000},{"alt":null,"id":26128743202915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7d23a1903a7cbb2f4a2b3bb4b5a3075ffd860.webp?v=1759991147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7d23a1903a7cbb2f4a2b3bb4b5a3075ffd860.webp?v=1759991147","width":2000},{"alt":null,"id":26128743399523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdd21cb5e7ffb6c4bde86c0a785bceac6265a20.webp?v=1759991148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdd21cb5e7ffb6c4bde86c0a785bceac6265a20.webp?v=1759991148","width":2000},{"alt":null,"id":26128743694435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149","width":2000},{"alt":null,"id":26128744022115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b495ea959c33db4ab1a6ef46ace4b2c159ebee.webp?v=1759991150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b495ea959c33db4ab1a6ef46ace4b2c159ebee.webp?v=1759991150","width":2000},{"alt":null,"id":26128744448099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26d6c702098d916f9282ed81f6e8f2abc3b79fe.webp?v=1759991151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26d6c702098d916f9282ed81f6e8f2abc3b79fe.webp?v=1759991151","width":2000},{"alt":null,"id":26128744775779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717840917cb790542fb4904b79a93dd17b019279.webp?v=1759991152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717840917cb790542fb4904b79a93dd17b019279.webp?v=1759991152","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43767878942819,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"MST012610F-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559132565603,"product_id":7895848091747,"position":4,"created_at":"2025-10-09T14:25:47+08:00","updated_at":"2025-10-09T14:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149","variant_ids":[43767878942819]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610F-YQ02","featured_media":{"alt":null,"id":26128743694435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880581219,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST012610D-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559131844707,"product_id":7895848091747,"position":1,"created_at":"2025-10-09T14:25:45+08:00","updated_at":"2025-10-09T14:25:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147","variant_ids":[43767880581219]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610D-YQ02","featured_media":{"alt":null,"id":26128742973539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae3554c09165c2fa601bab9100d124b1cf0aa1d.webp?v=1759991147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880646755,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MST0126157-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559133319267,"product_id":7895848091747,"position":6,"created_at":"2025-10-09T14:25:49+08:00","updated_at":"2025-10-09T14:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26d6c702098d916f9282ed81f6e8f2abc3b79fe.webp?v=1759991151","variant_ids":[43767880646755]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126157-YQ02","featured_media":{"alt":null,"id":26128744448099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26d6c702098d916f9282ed81f6e8f2abc3b79fe.webp?v=1759991151"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880679523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0126152-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559133646947,"product_id":7895848091747,"position":7,"created_at":"2025-10-09T14:25:49+08:00","updated_at":"2025-10-09T14:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717840917cb790542fb4904b79a93dd17b019279.webp?v=1759991152","variant_ids":[43767880679523]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126152-YQ02","featured_media":{"alt":null,"id":26128744775779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/717840917cb790542fb4904b79a93dd17b019279.webp?v=1759991152"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880712291,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST012610C-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559132270691,"product_id":7895848091747,"position":3,"created_at":"2025-10-09T14:25:46+08:00","updated_at":"2025-10-09T14:25:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdd21cb5e7ffb6c4bde86c0a785bceac6265a20.webp?v=1759991148","variant_ids":[43767880712291]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610C-YQ02","featured_media":{"alt":null,"id":26128743399523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efdd21cb5e7ffb6c4bde86c0a785bceac6265a20.webp?v=1759991148"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43767880745059,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01261O9-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559132074083,"product_id":7895848091747,"position":2,"created_at":"2025-10-09T14:25:46+08:00","updated_at":"2025-10-09T14:25:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7d23a1903a7cbb2f4a2b3bb4b5a3075ffd860.webp?v=1759991147","variant_ids":[43767880745059]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01261O9-YQ02","featured_media":{"alt":null,"id":26128743202915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7d23a1903a7cbb2f4a2b3bb4b5a3075ffd860.webp?v=1759991147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43767878942819,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"MST012610F-YQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34559132565603,"product_id":7895848091747,"position":4,"created_at":"2025-10-09T14:25:47+08:00","updated_at":"2025-10-09T14:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149","variant_ids":[43767878942819]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) 海綿寶寶 派大星 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610F-YQ02","featured_media":{"alt":null,"id":26128743694435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afdfe4a49bd84f219ea54fb1cdfb707641ec5861.webp?v=1759991149"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }