Magento 2 how to add external css and js library with RequireJS?

I’m struggling trying to add this js library AOS This is what I’ve tried to add both, css and js: in Theme/Magento_Theme/layout/cms_index_index.xml i have this code: <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <head> <css src=”css/bootstrap.css” /> <css src=”https://unpkg.com/aos@2.3.1/dist/aos.css” src_type=”url” /> </head> </page> The reason of why i’m using cms_index_index.xml instead of default_head_blocks.xml is because I want…

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)…