Skip to content

CSP report-only working on firefox only?

i’m trying to receive csp reports for my magento2 (open-source) website using their official guide: https://developer.adobe.com/commerce/php/development/security/content-security-policies/ and using an endpoint generated from report-uri.com this is config.xml: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Store:etc/config.xsd”> <default> <csp> <mode> <storefront> <report_only>1</report_only> <report_uri>https://*mysubdomain*.report-uri.com/r/d/csp/reportOnly</report_uri> </storefront> <admin> <report_uri>https://*mysubdomain*.report-uri.com/r/d/csp/reportOnly</report_uri>… Read More »CSP report-only working on firefox only?

Review tab not opening

I am using Magento 2.4.7-p3 Product review form not opening when passing #review in URL. issue on the product detail page. exa. https://m2-demo.com/fusion-backpack.html#reviews If anyone has an idea please let me know. Thanks.

Change currency symbol

My store use SAR currency and now it has a new symbol.. Unfortunately the new symbol only available as icon, how can I achieve that ? Really I need your help because I’m lost.

Type Error occurred when creating object: MagentoUiComponentDataSource, Argument 2 passed to MagentoUiComponentDataSource::__construct()

I am facing this error on Magento backed Grid page loading. Type Error occurred when creating object: MagentoUiComponentDataSource, Argument 2 passed to MagentoUiComponentDataSource::__construct() must implement interface MagentoFrameworkViewElementUiComponentDataProviderDataProviderInterface, instance of CatwalkCustomersPendingReviewsModelResourceModelOrderReviewGridCollectionInterceptor given my code in Catwalk/CustomersPendingReviews/Model/ResourceModel/OrderReview/Grid/Collection.php <?php namespace CatwalkCustomersPendingReviewsModelResourceModelOrderReviewGrid; use MagentoFrameworkViewElementUiComponentDataProviderSearchResult;… Read More »Type Error occurred when creating object: MagentoUiComponentDataSource, Argument 2 passed to MagentoUiComponentDataSource::__construct()

Fetch Products using Slug in Magento

<?php $adminToken = “”; $slug = “dish-washing-powder”; $url = “https://mysite.com/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=url_key&searchCriteria[filter_groups][0][filters][0][value]=$slug&searchCriteria[filter_groups][0][filters][0][condition_type]=eq”; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ “Authorization: Bearer $adminToken”, “Content-Type: application/json” ]); $response = curl_exec($ch); curl_close($ch); $products = json_decode($response, true); echo “<pre>”; print_r($products); echo… Read More »Fetch Products using Slug in Magento