Skip to content

magento man

Due to Content-Security-Policy it is not displaying CSS and JS on both storefront and admin after my magento 2.4.5 installation using docker

Due to Content-Security-Policy it is not displaying CSS and JS on both storefront and admin after my magento 2.4.5 installation using docker. i try deleting var and inside pub/static except .htaccess i deleted all file after i tried static content… Read More »Due to Content-Security-Policy it is not displaying CSS and JS on both storefront and admin after my magento 2.4.5 installation using docker

Magento Venia PWA wrong PDP pages

MAGENTO_BACKEND_URL=https://pwa02.wsl/ (M2 here working well, all pages exists) DEV_SERVER_HOST=pwa02.dev.wsl DEV_SERVER_PORT=10000 Ubuntu 20.04 over WSL2 Apache 2 PHP 7.4 MySQL 8.0 Magento 2.4.3 Venia sample data installed Installation: git clone https://github.com/magento/pwa-studio.git sudo yarn install MAGENTO_BACKEND_URL=https://pwa02.wsl/ yarn buildpack create-env-file packages/venia-concept sudo yarn… Read More »Magento Venia PWA wrong PDP pages

Magento 2 -custom field Product Price in admin

how can create new field sku,price,sale price and a button update price dynamically, admin have option set and update price dynamically. i have tried below code etc/adminhtml/system.xml.? help me how can make it dynamically <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Config:etc/system_file.xsd”> <system>… Read More »Magento 2 -custom field Product Price in admin

Inserting button in mini cart which is loaded by a javascript code

I need to add button in mini cart just below the “Proceed to checkout” button. And the button is loaded using this javascript code: let sourceUrl = “{some_url/index.js}”; let scriptEle = document.createElement(“script”); scriptEle.setAttribute(“src”, sourceUrl); scriptEle.setAttribute(“type”, “module”); document.head.append(scriptEle); const buttonHolder =… Read More »Inserting button in mini cart which is loaded by a javascript code

Get selected values from Grid which is created by insertListing /button component inside a modal component to display on parent

I have add this button to display a grid inside a custom UI form, but cannot able to get in Controller Data of which is selected from the grid <button name=”insert_listing_example_modal_button” component=”Magento_Ui/js/form/components/button”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”buttonClasses”… Read More »Get selected values from Grid which is created by insertListing /button component inside a modal component to display on parent