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
22 views

Magento2 - Call to the empty Gift message object causes the observer class to fail

I'm trying to edit an associative array containing order info. This array for our backend application gets created under sales_order_place_after event once the order is placed .Everything works as ...
0
votes
1answer
28 views

How to add form for additional information in checkout for virtual product

As we know when we checkout any virtual product it does not ask any shipping information. Only shows payment Information and go on. Here I want a tab before payment named as Your Entries and will take ...
1
vote
2answers
38 views

How to Validate Special Characters in Magento 2 Validation Mixin

I want to validate special characters in a custom validation mixin file (validation-mixin.js) When I am using this validation mixin for my input field, i.e. a Purchase Order Number in checkout, it ...
1
vote
2answers
36 views

Magento 2 Customers not displayed in admin grid

When a customer registers, the details are loaded to the database and the customer is able to login and do the purchases. But in the Customer -> All Customers I am not seeing any registered customers. ...
0
votes
0answers
20 views

Magento2 - Mageplaza social login not work properly for facebook [closed]

I have installed Mageplaza Social Login Extension. Even I entered the correct APP ID and Secret to that it gives this error.
0
votes
0answers
21 views

Magnto2.2.4 - Search priority to search for particular attribute in query string

I have a requirement where If a particular attribute option - let's say 'red' which is an option for attribute 'colour', is present in the query string, then do a search looking for that attribute ...
0
votes
0answers
25 views

Sending order create email when order is updated to certain status

I have created an custom email template which Mageplaza smtp sends when order is placed but I need it to be send went certain order status is set and so I have created an event which triggers on "...
0
votes
0answers
21 views

Magento2 Stripe Extension returns: Uncaught Error: Class 'Stripe\PaymentIntent' not found

I've installed the Magento2 Stripe extension following this guide: https://stripe.com/docs/plugins/magento/install#manual The extension is active and I've setup Stripe to send test data. The problem ...
0
votes
1answer
36 views

Magento 2 admin menu action result Invalid security or form key. Please refresh the page. on click

I have succesfully added a new admin menu. But the problem is whenever i clicked the admin menu button, I got Invalid security or form key. Please refresh the page. Here're some of my codes. This is ...
0
votes
0answers
13 views

Magento 2 add multiple products to cart at once - controller

I am having issues adding multiple products at once on a controller that I created. If I comment the first the second one is added fine, but if I keep it not commented only the first only is added to ...
0
votes
1answer
22 views

Magento2.3.2 - After upgrade no price on frontend

I have upgraded from Magento2.2.8 to Magento2.3.2, after the upgrade I have noticed all the prices are gone on the webshop, I have already tried indexing but that doesn't seem to fix anything. If I ...
0
votes
0answers
13 views

Magento2 - Disabled modules causing errors in cron schedule

I have disabled the modules for all the forced third party modules - temando, yotpo etc. But they still get added to the cron schedules and cause errors - even though the administration no longer ...
0
votes
0answers
13 views

SOAP - customer logged in, but can't see cart

I use SOAP and the customer's email address to log the customer into the shop system. This is successful. If I now add a product to the customer's shopping cart via SOAP, it will be forwarded to the ...
0
votes
0answers
14 views

Magento2 - How to display Discounts (cart price rules) in cart summary seperately?

Is there any way to display the applied Cart Price Rules(discount codes) in the cart summary separately? Currently it's stacking, Ex: If you have two discounts with 10% each it displays just one ...
1
vote
1answer
21 views

Magento2 - show/notify customer when they reach x in the cart to spend x more to get free item or discount

Basically I am looking If there is something out there or anyone has used anything or suggestions for when in a cart price rule where the rules is E.G: spend $100 and get Y for FREE. So It's ...
1
vote
1answer
35 views

Dependent Custom option in Magento-2

How to create Custom option programatically in which both are drop-down and they are dependent on each other . Dependent in the sense , changing value of second drop-down option based on the value of ...
0
votes
0answers
16 views

Magento 2 order limit in sequence_order_1 table

I had faced a problem with order limit in magento 2. If click Place Order button magento autoincrements sequence_value in sequence_order_1(by default) table. And this table has max_value and if ...
0
votes
1answer
22 views

Magento 2: Disable search by SKU storefront

I would like disable the storefront search by SKU. I changed but it still shows results by sku. Any idea?
0
votes
0answers
17 views

More then one Configurable products need to be dispayed in PDP

If I want to have more then one configurable product to be displayed in PDP with all the Swatches options with a single 'add to cart' button at bottom of the page, what kind of approach should I go ...
0
votes
2answers
50 views

I want to migrate Magento 1.7.x to magento 2.x

Can anyone suggest a proper process to achieve migration of magento 1.7 to 2.x? There is reference but all scattered, since many things are needed to considered and major concern includes data ...
0
votes
0answers
19 views

Warning: Illegal string offset '__disableTmpl'

When I try to run an import job in Magento 2 I get this weird error and I can't find a solution anywhere else. We are importing with Firebear Improved Import/Export v.3.1.6. When I press "Edit & ...
0
votes
1answer
37 views

How to disable sku from dashboard ? Magento 2

I need to disable Sku from the dashboard and not from the code, is this possible?
0
votes
0answers
21 views

How do i get my products to appear in a random order on the category page?

At the minute, my products are showing in alphabetical order from the part number. When clicking on a category, I would like this to show in completely random order. Can anybody help with this? This ...
2
votes
1answer
50 views

Magento 2 - Understanding text/x-magento-init

