Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

Magento on AWS vs Magento Cloud

What is difference b/w hosting Magento on AWS vs Magento Cloud. Need to understand the difference and each one's advantage.
0
votes
1answer
19 views

Shoot email after confirmation of purchase of 1 specific product

I have a specific product that when it is purchased and payment confirmed, I need to send a personalized email just for this product, can someone help me please?
1
vote
1answer
17 views

After update Magento 2.3.5 to 2.4.2 on all category pages error: Exception #0 (RuntimeException): Catalog Layer has been already created. How fix?

After updating the version, I started getting on all category pages this error: Exception #0 (RuntimeException): Catalog Layer has been already created This is error in: vendor/magento/module-catalog/...
3
votes
2answers
61 views

M2 Import customers with API with hashed passwords?

I can import customers with the API using /rest/all/V1/customers endpoint. I can also supply a password. But is it possible to import a customer with a hashed password with the M2 API? If possible, ...
0
votes
0answers
8 views

Magento 2.4.1 EE Static content auto generate failed in developer mode

I am using Mac M1 Chip and installed nginx, php7.4, composer, mysql8.0 and Magento 2.4.1 EE. I have set developer mode but the static content files not generate automatically. If I execute php bin/...
0
votes
1answer
20 views

Change meta tile from uppercase to lowercase

Good evening community, I ask for help from you, because I am not an expert programmer. I would need to change all meta tiles from uppercase to lowercase. Example : MY PRODUCT in My product. I think ...
0
votes
0answers
6 views

Add attribute to bundle pre order product

I have a pre order extension that gives me an attribute "Preorder Product Availability" that responsible for the time date of Availability of the products , and I have bundle products. Then ...
0
votes
2answers
21 views

Issue when running deploy static content command - Magento 2

When running the php bin/magento setup:static-content:deploy command I am having an issue with the frontend of the site where it looks like it is loading the Magento/luma theme and ignoring all of my ...
0
votes
1answer
16 views

ERROR: Could not load Sales Channels for Stock in magento 2.4.2

When I load my home page then shows that type of error . so Please suggest me what i do for this error ,how i solve this Thanks in advance.
0
votes
0answers
7 views

Magento Ship Order Missing

On an order, there was an error when pressing the "ship" button. No shipment was created, yet the order went to complete status. The order was reverted to "Processing" but there is ...
0
votes
1answer
22 views

Product Images not showing - Magento 2

I am experiencing a strange issue with Magento 2 when creating new products where the product images shows fine in the backend, it also shows on the frontend category catalog but on the actual product ...
0
votes
1answer
20 views

Different tax rate for B2B and B2C in magento 2

We sell physical products in germany for individual and for companies (B2B) from Magento 2 website. For individuals, the tax rate is 19% and for B2B( ie if the customer enter company name & VAT) ...
0
votes
0answers
7 views

Magento2 - How to create Text Field On Cart Page and Save data in Sales Order?

How to create Custom Text field on Cart Page ? And how to save that value After Checkout text field value save in Sales Order?
0
votes
0answers
12 views

Magento2 How to solve 505 internal error while saving migrated customer from admin

I migrated my magento 1 store to magento2 and all customer and other data are migrated successfully. but when i try to save customer from admin , the page is redirect to 505 internal error. if i ...
0
votes
0answers
9 views

Replace <div> of page with <div> comes from $.ajax response

