How to show magnifier size based on different product image sizes?

I need to show the magnification sizes as fixed for all different sizes of images in product detail pages. How can I achieve this?. <var name=”magnifier”> <var name=”fullscreenzoom”>2</var> <!– Zoom for fullscreen (integer)–> <var name=”top”>0</var> <!– Top position of magnifier –> <var name=”left”>0</var> <!– Left position of magnifier –> <var name=”width”>300</var> <!– Width of magnifier…

Magento 2.2.2 Plugin how to add custom field in request api

I’ve create a plugin to listen to api POST /V1/order/:orderId/refund and I would like to receive custom field. I’ve added a field for testing like: name:[‘test’] Body E.G: { “items”: [ { “extension_attributes”: {}, “order_item_id”: 7, “qty”: 1 } ], “isOnline”: false, “notify”: true, “appendComment”: true, “name”: [ { “test”: “ok” } ], //THIS IS…

Magento 2.2.2 Plugin how to add custom field in request api

I’ve create a plugin to listen to api POST /V1/order/:orderId/refund and I would like to receive custom field. I’ve added a field for testing like: name:[‘test’] Body E.G: { “items”: [ { “extension_attributes”: {}, “order_item_id”: 7, “qty”: 1 } ], “isOnline”: false, “notify”: true, “appendComment”: true, “name”: [ { “test”: “ok” } ], //THIS IS…

Magento 2.2.2 Plugin how to add custom field in request api

I’ve create a plugin to listen to api POST /V1/order/:orderId/refund and I would like to receive custom field. I’ve added a field for testing like: name:[‘test’] Body E.G: { “items”: [ { “extension_attributes”: {}, “order_item_id”: 7, “qty”: 1 } ], “isOnline”: false, “notify”: true, “appendComment”: true, “name”: [ { “test”: “ok” } ], //THIS IS…

Magento 2 Filter product collection by multiple attributes with OR

In Magento 2.3.3, How Can I Filter Product Collection by Multiple Attributes? First attribute SKU needs to check using “IN” second attribute is yes/no value. I need to filter collection by SKU array OR custom_attribute. I have tried few things but it did not return expected results. $collection = $layer->getProductCollection()->addAttributeToFilter( array( array(“attribute”=>”sku”,array(‘in’ => $skus)), array(“attribute”=>”universal_fitment”,”eq”=>1)…