Skip to content

Magento 2.4.7 – CSP Assistance needed with inline script errors

This is a follow up to this question: Magento 2.4.7 – Advice setting up csp I have set-up/configured a custom csp module. This is the current csp_whitelist.xml: <?xml version=”1.0″?> <csp_whitelist xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd”> <policies> <policy id=”default-src”> <values> <value id=”data” type=”host”>’self'</value> </values>… Read More »Magento 2.4.7 – CSP Assistance needed with inline script errors

magento246: How to redirect only homepage of website to another website using .htaccess?

I’m trying to redirect my homepage http://magento246.local/ to http://magento245.local/ but http://magento246.local/admin http://magento246.local/products/ and other URLs after slash should work as and they should not redirect to another website. only the homepage should redirect when someone tries to access the homepage.… Read More »magento246: How to redirect only homepage of website to another website using .htaccess?

How to add Enable Objects system configuration in magento 2.4.6

Select objects to log actions when any admin users perform in the backend how to do? system.xml <?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> <tab id=”vendor” translate=”label” class=”vendor” sortOrder=”800″> <label>Vendor Extensions</label> </tab> <section id=”vendor_module” translate=”label” sortOrder=”500″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <label>Admin Action… Read More »How to add Enable Objects system configuration in magento 2.4.6

How to login through REST API endpoint and magento web session in a single customer login flow?

I am using Magento as a headless CMS application and building my own frontend UI and backend application. The intention is to handle customer authentication, product listing and cart management through REST API endpoints provided on https://developer.adobe.com/commerce/webapi/rest/quick-reference/ on my own… Read More »How to login through REST API endpoint and magento web session in a single customer login flow?

Magento 2 How to move custom product options under the custom container on Product page

I am customizing the Magento2 Blank theme, by using a custom child theme. I want the custom options,product prices add to cart section to appear in my custom container. I have created the file: app/design/frontend/Vendor/theme/Magento_Catalog/layout/catalog_product_view.xml <?xml version=”1.0″?> <!– /** *… Read More »Magento 2 How to move custom product options under the custom container on Product page

I am getting SQLSTATE[42S22] error after running the setup:upgrade command after importing a dump file in mysql

i have tried reindexing and toggling from schedule to realtime mode and i am still getting the error. This is what i get after php bin/magento setup:upgrade SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘entity_id’ in ‘NEW’, query was: CREATE… Read More »I am getting SQLSTATE[42S22] error after running the setup:upgrade command after importing a dump file in mysql