Problem is written inside the success section. $.ajax({ url : 'path to file', dataType : 'json', type : 'POST', data: data, success : ...
0
votes
0answers
17 views

Moved from Local to Live - All files are functioning however a single CSS is still showing as localhost/

I have uploaded and completed all the changes required I have updated urls in core config I have set folder permissions and file permissions I ran php bin/magento setup:upgrade php bin/magento setup:...
0
votes
0answers
18 views

Account Information Link in Customer Dashboard is not working - Magento 2.4

Account Information Link is not working in customer dashboard, when i click on this link then getting below error.
0
votes
0answers
22 views

Refresh checkout cart after adding cross selling items

We have a Magento 2.3.5 with a simple custom theme. In the normal checkout card (not mini cart!) there are some cross selling items beneath. If a customer presses the .to-cart button on such a cross ...
0
votes
1answer
26 views

How to get customerId on sales_order_place_after observer?

I'm trying to get the CustomerId when an order is placed so that I can manipulate it before the order is saved to the DB. Vendor/Module/etc/frontend/events.xml <?xml version="1.0"?> &...
0
votes
1answer
14 views

Not getting Shipment id in getShipment () in vendor/magento/module-sales/Block/Order/Email/Shipment/Items.php

I am not getting Shipment data in getShipment() in below file while sending shipment tracking information email from admin in vendor/magento/module-sales/Block/Order/Email/Shipment/Items.php Any ...
0
votes
1answer
25 views

Can we save multiple shipping and billing address of customers?

I want to save multiple shipping and billing addresses of customer, If customer is logged in and on checkout page, when customer will add a new address that should be auto saved in his account and ...
0
votes
1answer
18 views

Product not visible after migration

I have migrated from magento 1.9 to magento 2 everything migrated successfully. and i can see products in backend and it is assigned to a category. but when i open category on frontend i dont see any ...
0
votes
1answer
57 views

Not getting data in phtml file in magento 2

I have override email/shipment/items.phtml in custom module. in view/frontend/sales_email_order_shipment_items.xml Vendor_module::email/shipment/items.phtml I am not getting any data on printing $...
0
votes
0answers
28 views

Why code different behaviour of Scheduled cron and command in Magento2

Following code I'm using for low stock mail for store wise in daily. $collection = $this->lowStockFactory->create() ->joinAttribute('name', 'catalog_product/name', 'entity_id',...
0
votes
0answers
21 views

DHL shipping methods are not shown in the checkout page but shown in the shipping.log

I have set the shipping origin country as Afghanistan in the Stores-->Settings-->Configuration-->Sales-->Shipping Settings->Origin, but the checkout shows "This shipping method is ...
0
votes
0answers
9 views

Magento 2 Cybersource - Create Payment Programatically

We have a custom invoice payment section, where customers will pay their outstanding invoices through Credit Card. How can we create a payment on this page using the Cybersource Payment method?
0
votes
1answer
12 views

Order is creating Automatically and after purchase also still product is in cart

For few days we are facing a different issue Once we place the Order successfully it is showing the older Order id (Order id 000000960 but our current Order id 1000+) Success page. For reference ...
0
votes
1answer
57 views

Magento 2 - Product/Category assignment issue

We are running on Magento CE-2.3.5 open source and keep experiencing products disappearing from the website. When we make product changes/updates and we run indexer:reindex; all products are in their ...
0
votes
0answers
10 views

Magento 2 how to use custom ui component form layout in another layout?

I have a custom checkout step, and then I have another custom layout with the custom form container and static form with ui components. I also have 2 JS files separated, one for creating the extra ...
0
votes
0answers
13 views

0.01 rounding error in catalog

I have admin prices excluding tax in admin, with a 19% tax on some stores. The client wants the prices to come out rounded - eg. 26.90 I made a simple calculation to find out what price I should enter,...
1
vote
2answers
20 views

Magento 2 - Change amount of products per row in category view

Currently there are showing 4 products per row in the category view. How can I make it show 3 products per row instead? I found this answer. It says there is a file Magento_Catalog\web\css\source\...
0
votes
0answers
9 views

Fill UI Form Magento 2

Hello I have problem with fill vaues to UI form. I have dataprovider it send correct values in Array, but Form not fill. I know, when I have grid and i will send url for exmaple: /set/data/index/id/1 -...
0
votes
0answers
24 views

Magento 2 Importer not importing Custom Options from CSV

I am importing a CSV file in Mag2 but it's not importing custom options not even related skus. Only the product, price and description.. Note: It has worked once before, but I had to correct the ...
0
votes
0answers
14 views

Breadcrumbs showing special characters on product page

I have a magento 2 site , when I search with something like this "3227 / 1025496" on category page looks fine while when I open the product page it shows like this any idea? Thanks in ...
2
votes
0answers
31 views

Detail usage of `__disableTmpl`

In Magento 2.3.3, there is a parameter added to some of the action items. For example, if we take the following from module-cms/Ui/Component/Listing/Column/PageActions.php if (isset($item['page_id'])) ...
0
votes
0answers
8 views

Magento 2.3. - Generate thumbnail on frontend for custom image uploader

I have created an admin grid where can upload images. On the frontend I will be rendering the uploaded images in 2 places - one small image (thumbnail) and other will be the real place where will show ...
-2
votes
1answer
17 views

How to Add Date & Time Picker in Magento 2 Configuration with Custom Format?

How to change the date format to display as dd/mm/yyyy for the admin date field? At this moment, it is displaying in mm/dd/yyyy format. Can you please help me out?
0
votes
0answers
25 views

Magento\CatalogSearch\Model\ResourceModel\Fulltext\CollectionFactory not work in observer

$category = $this->categoryFactory->create()->load($categoryId); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $collection = $objectManager->create('Magento\...
0
votes
0answers
8 views

How to integrate SimpleSAMLphp IdP login system with Magento 2.x

I was working on SAML SSO (Single sign-on) flow between two sites (IdP and SP). I am using SimpleSAMLphp to achieve this, both IdP and SP are working correctly. Currently, SimpleSAMLphp is using its ...
2
votes
1answer
39 views

How to connect Magento admin to Venia theme PWA storefront?

I setup vue storefront venia theme and working fine. Now I am trying to connect magento admin to venia storefront but not working. Note: Venia theme working fine and I want to connect Magento admin. ...
0
votes
1answer
27 views

Discount on grouped product in magento 2

I am using magento 2.3.5. and I created one group product with a combine of 3 simple products. now I want to give an offer of a group product. so how I can create the promotion for the group product?
0
votes
0answers
8 views

Place order button not working in Magento 2 - Cybersource

I am using cybersource payment gateway in my Magento 2 webstore. When I reach the payment page and press back button in the browser, place order button is not working. Please help me in resolving the ...
0
votes
0answers
10 views

Call custom JS function in HTML Template file

Is there any way that we can call our JS function into HTML template file. here is my js function and I want to call this JS function in HTML template file which is available in web/template/select....
0
votes
0answers
10 views

Add button to admin page with using block

I have created an admin page using block classes but I want to add an action button like grids. I know this can be done using UI component but for this task I am not using UI Component and its not ...
0
votes
0answers
14 views

jQuery is not defined in Checkout Magento 2.4.1

I'm in Checkout and sometimes I receive the following error: Uncaught TypeError: jQuery is not defined This error is thrown by file jquery-migrate.js in line 10 that contains this: jQuery....
1
vote
1answer
30 views

bin/magento always got killed

I can't run any bin/magento commands, always got killed. (setup:di:compile, cache:clean, cache:flush, indexer:reindex) I already changed memory_limit = -1 the php.ini, and tried to run the bin/...
0
votes
0answers
14 views

Due to heavy traffic on site customer not able to loggedin/after reseting password not able to login Magento2

We are using Magento2.3.4-p2 cloud pro. Client has reported everytime that her customer facing issue for login/after reseting password they are not able to login while promotions are running on site. ...
1
vote
0answers
21 views

Magento 2 disable order copy email when the admin sending mail manually from the admin

I want to disable the order copy email while the Admin user manually sending by click on "Send Email" So I want to disable order copy mail when it sends manually from Admin.
0
votes
0answers
10 views

How to reduce stock in inventory when order is placed and not when shipped

How to reduce stock in inventory when order is placed and not when shipped . "Decrease Stock When Order is Placed"is already set to yes , still count does not decrease on order placement.
0
votes
0answers
12 views

Change the targeted quote in beforeAddItemToCart

My website has 2 warehouses, depending of the warehouse I want to add the item in a cart or the other want. Do you know how I can change the quote Id of the cart to receive the item. Example : My ...