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
2 votes
2 answers
2k views

Display Child Product SKU in Product Page

I am using Magento 2. I would like to display child product SKU in Main product page while user clicks on configurable Swatches. I am trying to gather information from below file. public_html\vendor\...
7 votes
2 answers
5k views

Magento 2: Import/Export Product Attribute Set & it's Attributes

I refer Magento 2 - Export/Import Product Attributes but no one answered :( I have already created new Attribute Set & it's Attributes. I have checked Magento Default Import/Export for Products. ...
0 votes
3 answers
2k views

How to call Magento 2 custom variables in phtml file?

I have created custom varibles in "System -> Other Settings -> Custom Variables" for different store views. How can i call them in phtml files for store views? I am trying following ...
1 vote
2 answers
4k views

Magento 2 Get Tax Amount is 0.000 in cart page ?

I get tax amount in cart page but it's 0.000.Why ? Can anyone help me ? print_r($this->checkoutSession->getQuote()->getShippingAddress()->getBaseTaxAmount());
2 votes
3 answers
2k views

Magento 2 (Ubuntu) - Thumbnail image caching fails

I'm using Magento 2.1.0 with a bought with a template (SM Sawyer) on Ubuntu 16.04.1 Our products are being inserted/controlled by an external registration system. After this external source adds ...
1 vote
4 answers
2k views

Slow page load times on Magento 2.3.1

I've been getting slow page load times on my magento 2.3.1 site. I am still developing it and it is in developer mode, but i dont think switching to production mode will help too much. I have been ...
0 votes
1 answer
2k views

The shipment couldn't be saved. {"exception":"[object]

The shipment couldn't be saved. {"exception":"[object] (Magento\Framework\Exception\CouldNotSaveException(code: 0): The shipment couldn't be saved. at /vendor/magento/module-sales/Model/Order/...
0 votes
1 answer
1k views

Not all of your products are available in the requested quantity

When I am trying to ship an item I get the message "Not all of your products are available in the requested quantity." The order comes through Magento 2 into Linnworks which allocated the stock and ...
0 votes
1 answer
20 views

custom widget to retrive price

I am new to this Magento platform. I want to create a custom widget to retrieve the price so that I can use it just by calling the widget on the front page. May anyone help me?
2 votes
1 answer
3k views

How to get and set custom field of customer_group table Magento 2

I create new extention and add some columns in customer_group table. but i can't get/set custom field. namespace [NameSpace]\[Extension]\Block\Adminhtml\Group\Edit; use Magento\Customer\Controller\...
0 votes
0 answers
8 views

Magento2 Order email missing custom variable values for first time & when I send email from admin it shows values

Magento2 Order email missing custom variable values for first time & when I send email from admin it shows values Basically this custom variable values are the order attributes. I have used this ...
5 votes
1 answer
3k views

how to extend default javascript

I try to extend standard magento javascript configuration but I just get nothing. I'm following this: http://devdocs.magento.com/guides/v2.1/javascript-dev-guide/javascript/custom_js.html and this: ...
4 votes
2 answers
3k views

Get Saved Credit/Debit Card Details in Magento2

How can I get already saved credit/debit card details to use in my custom module from checkout page before place order.
2 votes
2 answers
2k views

Imported image roles are lost on update in Magento 2

I use an import script to create products with associated images that are assigned to roles thumbnail and small image. It works well, products and images are imported and they display as thumbnail ...
1 vote
2 answers
3k views

How to link simple products to configurable product?

Im building an import extention, that imports bicycles from an external Database into Magento. I managed to create working helpers, that create a configurable product and the different bikesizes as ...
1 vote
4 answers
3k views

Magento2 Event Observer Redirect Simple Product to Configurable Product

I'm trying to write a module to redirect simple products to their configurable products once each simple product is clicked on. I've done a bit research and wrote an Observer to catch event: ...
0 votes
0 answers
14 views

Ebizmart Mailchimp Interest Group Issue

I'm using Magento2 and I installed the module Ebizmarts_MailChimp in my local and setup using the MailChimp account. Everything is working fine except that when I add a group interest on an account ...
5 votes
4 answers
2k views

How to Display Attribute value in magento 2 using getProducts() Method

When I Try to get data using below code,But return null value. $_attributeValue = $block->getProduct()->getResource()->getAttribute('weight_spices')->getFrontend()->getValue($block-&...
0 votes
1 answer
33 views

How to prevent user sending requests frequently?

I believe it can be done with a PHP controller or JS cookie manipulation. Help me with logic. For example, I want a user to send a request once every 2 minutes. Let's pretend I've implemented some ...
0 votes
0 answers
16 views

magento-cloud: Authentication is required. Unable to login via browser

I'm encountering an issue while trying to log in via my web browser. When I attempt to sign in, I'm presented with the following screen: Login Screen Error I'm also looking for guidance on how to ...
3 votes
1 answer
2k views

how pass parameter to object manager get

I have a ProductFactory , it's construction must manual pass a parameter, But I don't know how to pass it. I use $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $objectManager-...
6 votes
4 answers
4k views

It's possible to migrate only products on Magento 1 to 2?

Our situation's next, I have a Magento 1.9 store live and we are developing a new store in Magento 2. The new store it's a new clean versión of the site and we only have to migrate products, ...
5 votes
2 answers
1k views

Custom page layout not working

Im going crazy here. Can't get this to work. I'd like to make a custom page layout like the 1column, 2columns-left etc. I've searched and read multiple tutorials all doing the same. Nothing works ...
2 votes
4 answers
3k views

How Can I Schedule custom cron in every 5 minutes.?

cron_groups.xml <?xml version="1.0"?> <group id="custom_crongroup"> <schedule_generate_every>5</schedule_generate_every> <schedule_ahead_for>10</...
0 votes
1 answer
1k views

How to reload checkout page after applying the coupon code or removing the coupon code magento 2?

I am facing an issue related page refresh on checkout page and it is solving after refreshing page when discount applied or removed.
0 votes
2 answers
15k views

"Could not open input file" error while running php command in windows

I have installed Magento 2.2.5 on my localhost windows system. I use the wamp server. I am unable to run any PHP command and getting the error Could not open input file: C:\wamp64\www\magento2 I got ...
0 votes
1 answer
1k views

Magento 2 - change block class in layout

I know I can change the template of a block with: <referenceBlock name="copyright"> <action method="setTemplate"> <argument name="template" xsi:type="string">Dfr_Backend:...
0 votes
1 answer
40 views

Magento 2 : Exception Error Depricated Functionality Return type

I am using magento version 2.4.2 and php version 7.4.3 I am trying to run the project locally, getting the below error: Exception: Deprecated Functionality: Return type of Magento\Framework\Config\...
0 votes
0 answers
10 views

In Magento 2 :- How to give return functionality of rma-graphql module for guest users

I want to give the return functionality for the guest users in rma-graphql default module. Also, I want to revoke the customer access token for the guest users in rma-graphql default module. If anyone ...
0 votes
2 answers
1k views

Magento 2 : Assign positions to category products

Is there any way to assign positions to multiple products programmatically using SQL queries? with the setPostedProducts method it takes much time to process.
0 votes
1 answer
31 views

Magento 2 Reset Password Confirmation email templete link url not generate properly

Error Screenshot : https://i.imgur.com/SIAjq0C.png <!--@subject {{trans "Reset your %store_name password" store_name=$store.frontend_name}} @--> <!--@vars { "var store....
11 votes
1 answer
3k views

Magento 2 - Update quantity and totals of cart page without page reload?

In Magento2 - We need to update main cart on change of quantity by Ajax without click on "Update Cart Button" and without reloading the page, Below my code in this code only update cart subtotal but ...
1 vote
1 answer
1k views

Magento 2: Broken Order print pdf layout in Mozilla

When taken a print order from My account ->My orders-> View Order-> Print Order, getting a broken layout on Fire fox web browser, But there is no issue on Chrome browser. How to fix this issue in Fire ...
1 vote
1 answer
33 views

check condition in foreach loop with dynamic variable in knockout js

I have html file at the path /var/www/html/nelson-avnet-app/code/vendor/module/view/frontend/web/template/shipping-address/list.html <!-- ko if: (visible)--> <div class="field addresses&...
0 votes
1 answer
1k views

Unable to Serialize Value Magento 2.2.6

On my site at http://139.59.47.100/ ,anyother url(http://139.59.47.100/daily-deals) except the home page is coming fine but for the homepage,i am getting the error "unable to serialize value".I have ...
0 votes
0 answers
39 views

Magento 2 - Add two custom attributes to customer in a new section

In a Magento 2 (2.4.5) instance, I created a new section in CUSTOMER > CUSTOMER INFORMATION, after "Customer View" (thanks to the tutorial of @rakeshjesadiya https://www.rakeshjesadiya....
0 votes
1 answer
42 views

Facing an issue in PDP page in content in Magento 2

I am getting the below error in console in Magento 2 for js and also due to that my details and review tabs overlap with each other. Can anyone knows how to debug this js.
1 vote
1 answer
4k views

How to override comment field in system.xml in magento2?

I have override system.xml file. My label is overridden but comment field is not overridden. It's still take from core file. Any help should be appreciated. Thanks. Core system.xml file code <?...
0 votes
0 answers
25 views

Trying to access array offset on value of type int in /vendor/magento/framework/Session/Validator.php on line 132

Sometimes we get this type of error in production mode my System info: Magento ver. 2.4.6-p1 Php Ver. 8.1 MariaDB 10.6 Report file(ba7302309568648563df8f4293486858d9b2cccd6e8c5a1a5b1398afd1cd5c3f) ...
1 vote
1 answer
5k views

Magento 2: Checkout page can't continue

For some reason, my checkout page is bugged, and I didn't change anything as far as I know. Usually, the flow goes like this: Add product > Go to cart > Go to checkout > Fill out details OR ...
0 votes
2 answers
150 views

Stripe web hooks could not be configured automatically

Even after running the command shown in the message below that admin page shows, it didn't disappear. Please suggest what else can I try?
0 votes
1 answer
1k views

Permission denied error when trying to access magento2 prior to installation on Ubuntu 20.04 / nginx / php 7.4

What I've done so far, Installed nginx 1.19.6 Installed php 7.4 and all required extensions in Magento Documentation Installed and configured MySQL as per documentation, and created magentodb ...
3 votes
3 answers
2k views

Magento 2 : Payment Method Title not showing in Order view in admin

I made a custom online payment method. All things are going proper, but in order view page in Admin I am Not getting Payment Method Title. We already set the configuration for title and its same like ...
0 votes
1 answer
2k views

Magento 2 add seo title suffix for every product page

How can I add SEO title suffix for product page?
1 vote
1 answer
1k views

Prevent abandoned cart and guest cart merge

I have made Observer on event "sales_quote_merge_before" to remove abandoned cart items when customer logs in (from Go to Checkout). After login Minicart shows only guest cart items (no items from ...
0 votes
2 answers
1k views

Magento2 : Category not saving

I have tried to save the category and getting below error in Magento2 admin. Error: URL key for specified store already exists Please help me to fix this issue.
3 votes
1 answer
157 views

Magento 2 Bulk API Response - serialized_data is Null?

Wednesday I began working on an interface for a local application to manage product categorization rather than the Magento console. The documentaiton instructs you to pack multiple request bodies into ...
0 votes
1 answer
2k views

Magento2 : Redis Sentinel Configuration

I am trying to run Magento2 with a Redis Cluster (running redis-sentinel) as cache and session backend. I am not sure about how I should do this ? Is it even possible ? As I see from Collin ...
0 votes
0 answers
22 views

Change Configurable Product Name to Simple Name in Minicart & Cart

Over the past few days I have been trying to change the Product Name in the Minicart & Cart. I have a configurable product with two child simple products. When I select an option and add to cart, ...
2 votes
1 answer
2k views

Magento2 : How to remove delete item button from cart page?

I want to remove delete item button from cart page. I am using below xml code to remove this but not working:- Path: app/design/frontend/vendor/theme/Magento_Checkout/layout/...

1
2 3 4 5
951