$product = {"id":7876203053155,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運","handle":"iphone-12-pro-mod-nx-magsafe-printable-ea108","description":null,"published_at":"2025-09-04T08:59:37+08:00","created_at":"2025-09-03T12:28:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 12 Pro","merge","reseller-songsongmeow"],"price":110000,"price_min":110000,"price_max":110000,"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":43675833139299,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416806953059,"product_id":7876203053155,"position":7,"created_at":"2025-09-03T12:28:47+08:00","updated_at":"2025-09-03T12:28:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729","variant_ids":[43675833139299]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-EA108","featured_media":{"alt":null,"id":25989081628771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836022883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416807608419,"product_id":7876203053155,"position":10,"created_at":"2025-09-03T12:28:50+08:00","updated_at":"2025-09-03T12:28:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e5a55ded129b5d2caf2659f458f7458e841568.webp?v=1756873732","variant_ids":[43675836022883]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-EA108","featured_media":{"alt":null,"id":25989082415203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e5a55ded129b5d2caf2659f458f7458e841568.webp?v=1756873732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836088419,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416806232163,"product_id":7876203053155,"position":4,"created_at":"2025-09-03T12:28:45+08:00","updated_at":"2025-09-03T12:28:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4b82b65dea3a6ddfd4934e5445f1df6f3b85d7.webp?v=1756873727","variant_ids":[43675836088419]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-EA108","featured_media":{"alt":null,"id":25989080907875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4b82b65dea3a6ddfd4934e5445f1df6f3b85d7.webp?v=1756873727"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836186723,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416807182435,"product_id":7876203053155,"position":8,"created_at":"2025-09-03T12:28:48+08:00","updated_at":"2025-09-03T12:28:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e623f31d999a8adc1652b354873d178f3e96417a.webp?v=1756873730","variant_ids":[43675836186723]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-EA108","featured_media":{"alt":null,"id":25989081858147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e623f31d999a8adc1652b354873d178f3e96417a.webp?v=1756873730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836285027,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416806658147,"product_id":7876203053155,"position":6,"created_at":"2025-09-03T12:28:47+08:00","updated_at":"2025-09-03T12:28:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00621521e9116e3b866c5e7d1c33113cc870a80.webp?v=1756873729","variant_ids":[43675836285027]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-EA108","featured_media":{"alt":null,"id":25989081333859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00621521e9116e3b866c5e7d1c33113cc870a80.webp?v=1756873729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e7ad79b830202942898266d522935b60e8bdf2.webp?v=1756873725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ccbd4ca7bd50cdde88c22dc4591d57ed20eb3c.webp?v=1756873726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ac6ed0016efa0492e558b2d9ecb8fcbb430751.webp?v=1756873726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4b82b65dea3a6ddfd4934e5445f1df6f3b85d7.webp?v=1756873727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2ed3bdeb4521bbd0c1866efdbe9d8df8d24136.webp?v=1756873728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00621521e9116e3b866c5e7d1c33113cc870a80.webp?v=1756873729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e623f31d999a8adc1652b354873d178f3e96417a.webp?v=1756873730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750c12ce27e2af6555590348fda1f5d2f06071be.webp?v=1756873731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e5a55ded129b5d2caf2659f458f7458e841568.webp?v=1756873732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b002b2ecd648dc9e5923b8e8558fdd088886d9.webp?v=1756873732"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e7ad79b830202942898266d522935b60e8bdf2.webp?v=1756873725","options":["color"],"media":[{"alt":null,"id":25989080449123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e7ad79b830202942898266d522935b60e8bdf2.webp?v=1756873725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e7ad79b830202942898266d522935b60e8bdf2.webp?v=1756873725","width":2000},{"alt":null,"id":25989080612963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ccbd4ca7bd50cdde88c22dc4591d57ed20eb3c.webp?v=1756873726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ccbd4ca7bd50cdde88c22dc4591d57ed20eb3c.webp?v=1756873726","width":2000},{"alt":null,"id":25989080744035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ac6ed0016efa0492e558b2d9ecb8fcbb430751.webp?v=1756873726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ac6ed0016efa0492e558b2d9ecb8fcbb430751.webp?v=1756873726","width":2000},{"alt":null,"id":25989080907875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4b82b65dea3a6ddfd4934e5445f1df6f3b85d7.webp?v=1756873727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4b82b65dea3a6ddfd4934e5445f1df6f3b85d7.webp?v=1756873727","width":2000},{"alt":null,"id":25989081137251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2ed3bdeb4521bbd0c1866efdbe9d8df8d24136.webp?v=1756873728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2ed3bdeb4521bbd0c1866efdbe9d8df8d24136.webp?v=1756873728","width":2000},{"alt":null,"id":25989081333859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00621521e9116e3b866c5e7d1c33113cc870a80.webp?v=1756873729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00621521e9116e3b866c5e7d1c33113cc870a80.webp?v=1756873729","width":2000},{"alt":null,"id":25989081628771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729","width":2000},{"alt":null,"id":25989081858147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e623f31d999a8adc1652b354873d178f3e96417a.webp?v=1756873730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e623f31d999a8adc1652b354873d178f3e96417a.webp?v=1756873730","width":2000},{"alt":null,"id":25989082251363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750c12ce27e2af6555590348fda1f5d2f06071be.webp?v=1756873731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750c12ce27e2af6555590348fda1f5d2f06071be.webp?v=1756873731","width":2000},{"alt":null,"id":25989082415203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e5a55ded129b5d2caf2659f458f7458e841568.webp?v=1756873732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e5a55ded129b5d2caf2659f458f7458e841568.webp?v=1756873732","width":2000},{"alt":null,"id":25989082579043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b002b2ecd648dc9e5923b8e8558fdd088886d9.webp?v=1756873732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b002b2ecd648dc9e5923b8e8558fdd088886d9.webp?v=1756873732","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675833139299,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416806953059,"product_id":7876203053155,"position":7,"created_at":"2025-09-03T12:28:47+08:00","updated_at":"2025-09-03T12:28:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729","variant_ids":[43675833139299]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-EA108","featured_media":{"alt":null,"id":25989081628771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836022883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416807608419,"product_id":7876203053155,"position":10,"created_at":"2025-09-03T12:28:50+08:00","updated_at":"2025-09-03T12:28:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e5a55ded129b5d2caf2659f458f7458e841568.webp?v=1756873732","variant_ids":[43675836022883]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-EA108","featured_media":{"alt":null,"id":25989082415203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e5a55ded129b5d2caf2659f458f7458e841568.webp?v=1756873732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836088419,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416806232163,"product_id":7876203053155,"position":4,"created_at":"2025-09-03T12:28:45+08:00","updated_at":"2025-09-03T12:28:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4b82b65dea3a6ddfd4934e5445f1df6f3b85d7.webp?v=1756873727","variant_ids":[43675836088419]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-EA108","featured_media":{"alt":null,"id":25989080907875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4b82b65dea3a6ddfd4934e5445f1df6f3b85d7.webp?v=1756873727"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836186723,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416807182435,"product_id":7876203053155,"position":8,"created_at":"2025-09-03T12:28:48+08:00","updated_at":"2025-09-03T12:28:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e623f31d999a8adc1652b354873d178f3e96417a.webp?v=1756873730","variant_ids":[43675836186723]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-EA108","featured_media":{"alt":null,"id":25989081858147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e623f31d999a8adc1652b354873d178f3e96417a.webp?v=1756873730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675836285027,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416806658147,"product_id":7876203053155,"position":6,"created_at":"2025-09-03T12:28:47+08:00","updated_at":"2025-09-03T12:28:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00621521e9116e3b866c5e7d1c33113cc870a80.webp?v=1756873729","variant_ids":[43675836285027]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-EA108","featured_media":{"alt":null,"id":25989081333859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00621521e9116e3b866c5e7d1c33113cc870a80.webp?v=1756873729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675833139299,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416806953059,"product_id":7876203053155,"position":7,"created_at":"2025-09-03T12:28:47+08:00","updated_at":"2025-09-03T12:28:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729","variant_ids":[43675833139299]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 祝你好運 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-EA108","featured_media":{"alt":null,"id":25989081628771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e6e48d0e3254782433eadd12f46b5e9a848b68.webp?v=1756873729"}},"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: "停產" }