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 2 how to move default.html from base folder to custom theme folder

I have created Magento_Catalog folder in custom theme and moved template files there which are working fine. Now i want to move the files from module-catalog base folder to custom theme ...
0
votes
1answer
32 views

including external js library showing error in console in magento 2

I am getting error in the console after including the external js file like this in default_head_block.xml
0
votes
0answers
22 views

In customer edit page from backend in shopping cart tab why all quote display if customer hasn't any item in their cart in Magneto2?

If customer hasn't any item in their cart, from the backend customer edit page -> shopping cart all the quote display. what is exactly this?
0
votes
3answers
63 views

Admin url redirects to base url

I have the url which is www.synergoshop.in and when I try to access the admin which is configured in env.php as admin123, but it redirects me to www.synergoshop.in instead of loading the admin in www....
0
votes
0answers
21 views

Magento API Report place order Error: Uncaught TypeError: DateTime::__construct() expects parameter 1 to be string

When i tried to place an order there is an api error report error that saying: Fatal Error: 'Uncaught TypeError: DateTime::__construct() expects parameter 1 to be string, object given in \/var\/www\/...
0
votes
0answers
18 views

Error Resize Image after Migrating from Magento 1.9 to Magento 2.3.4

I just migrated from Magento 1.9.3.8 to Magento 2.3.4, then i copied the image from Magento 1.9 media to Magento 2 media, i noticed product images still not showing in my Magento 2 frontend, then i ...
0
votes
2answers
27 views

Layout Update XML for Category in Magento 2.3.4

Can anyone help me how to change number of products per page for a SPECIFIC category. I am on magento 2.3.4 and noticed that Layout Update XML does not exist anymore.
1
vote
2answers
43 views

M2: How to get total stock qty

I will try get total stock product qty. I use this below code: <?php echo "Total qty: "; ?> <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
1answer
18 views

Magento2: Catalog PDF generator out of stock products

We use free extension pdf catalog generator. https://snm-portal.com/pdfpublication-templates But this extension generated all products also out of stock. Code is full open source. Any ...
0
votes
2answers
41 views

Magento 2 showing category in homepage with products using enable/disable attributes

How to get the all custom category on homepage with products. I want to create these types, Please check screens-short:- https://prnt.sc/r5b2q5 Showing this category:- Above category showing this ...
0
votes
0answers
21 views

Magento 2 custom modal Close button redirect to footer

