$product = {"id":6898387877987,"title":"犀牛盾 AirPods Pro 2 保護殼","handle":"airpods-pro-2-airpods-case-bundle-front-featured-product","description":"","published_at":"2023-03-20T15:53:34+08:00","created_at":"2023-03-07T09:48:52+08:00","vendor":"RHINOSHIELD","type":"Airpods整體","tags":["20%","2023-tagsAdd-reseller-PL","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","45degree","50%","airpods-case-featured-product","bundle-addition","discountable-item","dropdownDevice-Apple Airpods Pro 2","featured-product","member","quickbuy","reseller","reseller-airpods","Top50","type-airpods-case-featured-product"],"price":65000,"price_min":65000,"price_max":65000,"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":40289291567203,"title":"黑","option1":"黑","option2":null,"option3":null,"sku":"ABT0126952","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704131171,"product_id":6898387877987,"position":2,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112","variant_ids":[40289291567203]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 黑","public_title":"黑","options":["黑"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-2320,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634018915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291599971,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"ABT0126957","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704163939,"product_id":6898387877987,"position":3,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126957.png?v=1680764112","variant_ids":[40289291599971]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-707,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634051683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126957.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291632739,"title":"循環灰","option1":"循環灰","option2":null,"option3":null,"sku":"ABT01269O8","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704196707,"product_id":6898387877987,"position":4,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O8.png?v=1680764112","variant_ids":[40289291632739]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 循環灰","public_title":"循環灰","options":["循環灰"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-1605,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634084451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O8.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291665507,"title":"鈷藍","option1":"鈷藍","option2":null,"option3":null,"sku":"ABT01269O9","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704229475,"product_id":6898387877987,"position":5,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O9.png?v=1680764112","variant_ids":[40289291665507]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 鈷藍","public_title":"鈷藍","options":["鈷藍"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-498,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634117219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O9.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291698275,"title":"夕陽銅","option1":"夕陽銅","option2":null,"option3":null,"sku":"ABT01269P0","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704262243,"product_id":6898387877987,"position":1,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112","variant_ids":[40289291698275]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 夕陽銅","public_title":"夕陽銅","options":["夕陽銅"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-141,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634149987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291731043,"title":"紫羅蘭色","option1":"紫羅蘭色","option2":null,"option3":null,"sku":"ABT01269P1","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704295011,"product_id":6898387877987,"position":6,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-03-07T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P1.png?v=1678153732","variant_ids":[40289291731043]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 紫羅蘭色","public_title":"紫羅蘭色","options":["紫羅蘭色"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-646,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634182755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P1.png?v=1678153732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291763811,"title":"鼠尾草綠","option1":"鼠尾草綠","option2":null,"option3":null,"sku":"ABT01269P2","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704327779,"product_id":6898387877987,"position":7,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-03-07T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P2.png?v=1678153732","variant_ids":[40289291763811]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 鼠尾草綠","public_title":"鼠尾草綠","options":["鼠尾草綠"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-824,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634215523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P2.png?v=1678153732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291796579,"title":"透明","option1":"透明","option2":null,"option3":null,"sku":"ABT01269R4","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704393315,"product_id":6898387877987,"position":8,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-03-07T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269R4.png?v=1678153732","variant_ids":[40289291796579]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 透明","public_title":"透明","options":["透明"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-4255,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634248291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269R4.png?v=1678153732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126957.png?v=1680764112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O8.png?v=1680764112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O9.png?v=1680764112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P1.png?v=1678153732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P2.png?v=1678153732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269R4.png?v=1678153732"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112","options":["color"],"media":[{"alt":null,"id":22250634149987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112","width":2000},{"alt":null,"id":22250634018915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112","width":2000},{"alt":null,"id":22250634051683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126957.png?v=1680764112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126957.png?v=1680764112","width":2000},{"alt":null,"id":22250634084451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O8.png?v=1680764112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O8.png?v=1680764112","width":2000},{"alt":null,"id":22250634117219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O9.png?v=1680764112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O9.png?v=1680764112","width":2000},{"alt":null,"id":22250634182755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P1.png?v=1678153732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P1.png?v=1678153732","width":2000},{"alt":null,"id":22250634215523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P2.png?v=1678153732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P2.png?v=1678153732","width":2000},{"alt":null,"id":22250634248291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269R4.png?v=1678153732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269R4.png?v=1678153732","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $bumper = null; $variants = [{"id":40289291567203,"title":"黑","option1":"黑","option2":null,"option3":null,"sku":"ABT0126952","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704131171,"product_id":6898387877987,"position":2,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112","variant_ids":[40289291567203]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 黑","public_title":"黑","options":["黑"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-2320,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634018915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291599971,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"ABT0126957","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704163939,"product_id":6898387877987,"position":3,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126957.png?v=1680764112","variant_ids":[40289291599971]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-707,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634051683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126957.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291632739,"title":"循環灰","option1":"循環灰","option2":null,"option3":null,"sku":"ABT01269O8","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704196707,"product_id":6898387877987,"position":4,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O8.png?v=1680764112","variant_ids":[40289291632739]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 循環灰","public_title":"循環灰","options":["循環灰"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-1605,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634084451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O8.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291665507,"title":"鈷藍","option1":"鈷藍","option2":null,"option3":null,"sku":"ABT01269O9","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704229475,"product_id":6898387877987,"position":5,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O9.png?v=1680764112","variant_ids":[40289291665507]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 鈷藍","public_title":"鈷藍","options":["鈷藍"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-498,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634117219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269O9.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291698275,"title":"夕陽銅","option1":"夕陽銅","option2":null,"option3":null,"sku":"ABT01269P0","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704262243,"product_id":6898387877987,"position":1,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112","variant_ids":[40289291698275]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 夕陽銅","public_title":"夕陽銅","options":["夕陽銅"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-141,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634149987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P0.png?v=1680764112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291731043,"title":"紫羅蘭色","option1":"紫羅蘭色","option2":null,"option3":null,"sku":"ABT01269P1","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704295011,"product_id":6898387877987,"position":6,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-03-07T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P1.png?v=1678153732","variant_ids":[40289291731043]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 紫羅蘭色","public_title":"紫羅蘭色","options":["紫羅蘭色"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-646,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634182755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P1.png?v=1678153732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291763811,"title":"鼠尾草綠","option1":"鼠尾草綠","option2":null,"option3":null,"sku":"ABT01269P2","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704327779,"product_id":6898387877987,"position":7,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-03-07T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P2.png?v=1678153732","variant_ids":[40289291763811]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 鼠尾草綠","public_title":"鼠尾草綠","options":["鼠尾草綠"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-824,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634215523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269P2.png?v=1678153732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40289291796579,"title":"透明","option1":"透明","option2":null,"option3":null,"sku":"ABT01269R4","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704393315,"product_id":6898387877987,"position":8,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-03-07T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269R4.png?v=1678153732","variant_ids":[40289291796579]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 透明","public_title":"透明","options":["透明"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-4255,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634248291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT01269R4.png?v=1678153732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40289291567203,"title":"黑","option1":"黑","option2":null,"option3":null,"sku":"ABT0126952","requires_shipping":true,"taxable":true,"featured_image":{"id":29896704131171,"product_id":6898387877987,"position":2,"created_at":"2023-03-07T09:48:52+08:00","updated_at":"2023-04-06T14:55:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112","variant_ids":[40289291567203]},"available":true,"name":"犀牛盾 AirPods Pro 2 保護殼 - 黑","public_title":"黑","options":["黑"],"price":65000,"weight":0,"compare_at_price":null,"inventory_quantity":-2320,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22250634018915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/airpods-pro-2-airpodscase-bundle-front-featured-product_ABT0126952.png?v=1680764112"}},"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: "停產" }