Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
29 views

Magento2 SQL Query Resource Model

I am Create a extension vendor attribute extension . I need to get all the vendor attributes in a grid format. My resource model is like this. $entityTypeId = $this->entityModel->setType( \...
1
vote
0answers
25 views

setup authorised.net in mangeto2.3.1

i am setup authorised.net in localhost when i pay using this payment method it gives error Root element is missing. http://prntscr.com/ncmprk anyone have a solution for this type of error admin ...
0
votes
2answers
36 views

Magento 2 when I click on frontend my account cannot open and it shows error

I am facing this issue. My XML file is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
0answers
19 views

create a product type with out inventory ,gift message etc

I want to create a advertisement product type.I don't have an inventory concept.How to avoid inventory etc in product edit admin? namespace Vendor\Module\Model\Product; class Type extends \...
0
votes
0answers
16 views

Remember these details not working for Adyen Payment version 2.4.3 Magento 2

I am facing one issue here once we checked "Remember these details" checkbox for a customer then if again same customer is placing order then its not showing for him.
0
votes
0answers
26 views

Magento 2 - Add individual item descriptions to grouped product page (grouped.phtml)

I'm trying to display product descriptions/short descriptions for each of the items belonging to a grouped part. My code below from grouped.phtml, although line 3 getShortDescription (or ...
0
votes
0answers
14 views

Magento 2 Redis keeps asking for same key every 5 seconds

I'm currently running Magento 2.2.3 with redis for cache. My issue is that every time I refresh or try and load a new page Magento always gets to the point where it asks for the same params from redis ...
2
votes
1answer
31 views

Duplicate entry '1-Migration_Default' for key

I have faced following error while running data migration for 2nd time from 1.9.2.4 to 2.3.1 SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-Migration_Default' for key '...
0
votes
0answers
14 views

How to configure ModSecurity on PLESK for Magento 2?

For moment I disabled 3 rules in the security rules, what do you advise ?
0
votes
1answer
29 views

Add email variable to all transactional emails

Is there any way to add one email variable to all transactional emails? My idea is to create a custom variable, put some code in it and display it in all transactional emails.
1
vote
0answers
16 views

Listener when message is set in Magento 2

I am deleting the mage-messages cookie, how sometimes it's not getting deleted for iPhone Safari browser. I have even added set timeout for 5 sec. The issue is the notification persists on other pages ...
2
votes
1answer
28 views

how to save product name dynamically

for example i have 3 product attributes color ,size ,location. i do not want to enter product name instead of it should save combination of color,size,location. product name. 'red color small in new ...
2
votes
1answer
27 views

Magento2 PWA images missing - development environment

I have followed below URL. https://webkul.com/blog/magento2-3-pwa-studio-setup/ Setup is successfully installed and my local environment is connected to PWA application, but all of my images ...
1
vote
1answer
46 views

Magento2 - How to install and check coding standards of extension for Magento Marketplace?

I want to check My Extension's coding standard for Magento Marketplace before submitting it on **Magento Marketplace*. Can anyone tell me how can I install coding standard in My Local Environment and ...
1
vote
0answers
28 views

Magento2 - How to assign custom Certification to my extension?

I have developed custom extension and I want to give certification to my custom extension. Can anyone help me how can I do This. Thanks in advance
0
votes
0answers
13 views

when creating trying to insert variable in email template I receive [object Object]

I'm experiencing an issue when trying to insert variables in email templates. Instead of receiving a list with variables I'm receiving [object Object] I'm using Magento 2.3 and I migrated from 1.7 ...
1
vote
2answers
30 views

how to get customer last visited date in magento2?

I want to find inactive customer list that is customers who are inactive from a certain amount of time I have an account creation date of the customer if I get last visited date then I can put logic ...
0
votes
0answers
20 views

Shipping option not selected on review page when I selected shipping method in paypal express account in Magento2

If I already selected shipping Method in Paypal express account and redirect to Magento2 review page then shipping option not selected by default on review page.
3
votes
2answers
46 views

Magento 2 - Customer/Token Rest API issue

Customer is signup through rest api in magento 2.3 successfully. after signup, I am unable to get customer's token through customer/token rest api. Api returns following error: Any help, experience ...
0
votes
0answers
16 views

Process to create composer patches in Magento 2? [on hold]

Complete process of how to create composer patches in Magento 2 with example?
0
votes
0answers
6 views

How can we use two different Magento 2 Versions/Instances installed using Docker?

I have installed Docker Image for Magento 2 and it is working fine. I need two different Magento Versions i.e Magento 2.1.13 and Magento 2.3.0 working simultaneously on my system. How can I install ...
2
votes
0answers
21 views

Magneto 2.1.9 checkout page getting error in console network

I am using wegbshop Matrix shipping method after login customer group I am facing this issue in checkout page when place order {message: "Please specify a shipping method.",…} message: "Please ...
1
vote
0answers
21 views

Document has ambiguous configuration: sales_flat_quote_address

Following error occurred while performing data migration from 1.9.2.4 to 2.3.1. Please, assist. Document has ambiguous configuration: sales_flat_quote_address
2
votes
2answers
34 views

How to resolve magento2 module conflictions

I installed module conflict detector module. I found 4 conflictions in my magento. https://github.com/magefan/module-conflict-detector Please find attached image for referance. But i don't know how ...
1
vote
1answer
24 views

Magento 2 - Customize contact us page

I want to add MAP in contact us page. To do this I want to override it's phtml. How can I get it's phtml and how can I override it? Thanks
2
votes
0answers
16 views

How to create git patches in Magento 2

Can anybody tell me the complete process of how to create git patches in Magento 2 with example?
2
votes
1answer
40 views

how to fix error occurred during upgrade magento from 2.2 to 2.3?

Process : Upgrade Magento version from 2.2 to 2.3 As per my client requirement, I tried to upgrade Magento from 2.2 to 2.3 as mentioned in this URL: https://devdocs.magento.com/guides/v2.3/comp-mgr/...
4
votes
1answer
39 views

progress indicator bar

I'm new in Magento, I want to ask how we make custom progress bar like this, I want to give feedback on user and display the percentage of process completion
5
votes
0answers
25 views

Magento 2 : Getting error like “Only default scope allowed” when click to the theme option at the backend

Getting error like below : 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Only default scope allowed Exception #0 (Magento\Framework\Exception\LocalizedException): ...
5
votes
1answer
35 views

how to get proper indian currency format for price in magento 2?

in magento front end its showing ₹7,765,000.00 But we need ₹77,65,000.00 $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of Object Manager $priceHelper = $...
3
votes
2answers
69 views
+50

Product edit page move tabs to sidebar

In the default layout for the admin product edit page, we have an accordion style setup. This is really annoying as you have to scroll down several pages every time you want to edit an option that's ...
4
votes
0answers
26 views

Magento 2.3 error after cache flush or clean

Every time I flush or clean Magento cache I get the following error on front and backend: Exception: Notice: Undefined variable: _ENV in /home/jacstoreonline/public_html/magento/vendor/magento/...
3
votes
1answer
39 views

Backend fatal error when making a invoice

Now that the web store is almost ready, I am investigating how the processing of orders goes. When I go to sales - orders - promotion - view, I come to the order. Then I go to invoice (at the top of ...
2
votes
0answers
17 views

DELETE `catalog_product_index_eav_temp` FROM `catalog_product_index_eav_temp` creating locks on tables for minutes at a time

DELETE `catalog_product_index_eav_temp` FROM `catalog_product_index_eav_temp This query as well as one to build it runs constantly but if you search all the source code of m2 that table isn't even ...
2
votes
0answers
6 views

Include all states except one in Tax Rate

Is there a way to exclude only one state from my tax rate rule? I need to apply 2% to all US states except New York. Do I need to create a rule for each state? Thanks!
1
vote
0answers
14 views

Undefined variable: _ENV

every time I add the following directory and xml file: public_html/magento/app/design/frontend/Vendor/theme/Magento_Catalog/layout/catalog_product_view.xml Magento returns the following error on ...
0
votes
1answer
36 views

403 errors on wysiwyg/media folder and product images

Another developer ran rm -rf on the pub/static folder. After I cleared cache none of the images show up. Wysiwyg folder images and product images do not show up. They come back as 403 errors. Is ...
0
votes
1answer
20 views

Via block get custom type image or display default

I want to display my new product image type in my phtml. I use : echo $block->getImage($product, "custom_type_image")->toHtml() That work, but all my product didn't have an image with this type, ...
1
vote
1answer
28 views

Specialprice & finalprice returns no decimals

Magento 2 returns regular price differently from special and final price. Expected result: $product->getPrice(); // 89,95 $product->getPriceInfo()->getPrice('regular_price')->getAmount()-&...
2
votes
0answers
13 views

Magento 2 - sell product grouped by quantity

My client want sell their product by quantity for exemple : Flowers sell by 10qty = 10$,20qty = 15$,30qty = 22$ without the customer can edited the quantity salled. And he want to manage the ...
0
votes
1answer
15 views

How can I move product page swatches after the quantity input and before add to cart button?

I have been trying to move the swatches and can't get them to work inside of the addtocart.phtml. There must be an easier way.
0
votes
0answers
10 views

How to gracefully handle image exceptions?

So I am having the same issue as what is talked about here. The images that are throwing the exception are broken, and I'm working on replacing them, but until I get them all replaced is there a way ...
4
votes
1answer
32 views

Add button on product page

I want to add a button only on those products which are having product size.Button displaying over Color attribute. My XML file is catalog_product_view.xml <?xml version="1.0"?> <page xmlns:...
0
votes
0answers
11 views

Magento2 Catalog search result and product listing grid only sort by product name set

I need below condition to my website. Magento2 Catalog search result and product listing grid only sort by product name to be set. I have also back-end configuration done but issue is like product ...
0
votes
1answer
22 views

Magnto 2 update the cart custom option value

Currently am using magento 2.2.5, while adding the product to the cart the custom options values are stored in the quote_item_option table correctly. while updating the custom options ...
0
votes
0answers
10 views

DHL module local shipping for South Africa

I am using Magento 2. Filled in all the account details, and if I test on international shipping the module works. On local shipping it is not working. Spoken to DHL and according to them it is a ...
0
votes
0answers
10 views

Magento2 Free shipping with cart rule after discount

I want to offer free shipping on subtotal but after discount is applied. How could I do this programmatically in Magento2.2 ?
2
votes
0answers
21 views

when register in magento2 getting no entity

when I'm registering magento2 getting an error like Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with email = prasad@value22.com, websiteId = 1 Exception #0 (...
0
votes
1answer
32 views

how to validate custom fields using variables in magento 2

here have two fields 1)Fields_1 2)Fileds_2 here i want to validate Field_2 < Filed_1 (less than ) how i do this in magenot 2??? Field_2 Tag <div class="field"> ...
1
vote
0answers
18 views

Change the category of several products at the same time M2

I want to change the category of several products at once, I select all the products that I want to change category, I click on option "Update attributes" but I can not find a way to update the ...