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
1
vote
1answer
285 views

Magento2: Add date-from validation for dob (date of birth) field in customer creation

I want to limit the dob field in account creation form to be not less than 01/01/1900. I thought 2 way: - limit the calendar widget (but maybe someone could input the date directly) - add a ...
1
vote
2answers
24 views

Magento2: existing quote doesn't load through a cron job

I want to get an existing quote through a cron job, but it returns null. Want get through this $this->quoteFactory->create()->loadByCustomer($custoemrId) or $this->quoteFactory->...
1
vote
3answers
29 views

Magneto 2 How to call Helper function in observer file

I am new to Magento development and I am using a custom MySQL query in some places like in observer/plugin etc. These codes are repeating for all these files. so I want to make a new reusable ...
0
votes
0answers
4 views

How to add a curreny icon to custom field in magento 2

How to add the price indicator to the custom field in Magento? I am developing a form to add additional attributes to the product. now I am searching for this functionality for a while, can you help ...
0
votes
4answers
30 views

Magento 2: Call to a member function setState() on array

I want to change the order Status programmatically but when I run the function realTest() as I mentioned below then it gives me an error Call to a member function setState() on array in the below ...
1
vote
1answer
71 views

Magento 2: How to login with Facebook Rest API

I'm building Rest API and I have to make login with social media. I found that there are extensions that used for that but what if I want to build API for mobile application. How to do that.
0
votes
0answers
4 views

Add sidebar additional with category filter in magento 2 custom phtml

I have a custom phtml showing list of products with specific brand shown like below. I need to show the sidebar like this image in phtml as shown in the category view page of Magento 2 I tried this ...
0
votes
0answers
6 views

Magento 2 counter.cgi paypal

I am facing issue with my magento 2 webshop over checkout page. All of a sudden something happens to it and its showing loading symbol on paypal step. see the screenshot please. You can also see this ...
0
votes
2answers
57 views

Magento 2: Customer Registration Rest API throws error

I try to register customer via Rest API. But customer registration Rest API throwing error. Method: POST Request URL: http://localhost/magento/rest/V1/customers Body: { "customer": { ...
3
votes
3answers
2k views

How get custom Table Data in phtml file without creating Model file. Magento 2

I created custom table in my database through phpmyadmin, now I want display top1 record from that table on home page, and top2,top3 records need to display in product details page.
0
votes
0answers
13 views

Change warning message in cart page on Magento2

I need to change the error message on cart page, so i edited language file to update the custom message. Here i have edited the csv file. app\design\frontend\Custom\Mytheme\i18n\en_US.csv I changed ...
2
votes
2answers
93 views

Get order object inside email_order_set_template_vars_before event observer

I have observer for email_order_set_template_vars_before where i am setting some email template variable to use in order confirmation email. Now i want to find which products customer has ordered in ...
0
votes
1answer
26 views

magento 2 contact us add multiple recipients

task: create form "contact us" send data from the form to 2 Email addresses I created form but magento 2 does not provide option in admin to add multiple emails separated by , I was looking for a ...
0
votes
0answers
11 views

What is a alternative for deprecated method \Magento\Framework\EntityManager\EntityMetadataInterface::getEntityConnection

I am currently implementing a SaveHandler class for my custom model like described here. My goal is to save the relations between my custom model and the Store model. There \Magento\Framework\...
2
votes
1answer
39 views
0
votes
0answers
17 views

Getting error while placing order in magento 2.3.2

When i try to place order after selecting payment method i am getting error as "An error occured on the server.Please try to place the order agian error". please help how to resolve this. Error while ...
0
votes
0answers
15 views

Magento 2 - How to move email field in checkout page?

I Want to Move Email Field below phone number. can any one help? Any help would be appreciated. Thanks In advance.
5
votes
0answers
58 views
+50

Error in add or update a cart in magento 2?

In magento2 , when create a new cart_price_rule in admin after update or add a product to cart its shows a error In admin, i was create a new cart_price_rule with custom option action Add or ...
1
vote
1answer
32 views

How to edit the image field in admin [duplicate]

I use this blog ui-component <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
3answers
592 views

Magento 2.2.3: Merging error in data migration tool

Acutally, We migrated our data once but now most of development has done. So, i need to merge new data in existing database. I fired migrate:delta command but gives error: Deltalog for customer_entity ...
2
votes
5answers
178 views

Remove cms block from only cms home page

I have created a cms block and using widget added inside header page container, now I want to remove that block from only home page. How can i achieve this? Widget screenshot to display block
0
votes
0answers
5 views

Newletter subscription is not working for guest

For Guest News Subscription is not working in footet if we login with our credentials then it is working and sending mail for guest subscription is not working For reference please find the attached ...
2
votes
1answer
64 views

Magento2 Backend Not Add Product So give me Solution

Magento2 Backend Not Add Product So give me Solution Here is my EXCEPTION.LOG [2019-04-16 13:09:11] main.CRITICAL: Cannot gather stats! Warning!stat(): stat failed for /home/ywndev/domains/dev....
0
votes
3answers
518 views

Magento2 command not working

I have setup Magento2 on my local system but when i go to git bash and run any command i am getting this error bash: php: command not found.
0
votes
0answers
10 views

Magneto2 Make Magento2 Backup command with no Maintenance mode

I want this command without going to enable maintance mode active php bin/magento setup:backup [–code] [–media] [–db]
1
vote
0answers
9 views

Magento2 custom referer URL redirects to correct URL but again redirects to My Account in few seconds