I have a custom modal in Magento 2 , using knokoutjs. This modal has a Continue Shopping button : 'buttons': [ { text: 'Continue Shopping', click: function () { ...
-1
votes
0answers
17 views

Magento 2.3.3 Serialization failure: 1213 Deadlock found when trying to get lock

I encountered this problem. When deleting records only in which status = 'error' from cron_schedule table occur such issue: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying ...
0
votes
0answers
23 views

Class does not exits - issue on Magento 2

This is my error that i receive on the production server: [2020-02-20 14:43:34] main.CRITICAL: Class Mynamespace\Mymodule\Ui\Shipments\PrintAllButton does not exist {"report_id":"...
1
vote
0answers
23 views

Page template is not appearing in admin front end

test.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd"> <...
0
votes
1answer
15 views

Where is the source of the following text inside the documentation?

On the DevDocs https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/using-fonts.html Link, there is the following text bellow the mixin example: @font-display: swap is declared by ...
0
votes
1answer
25 views

Magento 2 customer can't log in but I can

My customer reported me, that he can't log in to shop because he's s getting almost blank page: I tried to log in as customer using my account and had no problem with this. But my customer was saying ...
0
votes
2answers
29 views

Magento 2 - overriden class extending overriden class not working

I have overriden the class Magento\Catalog\Block\Product\ProductList\Upsell with my own Company\Base\Block\Product\ProductList\Upsell. The class Magento\Catalog\Block\Product\ProductList\Upsell ...
0
votes
0answers
14 views

Magento2: Catalog PDF generator

We have install free extension catalog pdf geenrator: https://snm-portal.com/magento2-pdf-publication.html movie with issue: https://streamable.com/h4g99 But in tab "Templates" we get issue: https://...
0
votes
0answers
22 views

Magento 2.3.2 - Last 5 orders on Dashboard showing empty on total column after migrating database from osCommerce

I am facing issues on the dashboard at the Last Orders section, as the total column is showing empty. The same code is running on my local server without any issue, but not working on the live server ...
0
votes
0answers
22 views

how to remove Container and Template form widgets layout update field?

As Shown Image Want To Remove Container And Template
1
vote
2answers
28 views

'value' is not expected in 'text' UI component

I try to add text item to adminhtml UI component as described in docs: <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
18 views

Create CRUD operations for a specific product attribute

Is it possible to create a CRUD operations just for a particular product attribute options . Say in the above Screenshot, I have generated some output in the product edit page using phtml . I need to ...
0
votes
1answer
27 views

Convert HTML Into Array In Magento2 Controller [closed]

How to convert HTML data into Php Array in magento2 Controller? <!DOCTYPE html> </HEAD> <BODY> <FORM action="***" method="POST" id="**" name="***"> <input type="...
0
votes
0answers
42 views

UI component Filter with category collection Magento2

I am implementing Grid for categories collection using UI component. I have used the following code Vendor/Module/view/adminhtml/layout/vendor_index_index.xml <body> <...
1
vote
0answers
21 views

Magento2 - How to get estimate shipping rates for guest users using js?

I have followd this link to get estimate shipping rates, its working fine for logged in user. But I need to implement this with guest user as well. I have changed service url for guest user as ...
0
votes
0answers
27 views

Magneto 2 : remove attribute from particular configurable product programmatically

ex. I have a configurable product id X having attributes like color, size, material,A,B,C etc. and I want to remove attribute C from the product X. and also remove from every linked products with X. ...
0
votes
0answers
23 views

getItemById not returning the correct data

I'm trying to get the quote_item table attribute 'name' of my product inside my cart view. So I extended the default block used for the cart template and modified the template accordingly. But when I ...
0
votes
1answer
28 views

Checkout shipping summary doesn't display Region name at checkout page

In checkout page sidebar, there's a block that displays shipping information, based on the shipping address that customer uses. The file that displays it is vendor/magento/module-checkout/view/...
0
votes
1answer
19 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
1answer
24 views

Custom admin form works in localhost not works in server in magento 2

Custom admin form show in localhost not display in server in magento 2 I have follow this reference to create a custom form in admin https://www.maximehuran.fr/en/layouts-and-forms-on-magento-2-...
0
votes
1answer
34 views

Magento 2: Add to cart button issue on phtml file (Ajax base add to cart Prodcut )

I have added the code for add to cart button but i don't want to refresh the page when i click on button. How to achieve this? I need the functionality as like default add to cart button(product ...
0
votes
0answers
17 views

Not able to upload category image in magento 2 rest api

How to upload image for category through magento 2 rest api. below is my code but image is not getting uploaded. <?php $categoryUrl=$url."rest/V1/categories"; $CI = "/var/www/html/pradeep/apistest/...
0
votes
0answers
18 views

Magento2.2x How to change backend product grid price column base on store view

Is there any way the price column of the backend product list grid can display local price and currency according to store view?
0
votes
0answers
13 views

Magento price per square meter / sold in boxes

I need tiles per m2 pricing for some products (if the product is in a specific attribute group) and I would like to ask you how I can resolve this task. The tiles come in boxes and in the attributes I ...
1
vote
3answers
55 views

Magento2 - How to customization of the invoice pdf?

I want to customize invoice pdf add parent category name before product name and after child category name. How to customization of the invoice pdf?
0
votes
0answers
13 views

Configure multiple currencies for admin

I am using Magento 2.3.4 and will need to configure several stores. I already assigned their specific currencies in Stores configurations. What I can't understand is how can I make these changes ...
0
votes
0answers
12 views

Magento2 AJAX JS Fetch Display

I have a code by which I add information to a database and display it on the same page where the form is (using AJAX), but after refreshing the page, the data disappears (in the database they are) How ...
0
votes
0answers
13 views

Magento2 on list page click page 2 or 3 at the bottom of the page. Go about 8 products down. No product image is coming only the loading image

On list page magento2 click page 2 or 3 at the bottom of the page. Go about 8 products down. No product image is coming only the loading image. The issue is random, if you click CTRL-F5 sometimes the ...
0
votes
0answers
18 views

Error from Elasticsearch after upgrading from to Magento 2.3.4 (MySQL search is fine)

After upgrading to Magento 2.3.4 Elasticsearch is not working (no searchresults in frontend) and when reindexing is running we get the following error in system.log . (p.s. Search is working fine when ...
3
votes
1answer
105 views

For what is “downloadable_domains” in env.php file?

For what is "downloadable_domains" in env.php file? I have read on Magento dev docs, but I can`t understand where it is used? Please do not add links to dev docs. Describe please your point of view. ...
0
votes
0answers
18 views

Magento2 - How to add magnifier zoom effect on fotorama fullscreen?

I need to add magnifier zoom effect in fotoroma fullscreen. Attached the screen shot here.
0
votes
0answers
18 views

Magento2 - Advance Price not Saving in some products

I am trying to save the tier price for the products. Mostly these work perfectly except a few products where I am not able to edits/add tier_prices. Can anyone please let me know what could be wrong....
0
votes
4answers
47 views

How to print Array [closed]

I am getting result in array like this now I want make drop down of this label and value Array ( [0] => Array ( [value] => default [label] => Default Source ) [1] => Array ( [...
0
votes
1answer
36 views

Magento 2.3 : Create plugin of __call method

I need to create plugin for this below file : vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php There are __call function in this file : public function __call($name, $arguments) { ...
1
vote
0answers
20 views

Magento 2.3.4 version product thumbnails & product image issue on product detail page [PDP]

I have just updated Magento to 2.3.4 but facing an issue of images on Product Detail Page(PDP). I have changed the layout of thumbnails as vertical. After changing the thumbnail image layout on PDP ...
0
votes
2answers
30 views

Magento2 - How can I convert default Magento cart icon into simple text like Cart?

I need to convert the cart icon having the following CSS .minicart-wrapper .action.showcart:before{ font-size: 35px; line-height: 33px; color: #8f8f8f; content: '\e611'; font-family: 'icons-blank-...
0
votes
0answers
24 views

Cannot see My account link in header on one of the category page in magento 2

I have one category page which contains static block, I don't see My account and shopping cart in the header when I visit that page. See https://prnt.sc/r4y5n3 However, it is appearing on all other ...
0
votes
1answer
20 views

How to add a js file at pub\static\frontend\vendorname\themename\en_US level

How to add a js file at pub\static\frontend\vendorname\themename\en_US? Where should I place the js in my theme in the theme folder at the design directory? And how can I include the js file?
0
votes
0answers
20 views

I want to override magento2-base module in magento 2.3

I want to override vendor/magento2-base/pub/errors/processor.php file but didn't find any solution. If anyone knows how it can be possible then let me know.
0
votes
0answers
11 views

Magento 2 UI Component conflicts between observable value

I try to add UI Component to product item on product list due to difficult FE login for each item. But I was wondering when conflicts between components appeared. All components for each item has a ...