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.
5,105
questions
-1
votes
1
answer
22
views
Magento 2 how to manange customer activation attribute [closed]
Magento have any feature to enable or disable customer like disabled customer can not login
Just checking if default Magento solution or any custom plug in available in marketplace or any custom ...
0
votes
0
answers
5
views
I was looking for "theme-frontend-luma" file in vendor/magento folder
As we will be extending the parent theme blank/luma from vendor/magento folder, while I was learning magento2 I can't seem to find the actual location of parent themes blank and luma
I tried googling ...
0
votes
1
answer
8
views
Call to a member function getData() on null in /var/www/html/app/code/Macademy/Blog/Controller/Index/ListAction.php:21
I was learning about using ObjectManager in Magento2. Can you please check why this is not working?
<?php declare(strict_types=1);
namespace Macademy\Blog\Controller\Index;
use Magento\Customer\...
0
votes
0
answers
13
views
I want to stop specific customer group to buy not more than two products and also stop on specific amount of cart in magento2
I want to stop specific customer group from buying not more than two products. Also I need to stop them on specific amount in cart.
Is that possible if yes then what is the best possible way to do ...
0
votes
0
answers
3
views
Config element "ProductAttributeMetadata" is not declared in GraphQL schema in .. Magento PWA
Next Exception: Report ID: graph-ql-650960cb9cc09; Message: Config element "ProductAttributeMetadata" is not declared in GraphQL schema in /var/www/html/pwatest/magento/vendor/magento/...
0
votes
0
answers
8
views
Magento filter configurable products by all simples attached
If anybody know if Magento are planning to fix this issue?
**Pre-condition: **configurable products are catalog/search visible. Simple products are not shown individually
When you filter products by ...
0
votes
0
answers
19
views
How to Auto Select Size Attribute [Multi Sizes] in Magento 2.4.6 If anyone Exists
I'm using Magento 2.4.6, and I need to show the product view page by three different size attributes (Euro, Regular, and US) for configurable products. I created the multi size attributes for that ...
-2
votes
1
answer
37
views
How to make ajax request on amp pages magento? [closed]
I need to make an ajax request on tap or click in amp page in Magento. Is there any way to hit third party API and get data and append it in amp pages?
Code, link, article or any help will be ...
1
vote
1
answer
26
views
db_schema.xml Error Auto Increment column do not have index. Column - "id", table - "unicode_file_store", unicode_file_customer_group
I have created db_schema.xml
When I run php bin/magento setup:upgrade command, I get this error
Auto Increment column do not have index. Column - "id", table - "unicode_file_store"...
0
votes
0
answers
16
views
Magento does not recognize the own backend URL and displays 404
I have a Magento2 store divided into three docker containers:
Magento2
Maria DB
Nginx
The Nginx receives all queries and forwards them to the Magento2 container. This one processes the incoming ...
-1
votes
0
answers
26
views
Magento 2 : Missing field "image" in Merchant Listings of Google Search Console
After successful crawled, am seeing Missing field "Image" issue for all PDP pages in the Google search console. I do have all images for Products in my site.
How can I fix this issue. do we ...
0
votes
0
answers
40
views
Issue with Magento Custom Module on Magento 2.4.5
I am currently facing an issue with custom Magento module .
I'm trying to use the following module https://github.com/sivajik34/products-by-customer , but its not functioning.
Do you have any idea why ...
0
votes
1
answer
16
views
Magento 2 - 500 Internal Server error after setting permission to 775
I need to set the pub directory in my Magento 2 installation to 775 but when I set pub to 775 I'm getting an 500 Internal Server error.
I can set pub just to 755.
I see in the Magento DevDocs that the ...
0
votes
0
answers
11
views
Unable to add product in the Wishlist from the category page but it is working fine for Product display page in magento 2.4.5-p4
Unable to add product in the Wishlist from the category page but it is working fine for Product display page in Magento 2.4.5-p4 getting error store_base_url/wishlist/index/add/?product=186&uenc=...
0
votes
0
answers
16
views
Unable to navigate to Magento - Nginx web server
I've installed Magento along with Nginx and now I am able to see the localhost welcome Nginx page and I cant navigate to Magento site.
I would want an idea what can I add or remove so I can navigate ...
0
votes
1
answer
47
views
Optimize magento2 website on application level for millions of customers
Currently, we are using Magento Community Version 2.4.2 for the app. We are using Magento APIs for products. We are not using Magento's frontend for the app. Only calling Magento APIs for backend ...
1
vote
1
answer
50
views
magento 2 cloud 2.4.6 how change mariadb 10.6 utf8mb3 to utf8mb4 for each column and all tables
I have one magento cloud project based magento 2.4.6
Now I need to save Emoji string into customer firstname, address firstname, even billing address firstname. If not, it will show ??? at frontend ...
0
votes
0
answers
39
views
Combine ‘should’ with ‘filter’ result will exclude should in elasticsearch query
I have to search for a result with these conditions:
filter:- make="FUSO" AND model="SUPERGRADE" AND is_vin_required="is_vin_required_1"
should:- make="FUSO" ...
0
votes
1
answer
21
views
Adding Custom Logos to Shipping Methods in Magento
¿How can I add custom logos to the shipping methods in Magento? I need specific logos to appear for each shipping method during the checkout process. What is the best way to achieve this, and where ...
0
votes
0
answers
18
views
Debugging Uncaught Error: Mismatched anonymous define() module: undefined
I use Magento 2 and requireJs optimiser and quite often can run into below error after creating my bundles and visiting my storefront:
Uncaught Error: Mismatched anonymous define() module: undefined
...
0
votes
1
answer
30
views
PayPal buttons overlapping site elements - can't control positioning due to inline CSS
I have integrated PayPal buttons on my Magento website but these buttons get their CSS classes inline and always overlap other elements when scrolling.
For example, on the site's fixed header, the ...
0
votes
1
answer
39
views
Add to cart button not working on product page in magento 2.4.4
Add to cart button not working on product page in magento 2.4.4.
[enter image description here][1]
(1)
Magento_Catalog/templates/product/view/form.phtml
` require([ 'jquery', 'priceBox' ], function($){...
0
votes
0
answers
19
views
Magento 2 - products GET with "searchCriteria" always returns "401 unauthorized" in nodejs OAuth
I'm in a pickle here. I am developing an application on magento 2 using nodejs. This is how I'm authenticating with the api with a JS class:
class MagentoClient {
private oauth: OAuth;
private ...
0
votes
1
answer
18
views
Magento 2 Product not available for purchase when qty=0
Default magento shows out of stock for qty 0, And if admin set display out of stock product set to No, then Magento will not show out of stock product..
My requirement is i can show a message that &...
0
votes
0
answers
14
views
Magento 2 - redirect from old store view code to a new one with routes.yaml?
I changed store view code and now I am thinking can I use file routes.yaml in magento 2 to redirect from old store view code to a new one?
Because for example if someone bookmarked store url with old ...
0
votes
1
answer
50
views
How to redirect to wishlist controller for adding product in magento2
I have a problem that keeps me blocked, i need help about it!
By using knockoutJs and a controller in order to get a form_key i was trying to get redirected to the wishlist in order to add the product ...
0
votes
1
answer
25
views
Magento 2.4.6 Tiny_mce_5 Editor not working
Magento 2.4.6 version with porto theme not allow me to modify content from Editor. We only able to add HTML/css/Js code. Show/Hide button not showing. And there is errors in console. Sharing ...
0
votes
1
answer
35
views
PWA Studio Create Review Mutation failed
I have this mutation to create the product review which is working fine but not able to integrate into the form does anyone how I can fix that ?
mutation {
createProductReview(
input: {
...
0
votes
0
answers
10
views
I was facing the error when saving the csv data having the 4000 rows and when it goes to the controller then the controller redirect to the dashboard
Magento: I was facing the error when saving the CSV data having the 4000 rows and when it goes to the controller then the controller redirects to the dashboard, is any facing the same problem at the ...
0
votes
0
answers
9
views
MFTF - Magento Functional Test Framework - usage?
Am I supposed to set MFTF on test/staging/live instance(s) and run tests on all of them, or this MFTF framework is only for local development purposes?
Thanks!
0
votes
0
answers
28
views
Magento 2 - export adminthml translations only?
Is there a way to export to csv file only translations that are used for magento admin?
If I would use "bin/magento i18n:collect-phrases ..." command, it will export everything to csv file, ...
0
votes
0
answers
75
views
Algolia Search + Magento 2 + Bug
I am geeting below error when run reindex commnad from Algolia search.
Algolia Search Products index PHP Fatal error: Declaration of Algolia\AlgoliaSearch\Http\Psr7\Uri::withScheme(string $scheme): ...
0
votes
0
answers
12
views
Site Under Construction Magento2 Hosting With Nginx And Local Domain
Trying to host Magento2 with Nginx
Have completed all the requirements to install magento2
Installed via composer in /var/www/html/test.mgt.com
Created nginx virtual host
It is now redirecting me to ...
0
votes
0
answers
33
views
How to Override Save order Module in magento?
I trying to customize place order module but unable to find, i try to override the saveorder.php block but unable to override.
/var/www/html/durovinbathrooms/vendor/magento/module-checkout/Controller/...
0
votes
0
answers
21
views
Check if a simple product belongs to a configurable product
I want an API that check if a simple product belongs to a configurable product via an API in Magento2
I expect an API or solution to check if a simple magento product is under a configurable product ...
0
votes
0
answers
12
views
Cart gets empty on failed payment response from strip in onestepcheckout magento2
I have implemented stripe in onepagecheckout in magento2 its working fine. But when getting error in response from stripe e.g: 'insuffcient funds, cvv incorrect , expiry date' etc cart gets empty.
...
0
votes
1
answer
69
views
in magento 2.4.6 cloud project, at frontend website got styles-m.css not found. frontend website is broken. But backend dashboard works well
I have one magento2 cloud project. magento 2.4.6 version. Disable merge and mini css in app/etc/config.php. after push to staging and redeploy success, the styles-m.css not found
styles-m.css not ...
0
votes
1
answer
20
views
How to make possible to close product tab by clicking this tab after opening in mobile view?
I have a question about Magento 2 product tabs.
In mobile view, when I open some product tab(for example DESCRIPTION) I want to press this tab again and it must close. Currently tab closing only when ...
0
votes
0
answers
33
views
Our clients Magento 2 site has lots of obsolete categories. Advice on SEO best practice for setting server level redirects so I can delete them?
Our client's Magento website has been running for at least a decade, so has a lot of old legacy categories for Brands they no longer carry.
We're looking to trim down the amount of unnecessary URL ...
0
votes
2
answers
88
views
Installed magento 2.4.6-p1 & added a few products then tried to add a product to cart and got the below error. Any help will be much appreciated
[2023-08-07T02:38:55.058044+00:00] main.DEBUG: URI '/checkout/cart/add/uenc/aHR0cHM6Ly93d3cuYmVzdWlnZW5lcmlzLmNvbS92MjQ2djEvYi1jLWluc3BpcmUtZTE1MC5odG1s/product/1/'' cannot be accessed with GET method ...
0
votes
0
answers
18
views
Sage pay error 3069 on Adobe commerce cloud
We have a Adobe commerce cloud environment where we have integrated sagepay. I have whitelisted all the domain IP in sagepay portal but still I get and error states
3079 : The ClientIPAddress format ...
0
votes
0
answers
16
views
how can i solve pwa-studio yarn build callback error?
when i run command yarn build in my projrct
i fetch error like this
/pwa-studio/node_modules/loader-runner/lib/LoaderRunner.js:106
throw new Error("callback(): The callback was already called.
...
0
votes
1
answer
49
views
Content Security Policy not working in magneto 2
I have added chat script in magneto 2 using https://r0.cloud.yellow.ai
I get the following error.
Refused to connect to 'wss://r0.cloud.yellow.ai/websocket/' because it violates the following Content ...
0
votes
0
answers
69
views
In Magento2 - filtering is not working when joining custom tables
`<virtualType name="Vendor\ShippingFee\Model\ResourceModel\Area\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<...
0
votes
0
answers
36
views
Config element \"FrameworkDataImageContentInterface\" is not declared in GraphQL schema
This is error appeared when calling productDetail Apollo Client. Anyone know how to solve it?
Request
{"sku":{"eq":"1-VIRO-Classic-Non-quilted-4-inch"}},"...
0
votes
0
answers
30
views
totals.getSegment('giftcardaccount') returning null
NOTE: I posted this over on Magento2's StackExchange too.
I'm about at my whits end.
I still consider myself a relative novice with Magento, but this one literally has me baffled. I've also tossed it ...
0
votes
1
answer
245
views
Magento 2 - Fresh Install
Creating a Fresh m2 install. Following the usual steps we have. Instailling it via composer.
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition
But then ...
0
votes
0
answers
10
views
How do i know if my BundleProduct is still valid?
I have a client who has some bundleProducts in Magento 2. We fetch, create, update the cart via GraphQL via nextjs. I have the issue that someone can add a BundleProduct to his cart with product X and ...
0
votes
0
answers
17
views
Magento minicart do not render: broken reference element after Alothemes upgrade
Got error in magento logs, and minicart doesn't render after Alothemes upgrade
main.INFO: Broken reference: the 'mini_quote' element cannot be added as child to 'porto_header', because the latter ...
-1
votes
1
answer
29
views
Do a 301 redirect if there is no products in the current category
As a part of the SEO optimizations, when a customer go to a category page and if there is no products in the category, can we redirect it to a 301?
Eg: As a part of -ve testing, if we load the ...