I try to better understand the concept of text/x-magento-init. I understand that it allows us to define script components that do a certain task, which we then can use as often as we like in any ...
0
votes
0answers
24 views

Remove tabs from M2 mobile menu

I want to remove the mobile menu tabs "Account" and "Settings" and have these items directly under the catalog links, how to proceed? from this: to this:
0
votes
0answers
20 views

Add to chart not working says error in Add.php file as shown in the picture

This is where the error is on $params =$this->get request()->getParams();
0
votes
6answers
64 views

how to empty .log file in magento 2?

how to empty .log file in Magento 2 from Terminal ? system.log exceptional.log debug.log
0
votes
0answers
22 views

What to consider before installing a new theme? [closed]

I'm considering installing a new theme for our site. I'm a bit worried about what could go wrong and how much work might be required after the install to have all content in the right place. Anyone ...
0
votes
2answers
14 views

How to get only list of products that are selected inside the bundle product in magento2

How to get only list of products that are selected inside the bundle product in magento2 when we create a bundle product we can selects some products to attach in bundle products i just want to show ...
0
votes
0answers
31 views

Search Product by SKU programatically using search criteria

I need to search product programatically using search_criteria public function search($storeId, $searchTerm, $searchOrder, $searchDir, $page, $pageSize, &$totalSearchResults, &$attrs_applied, ...
0
votes
2answers
35 views

I need only active website stores . Below code give all website

use Magento\Framework\View\Element\Template; use Magento\Store\Model\StoreManagerInterface; class Website extends Template { public function getWebsites() { /* Use getWebsites(true) ...
0
votes
1answer
24 views

Error filtering template: Invalid template file in module

I have this issue and I don't know how to solve it. My phtml file is under: app/design/frontend/rwd/josefsteiner/template/home.phtml and i tried to include this phtml file into my CMS site like ...
1
vote
1answer
19 views

Error of layout xml : Element 'update': This element is not expected

I'm upgrading a theme from 2.2.x to .2.3 there are so many xml in this theme have the following directive <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1answer
33 views

Magento 2 Custom cron not working

I am trying to run custom cron but, I got below error in system.log while execute cron:run command. main.WARNING: Could not acquire lock for cron group: default, skipping run [] [] crontab.xml ...
1
vote
0answers
17 views

Magento2: How to add custom section below the order total on the checkout page?

I want to add a custom section below the order total on the checkout page.
1
vote
0answers
16 views

Magneto 2 project on new VPS loading wrong design

I have successfully installed my magneto 2 version 2.3.3 project on my new vps service using Ubuntu with php 7.3.13. But the design seems to have failed to load correctly. It's all over the place. ...
1
vote
0answers
19 views

Magento2 - How to override this file in magento2 Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Options.php [duplicate]

How to override this file in Magento2 Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option
1
vote
3answers
52 views

Magento2 - How to override this file Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Options.php

How to override this file in Magento2 Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Options This code is in my di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
1
vote
0answers
17 views

Magento2.3 - Many Magento core modules are disabled when deploying on test sites

I recently upgraded my site from Magento2.2.3 to 2.3.3. As everyone knows, when upgrading, Inventory module will be disabled, but when I checked, many other modules are disabled, even though I use ...
1
vote
0answers
14 views

Template notations in magento

I was working with the Algolia search module in Magento 2 and foud something like below in the template files. Can anybody let me know what this notation is called and where can I learn more about ...
2
votes
0answers
27 views

Magento 2.3 - How to call html file instead of exception?

I want to call the HTML file in this function. Currently, it is showing exception but I want custom HTML design to display. Magento/vendor/magento/framework/app/bootstrap.php if ($isOn && ...
2
votes
1answer
33 views

How to restrict specific Region from shipping?

I want to restrict some specific regions from the shipping list due to some requirements, so anyone can help here? Thanks
1
vote
0answers
14 views

Set a custom Transaction ID from an external source

I'm trying to change the Transaction ID straight after the user finishes the checkout process. After the user has clicked submit, I'd like to change the Transaction ID to an ID that I'm retrieving ...
1
vote
0answers
25 views

Limiting the number of drop-down options

I have created an attribute which consists of two option. say A and B and on the front-end, I have another attribute which is a drop-down. Is it possible to limit the number of options in the front-...
1
vote
0answers
30 views

Magento2.3.4 advanced Bundling error

Tracing dependencies for: mage/bootstrap Error: ENOENT: no such file or directory, open 'C:/wamp64/www/Project /pub/static/frontend/Hiddentechies/custom/en_US/mageTranslationDictionary.js' In ...
4
votes
4answers
349 views

Magento2: How to avoid fake registration?

How to avoid fake registration? I have added google ReCaptcha. But getting the same issue. Please help me
0
votes
1answer
60 views

What is Difference Between Configurable Product & Simple Product In Magento?

I Can't find any difference in the product types
1
vote
1answer
22 views

Magento2 - Set value for dropdown type product custom attribute programatically

I have a custom attribute with code 'manufacturer'. Its Catalog Input Type for Store Owner is 'Dropdown'. How can i set the value for this attribute programmatically on product save. I am trying ...
1
vote
2answers
24 views

Magento 2.1.8 Authorize.net payment method not working

Magento 2.1.8, Authorized.net payment method is not working, even with signature key. It was working fine before with patch installed. I got error at checkout page The Referrer or Relay Response URL ...
1
vote
0answers
21 views

Magento2 - Remove Extra space from Shopping cart image

Here I am facing a UI issue but don't know how to solve it. In My shopping cart page my product image is getting extra space i dont know from where it is coming.