I have created a custom URL with referer like this: use Magento\Framework\UrlInterface; use Magento\Framework\View\Element\Template; public function __construct( Template\Context $context, ...
2
votes
1answer
597 views

Magento 2 google recaptcha Console log ERROR grecaptcha.render is not a function

I have installed Magento officially released Google reCAPTCHA it's working fine, But when I browse directly two customer account creation page https://example.com/customer/account/create/ captcha is ...
2
votes
3answers
315 views

How to customize a product details page in magento2?

In magento 2 how to customize a product detail page in custom theme. app/design/frontend/companyname/themename/Magento_Catalog/layout/catalog_product_view.xml <?xml version="1.0" ...
2
votes
0answers
296 views

Magento 2 After Migration Configurable Product Price blank

I have Migrated Magento 1.9.1.0 website in Magento 2.2.4,all data is migrated successfully. I have an issue when checking products in admin->catalog->product and compared price with Magento 1 ,...
0
votes
0answers
26 views

Upgrade to magento 2.3.2 suddenly shows wrong / duplicate labels on default checkout

I upgraded magento 2.3.0 to magento 2.3.2 and now it shows the tooltip label and a strange street address: line 1 label in the default checkout. Do not want to hide it with css but a real solution ...
0
votes
0answers
17 views

How to reduce the size of logo in print order? Magento2

I have added below code in sales_order_print.xml <body> <referenceBlock name="logo" remove="true" /> <block class="Magento\Theme\Block\Html\Header\Logo" name="print_logo"> ...
-1
votes
3answers
33 views

Upgrade Magento 2.3.0 to 2.3.2

I want to upgrade my Magento store from 2.3.0 to 2.3.2. I am doing the upgrade thing for the first time. Can anyone please guide me.
0
votes
1answer
15 views

Magetno 2 order grid pagination page number set from where we open details page of order

Suppose we are viewing 2-page number records and open that 1 particular order in details page now press back button from order view page so this should return page 2 records but it throw me on page 1. ...
0
votes
0answers
13 views

Magento 2.3.2 - Import / Export not display attributes

I try to export today all of my products and I observe that I can't do this because the attributes not display in that section. Also if I press that Continue button I have this error: Please correct ...
0
votes
2answers
590 views

Fatal error: Uncaught Error: Cannot instantiate abstract class Magento\Framework\Model\ResourceModel\AbstractResource

Fatal error: Uncaught Error: Cannot instantiate abstract class Magento\Framework\Model\ResourceModel\AbstractResource in /home/dukaania/public_html/testing2/vendor/magento/framework/ObjectManager/...
0
votes
0answers
9 views

How to show saleable quantity in Magento Low Stock Report

Today I have encountered a problem with one of our magento store. Below are the store configuration. Magento 2.3.2 (Migrated from Magento 1.9.4.2) Backorders are allowed in our store. Product X has ...
0
votes
2answers
81 views

Downloadable product on Magento 2.3.1 out of stock issue

I'm issuing a problem with newly created downloadable products on Magento 2.3.1 This store contains about 10k products (phisical and digital) imported from M1 Phisical in stock/out of stock is ...
0
votes
1answer
11 views

Magento 2 : Class interceptor does not exist

I have a simple module when I save data then this error : Magepow\Importexport\Controller\Adminhtml\Allimports\Save\Interceptor does not exist [] [] here is save file <?php namespace Magepow\...
0
votes
0answers
10 views

Custom Area code in Magento2

Is there a way to set a custom area like the existing ones , global, frontend, adminhtml, webapi_rest etc to have my own area and set the overrides and events specific to areas.
0
votes
2answers
39 views

How to put www in front of my website?

How to put www in front of my website now we are getting like https://vitalticks.in if we enter www.vitalticks.in we are getting below error
1
vote
2answers
668 views

Magento 2 : How to override translation file module wise?

I need to update translation file only for checkout page , so how can I do that . I don't want to use translation file which is use in theme folder.
2
votes
1answer
31 views

Command setup:di:compile error for Repositories code

We have developed one Magento2 Website Version - 2.2.1, in every instance - Production, Staging and Local facing the same issue as: Error while running php bin/magento setup:di:compile Repositories ...
0
votes
0answers
15 views

Add signature in magento2 invoice pdf after the Grand Total?

How to add signature in magento2 invoice PDF after the grand total? I am using magento 2.2. Version, I also want to add "digital signature image" at the bottom of customer invoice after the Grand ...
0
votes
2answers
23 views

How to change text in customer dashboard sidebar?

I need to change the Address book text to My Contact Details in customer dashboard sidebar links. I used this below code but no use. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
1
vote
1answer
27 views

How to display recently viewed products in Porto Theme?

i want to display recently viewed products in porto theme i have created one widget for recently viewed products but it is not reflecting in home page.
2
votes
0answers
17 views

How to print all xml loaded tree and also able to debug XML?

I want to debug xml loaded tree and also able to debug XML, is there any tool available?
0
votes
0answers
11 views

Magento 2 same sku different vendors [on hold]

I have multiple vendors, some of them have the same sku # but different products. Any idea how to handle this?
0
votes
0answers
17 views

control the visibility of add to cart according to group and their catalog magento 2

I have created two catalogs and two group and each group had his own catalog so when he connects he can just see added to the cart of his catalog and not the other catalog. Is there a sol of creating ...
2
votes
2answers
56 views

All necessary commands for Using Magento 2 - For beginner

ALL Basic Commands I am new in Magento 2 but require I necessary commands including bash commands and git command to working with Linux based system ,
8
votes
4answers
11k views

Magento 2 : How to check if we are on a category page or product page?

Is there a way I can check that If a user on a category page,or an individual product page in Magento 2? Any help would be greatly appreciated!