$product = {"id":4766864769123,"title":"犀牛盾 iPad 耐衝擊平板螢幕保護貼","handle":"ipad-screen-protector","description":"","published_at":"2020-12-30T14:56:19+08:00","created_at":"2020-12-30T14:56:20+08:00","vendor":"Rhinoshieldtaiwan","type":"耐衝擊保護貼","tags":["20%","2023-tagsAdd-reseller-PL","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","addition","addtion","bundle-addition","discountable-item","dropdownDevice-Apple iPad","member","quickbuy","reseller","reseller-asus","reseller-ipad","Top50"],"price":118000,"price_min":118000,"price_max":146000,"available":true,"price_varies":true,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":40728216895587,"title":"正面 [10.9吋] - iPad 第10代","option1":"正面 [10.9吋] - iPad 第10代","option2":null,"option3":null,"sku":"SP0127701","requires_shipping":true,"taxable":true,"featured_image":{"id":30394413973603,"product_id":4766864769123,"position":6,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570","variant_ids":[40728216895587]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 正面 [10.9吋] - iPad 第10代","public_title":"正面 [10.9吋] - iPad 第10代","options":["正面 [10.9吋] - iPad 第10代"],"price":118000,"weight":590,"compare_at_price":null,"inventory_quantity":-36,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22754414428259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":39678934909027,"title":"正面 [10.2吋] - iPad 第8 \/ 9代","option1":"正面 [10.2吋] - iPad 第8 \/ 9代","option2":null,"option3":null,"sku":"SP0120301","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414006371,"product_id":4766864769123,"position":7,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":1024,"height":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1_5f8ac594-1598-47d0-ad6c-02fea9afa1c5.jpg?v=1694571570","variant_ids":[39678934909027]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 正面 [10.2吋] - iPad 第8 \/ 9代","public_title":"正面 [10.2吋] - iPad 第8 \/ 9代","options":["正面 [10.2吋] - iPad 第8 \/ 9代"],"price":118000,"weight":590,"compare_at_price":null,"inventory_quantity":-54,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22754414461027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1_5f8ac594-1598-47d0-ad6c-02fea9afa1c5.jpg?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33356454297699,"title":"正面 [10.2吋] - iPad 第7代","option1":"正面 [10.2吋] - iPad 第7代","option2":null,"option3":null,"sku":"SP0115701","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414039139,"product_id":4766864769123,"position":8,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":1024,"height":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1_a7080431-622b-475c-9bd0-4c16079b7665.png?v=1694571570","variant_ids":[33356454297699]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 正面 [10.2吋] - iPad 第7代","public_title":"正面 [10.2吋] - iPad 第7代","options":["正面 [10.2吋] - iPad 第7代"],"price":118000,"weight":590,"compare_at_price":null,"inventory_quantity":-3,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22754414493795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1_a7080431-622b-475c-9bd0-4c16079b7665.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40728216928355,"title":"抗藍光 [10.9吋] - iPad 第10代","option1":"抗藍光 [10.9吋] - iPad 第10代","option2":null,"option3":null,"sku":"SP012770S","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414071907,"product_id":4766864769123,"position":9,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0127701.png?v=1694571570","variant_ids":[40728216928355]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 抗藍光 [10.9吋] - iPad 第10代","public_title":"抗藍光 [10.9吋] - iPad 第10代","options":["抗藍光 [10.9吋] - iPad 第10代"],"price":146000,"weight":453,"compare_at_price":null,"inventory_quantity":-2,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366129651","featured_media":{"alt":null,"id":22754414526563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0127701.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40728216961123,"title":"抗藍光 [10.2吋] - iPad 第8 \/ 9代","option1":"抗藍光 [10.2吋] - iPad 第8 \/ 9代","option2":null,"option3":null,"sku":"SP012030S","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414104675,"product_id":4766864769123,"position":10,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":1024,"height":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694571570","variant_ids":[40728216961123]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 抗藍光 [10.2吋] - iPad 第8 \/ 9代","public_title":"抗藍光 [10.2吋] - iPad 第8 \/ 9代","options":["抗藍光 [10.2吋] - iPad 第8 \/ 9代"],"price":146000,"weight":453,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366129637","featured_media":{"alt":null,"id":22754414559331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1.jpg?v=1638932808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1.png?v=1634700433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_179a5331-f4f3-4a41-9c81-820ea178cc7d.png?v=1676687162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ipad-screen-SP0127701.png?v=1694568593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694568595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1_5f8ac594-1598-47d0-ad6c-02fea9afa1c5.jpg?v=1694571570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1_a7080431-622b-475c-9bd0-4c16079b7665.png?v=1694571570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0127701.png?v=1694571570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694571570"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1.jpg?v=1638932808","options":["Title"],"media":[{"alt":null,"id":21032317124707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1.jpg?v=1638932808"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1.jpg?v=1638932808","width":1024},{"alt":null,"id":20924553166947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1.png?v=1634700433"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1.png?v=1634700433","width":1024},{"alt":null,"id":22228953956451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_179a5331-f4f3-4a41-9c81-820ea178cc7d.png?v=1676687162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_179a5331-f4f3-4a41-9c81-820ea178cc7d.png?v=1676687162","width":2000},{"alt":null,"id":22754398240867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ipad-screen-SP0127701.png?v=1694568593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ipad-screen-SP0127701.png?v=1694568593","width":2000},{"alt":null,"id":22754398273635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694568595"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694568595","width":1024},{"alt":null,"id":22754414428259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570","width":2000},{"alt":null,"id":22754414461027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1_5f8ac594-1598-47d0-ad6c-02fea9afa1c5.jpg?v=1694571570"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1_5f8ac594-1598-47d0-ad6c-02fea9afa1c5.jpg?v=1694571570","width":1024},{"alt":null,"id":22754414493795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1_a7080431-622b-475c-9bd0-4c16079b7665.png?v=1694571570"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1_a7080431-622b-475c-9bd0-4c16079b7665.png?v=1694571570","width":1024},{"alt":null,"id":22754414526563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0127701.png?v=1694571570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0127701.png?v=1694571570","width":2000},{"alt":null,"id":22754414559331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694571570"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694571570","width":1024}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $bumper = null; $variants = [{"id":40728216895587,"title":"正面 [10.9吋] - iPad 第10代","option1":"正面 [10.9吋] - iPad 第10代","option2":null,"option3":null,"sku":"SP0127701","requires_shipping":true,"taxable":true,"featured_image":{"id":30394413973603,"product_id":4766864769123,"position":6,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570","variant_ids":[40728216895587]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 正面 [10.9吋] - iPad 第10代","public_title":"正面 [10.9吋] - iPad 第10代","options":["正面 [10.9吋] - iPad 第10代"],"price":118000,"weight":590,"compare_at_price":null,"inventory_quantity":-36,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22754414428259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":39678934909027,"title":"正面 [10.2吋] - iPad 第8 \/ 9代","option1":"正面 [10.2吋] - iPad 第8 \/ 9代","option2":null,"option3":null,"sku":"SP0120301","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414006371,"product_id":4766864769123,"position":7,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":1024,"height":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1_5f8ac594-1598-47d0-ad6c-02fea9afa1c5.jpg?v=1694571570","variant_ids":[39678934909027]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 正面 [10.2吋] - iPad 第8 \/ 9代","public_title":"正面 [10.2吋] - iPad 第8 \/ 9代","options":["正面 [10.2吋] - iPad 第8 \/ 9代"],"price":118000,"weight":590,"compare_at_price":null,"inventory_quantity":-54,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22754414461027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0120301-1_5f8ac594-1598-47d0-ad6c-02fea9afa1c5.jpg?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33356454297699,"title":"正面 [10.2吋] - iPad 第7代","option1":"正面 [10.2吋] - iPad 第7代","option2":null,"option3":null,"sku":"SP0115701","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414039139,"product_id":4766864769123,"position":8,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":1024,"height":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1_a7080431-622b-475c-9bd0-4c16079b7665.png?v=1694571570","variant_ids":[33356454297699]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 正面 [10.2吋] - iPad 第7代","public_title":"正面 [10.2吋] - iPad 第7代","options":["正面 [10.2吋] - iPad 第7代"],"price":118000,"weight":590,"compare_at_price":null,"inventory_quantity":-3,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22754414493795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0115701-1_a7080431-622b-475c-9bd0-4c16079b7665.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40728216928355,"title":"抗藍光 [10.9吋] - iPad 第10代","option1":"抗藍光 [10.9吋] - iPad 第10代","option2":null,"option3":null,"sku":"SP012770S","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414071907,"product_id":4766864769123,"position":9,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0127701.png?v=1694571570","variant_ids":[40728216928355]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 抗藍光 [10.9吋] - iPad 第10代","public_title":"抗藍光 [10.9吋] - iPad 第10代","options":["抗藍光 [10.9吋] - iPad 第10代"],"price":146000,"weight":453,"compare_at_price":null,"inventory_quantity":-2,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366129651","featured_media":{"alt":null,"id":22754414526563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0127701.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40728216961123,"title":"抗藍光 [10.2吋] - iPad 第8 \/ 9代","option1":"抗藍光 [10.2吋] - iPad 第8 \/ 9代","option2":null,"option3":null,"sku":"SP012030S","requires_shipping":true,"taxable":true,"featured_image":{"id":30394414104675,"product_id":4766864769123,"position":10,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":1024,"height":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694571570","variant_ids":[40728216961123]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 抗藍光 [10.2吋] - iPad 第8 \/ 9代","public_title":"抗藍光 [10.2吋] - iPad 第8 \/ 9代","options":["抗藍光 [10.2吋] - iPad 第8 \/ 9代"],"price":146000,"weight":453,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366129637","featured_media":{"alt":null,"id":22754414559331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/ipad-screen-SP0120301_f5f2a472-0e97-41ea-889b-0fa35502bf05.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40728216895587,"title":"正面 [10.9吋] - iPad 第10代","option1":"正面 [10.9吋] - iPad 第10代","option2":null,"option3":null,"sku":"SP0127701","requires_shipping":true,"taxable":true,"featured_image":{"id":30394413973603,"product_id":4766864769123,"position":6,"created_at":"2023-09-13T10:19:30+08:00","updated_at":"2023-09-13T10:19:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570","variant_ids":[40728216895587]},"available":true,"name":"犀牛盾 iPad 耐衝擊平板螢幕保護貼 - 正面 [10.9吋] - iPad 第10代","public_title":"正面 [10.9吋] - iPad 第10代","options":["正面 [10.9吋] - iPad 第10代"],"price":118000,"weight":590,"compare_at_price":null,"inventory_quantity":-36,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22754414428259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SP0127701_f3989866-a441-4d82-b0d2-a261bca91cba.png?v=1694571570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; var sellingStatus; $device_handle = null if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages([productImg, bumperColors[currentVariant]],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages([bumperColors[currentVariant], productImg],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); }; var storedData = sessionStorage.getItem('sellingStatusData'); try { sellingStatusData = JSON.parse(storedData) } catch (error) { console.error('JSON.parse Error', error) sellingStatusData = null } $(document).ready(function() { handleSellingStatus($defaultVariant.sku, sellingStatusData); }); function handleSellingStatus(currentSku, sellingStatusData) { const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const matchSellingStatusProduct = sellingStatusData.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, sellingStatusData) }); });
// 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: "停產" }