Questions tagged [magento2]
Magento 2 is an eCommerce project facilitating the improvement of Magento Core products. Written in PHP-Zend Framework. Available under both open-source and commercial licenses via Adobe Commerce.
magento2
5,097
questions
0
votes
0
answers
10
views
Overiding Only a Few Specific Canonical Links with Default Value = Yes - Magento 2
In Magento 2, we have Stores -> Catalog -> SEO -> "Use Canonical Link Meta Tag For Categories" and "Use Canonical Link Meta Tag For Products" set to "Yes". This ...
0
votes
0
answers
27
views
Magento 2 | Smile Elasticsuite search results get all - "*"
In Magento 2 when I search for "*" in search field, all products are shown. I noticed that this is because of Smile Elasticsuite extension. Without that it wont work.
Does anyone knows how ...
3
votes
1
answer
36
views
Magento 2 cloudflare unable to install Matomo
We are using magento 2 with Cloudflare enabled on the website but when we try to install Matomo getting this issue on the browser console -
index.php:1 Refused to load the script 'https://static....
0
votes
0
answers
16
views
Braintree with Paypal not working with Multi Website and Multi Currency setup - Sandbox Environment
I am experiencing an issue with PayPal used with Braintree Sandbox. I have multi website setup. US and UK website. UK website is working fine and accepting the payment in GBP using PayPal.
I am using ...
0
votes
0
answers
37
views
Magento 2, RequireJS: r.js cannot parse ES6 syntax
I am maintaining Magento 2 store. Since we have issues with RequireJS preformance, I decided to try optimizing following this tutorial Advanced JS bundling.
I have problem on "Run the r.js ...
0
votes
0
answers
21
views
Magento DB Downgrade 2.4.3 EE to 2.4.6 CE
I am downgrading Magento 2.4.3 Enterprise edition to 2.4.6 community edition. While downgrading I am following few already available modules and blogs like below
https://github.com/opengento/magento2-...
0
votes
0
answers
16
views
Magento2 cusotm module and uiComponent won't load items, infinite spinner and "We couldn't find any records"
I have created a custom module that's purpose is to manage Vendors. I have created a Collection, CollectionFactory, DataProvider, di.xml, vendors_vendor_listing.xml and so on and so forth.
I am able ...
0
votes
0
answers
31
views
Magento 2 all admin ajax requests are returning html instead of json
I have migrated the Magento 2 code to a different server and setup the same codebase on my local/wamp server.
The admin pages are not showing any data but on my local/wamp server all admin pages like ...
-1
votes
0
answers
25
views
How to solve problem in magento 2 with empty cart in FireFox?
In Firefox, when adding a product to the cart, an Ajax request is made to /customer/section/load/ and an empty cart is received in response, although the product ends up in the cart. With a normal GET ...
1
vote
0
answers
26
views
Magento Custom Variable for current Category name?
I'm trying to create a custom variable in Magento2 that I could use within a CMS block on a category page, that would result in displaying the name of that category.
For example, within a block at the ...
-4
votes
0
answers
25
views
Rewrite this model function sendEmail
I have a problem with the Magento2 newsletter module, I need to edit the sendEmail function, there is the email variable in this function that takes the template, I need to change it according to ...
0
votes
0
answers
51
views
Magento 2 UI Listing: show/hide grid columns based on condition
I am writing listing UI Component (local_comments_grid_listing.xml).
It has <dataSource> with <dataProvider class="Local\Comments\Ui\Component\DataProvider\ListingDataProvider">.
...
0
votes
0
answers
38
views
Magento 2 API: 401 Unauthorized for Salesrule calls with Admin Bearer Token
I am using the Magento 2 API to convert quotes (from custom made laravel project) to orders. I use an administrator bearer token, which works successfully for other API calls such as:
Create guest ...
0
votes
0
answers
37
views
Why can't I use Xdebug in PhpStorm? I'm using PHP 8.1 and Xdebug 3.3
When I run Xdebug for my index page it gives me an error:
/bin/php -dxdebug.mode=debug -dxdebug.client_port=9003 -dxdebug.client_host=127.0.0.1 /var/www/html/thang/app/code/Smartosc/Thang/Controller/...
0
votes
1
answer
31
views
YOTPO how i can reach elements via js
I have yotpo on my website and need to add GTM events so i connected custom js to my yotpo page and trying to do something when i click on button that comes from yotpo. I tried call it by css class. ...