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
0answers
2 views

How to want to configuration product attributes values in Magento 2

I want to get configuration product attributes values in phtml file. Above two value i want to get in magento 2. So please Explain me How to get. THANKS.
1
vote
0answers
6 views

Upgraded to Magento 2.4.2 giving 404 Error

I recently upgraded from 2.3.5-p1 to 2.4.0 and everything was working fine. I then upgraded Magento 2.4.0 to 2.4.2, however this time I got 404 Error on the website. Upon checking the logs I found ...
1
vote
2answers
3k views

Magento 2 File/Folder permissions

I am trying to install fresh Magento 2. It gives me HTTP ERROR 500 when hit the URL http://localhost/m2/. I know 0777 will solve my issue, but it is not good to give 777. I give permission as ...
1
vote
0answers
9 views

Magento 2.4.1 - Frontend product pages not showing all content

I am running Magento 2.4.1 with Porto theme and when accessing any frontend product page, most of the time (not always), not all content is displayed. To see all content I have to manually refresh the ...
2
votes
0answers
17 views

Magento 2 : Does redis make any difference on low traffic store

I've recently come across redis being installed and configured on single server low traffic stores. Generally the default response for anyone when reporting their Magento 2 store (which is everyone) ...
0
votes
0answers
2 views

How to move/shift/translate content of existing PDF document?

I want to move/shift/translate the content of an existing PDF page to adapt it for printing. Specifically, I have a shipping label that has to be moved 1 cm to the right relative to the edge of the ...
1
vote
2answers
34 views

php bin/magento setup:upgrade Notice: Undefined index:

I have recently installed and then uninstalled an extension (Cart2Quote) and now when I attempt to run the command: php bin/magento setup:upgrade I am getting the following error: Notice: Undefined ...
1
vote
2answers
83 views

Your current search engine, 'Elasticsearch 2', is not supported

I just upgraded magento 2.3.5 to 2.4.1 . Its completed successfully and i did changed search engine form "mysql" to "elasticsearch" and now its showing error when i run : bin/...
1
vote
1answer
19 views

Magento 2: How to add second template file to Catalog Product List widget

I am trying to add a second widget template option to the backend of Magento 2 so that when I choose the Catalog Product List widget I will get the choice of two templates. I have created my second ...
2
votes
0answers
31 views
+500

Admin > Customers > All Customers > Edit Customer: > left hand tab “Account Information”

How can I populate this field so it's filled in when a customer creates an account? **edit just needs to match what customer[parent_customer_id] has above doesn't necessarily have to happen on account ...
0
votes
0answers
7 views

Catalog Search Dose Not Content Data Without Indexer in magento 2

I Am Used Amasty Search For Catalog Search and All Index Set Update By Schedule When i Import Large Amount Of Product data Using Csv They Dose Not Content In Catalog Search Without Apply Re-indexing ...
0
votes
0answers
4 views

Suggest some free tutorial for magento 2 associate developer certification please Didnt found anything on internet.Any help would be appreciated

i m planning to answer magento 2 associate developer exam, can anyone plz suggest me some content for the same. All the cources which are given are paid ones also the exam fee is also not cheap, so ...
6
votes
1answer
2k views

Adding products to cart programmatically with custom price in controller: Magento 2

I am having a module that is creating quotes using the Magento quote module. It is using the \Magento\Quote\Model\QuoteFactory for creating the quotes. Now I have added a button "Proceed to ...
0
votes
1answer
12 views

Products are disappeared on the frontend. All show up after reindex manually. - Magento 2

All products are disappeared on the frontend. All show up again after reindex all php bin/magento indexer:reindex After a few hours later, all products are disappeared again on categories and search ...
0
votes
3answers
2k views

Magento 2 All Products pages Redirect to catalog search

I am facing an issue which is I am not able to access any products pages. Either trying to access them directly via product url or product page Or via Search Results Or via Site Navigation every ...
2
votes
1answer
125 views

How to override the Catalog Widget PHTML file into custom module?

I need to override the widget template file /vendor/magento/module-catalog/view/frontend/templates/product/widget/new/content/new_grid.phtml but in xml file the phtml file was not mentioned at any ...
1
vote
2answers
1k views

Magento 2 - hacking FedEx rate request

We are running CE 2.1.2 Magento 2 sets the residential flag in the rates to request based on the configuration data. This means that all quotes are either residential or commercial, depending on what ...
1
vote
2answers
2k views

Magento 2 some Product URLs show Category path

In my magento 2.2.4 setup some products of some categories show the category path and some do not. i checked all settings but I dont see the difference. In all store views (Default, etc.) I have ...
3
votes
1answer
2k views

Magento 2.2.0 partial Credit Memo/Refund doesn't work properly

We have to try partial credit memo for Magento 2.2.0 shop admin for below step: 1) Proceed order with default payment and Grand Total are €37.00 2) Create the Invoice. 3) Try to Credit memo with ...
0
votes
1answer
819 views

Magento2 How to call model function in Controller

I have following model in one module namespace Abc\Abcd\Model\Job; use Magento\Backend\App\Action\Context; abstract class AbstractJob extends AbstractModel { private $name; public function ...
32
votes
15answers
82k views

magento 2 admin url not working and loaded frontend is all messy

Admin url is showing 404 error after installing magento 2 on wamp server and frontend design is all messy and css is not linked to it.Error visuals are shown below. Frontend error:
0
votes
1answer
858 views

Magento 2.2.3 - Get all products in product grid/list

I'm trying to get all products in my store programatically and show them in the default product grid/list as shown below. I've already gathered all products with the productcollection. But i don't ...
0
votes
1answer
1k views

How to make related/up sell products display full width of screen?

In product page, product details tab appear below the images gallery along the full width of screen. Related products appear below the details tabs. If details are moved to the right column (below ...
1
vote
1answer
16 views

Magento 2 add “Tel:” in address-renderer

How can I add "Tel:" before <!-- ko if: (address().telephone) --> in default.phtml. When the customer does not provide a phone number, "Tel" will be not visible.
3
votes
3answers
2k views

Totals Block does not show in Order Summary in Checkout Page;Magento2

In Order Summary block(Checkout Page), totals block is missing. In the Cart Page, totals block is displayed. I have to override checkout_cart_index.xml in my theme for Cart Page. The code in ...
1
vote
1answer
171 views

Product custom attributes not updated - Magento 2 REST API

I'm using Magento 2.3.4 CE. I used the below JSON to update the product custom attribute part_number in swagger. { "product": { "sku": 678899, "name": "...
1
vote
1answer
993 views

Magento2 - Wait for checkout page completely loaded and fire JS code

The goal is to add a piece of JS to manipulate a datepicker on the checkout page. I use a OSC (OneStepCheckout from mageplaza). So far I've followed this documentation and added this mixin: var ...
1
vote
1answer
2k views

Magento2: FullText Search Programatically

Does anyone know how to run a search using FullText and a string? I'm trying to inject use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection as Fulltext; and do $this->_fulltext->...
1
vote
0answers
65 views

Magento 2 - How To Display Cross Sell Products Against Each Line In Basket

I am looking to try and add Cross-Sell products against the specific product they are related to. I understand that currently, the cross-sell products are shown on the cart page in relation to every ...
0
votes
0answers
9 views

Magento 2 how to connect magento 2.3.6 to a MS SQL server?

I have been searching how to connect Magento 2 with MS SQL, I can't use another db because the customer already has it's architecture. I found this answer but it's for 1.9 and it did not work. Add ...
0
votes
2answers
816 views

Magento 2 error : Command “indexer:reindex” is not defined

System : Ubuntu 18 Application : Magento2.3 PHP : 7.1 I have two indexer need to be reindex. I have update the indexer on the admin page but it is not work. I also use the following command on the ...
0
votes
1answer
1k views

PHP 7.0.9/NGINX 1.11.3/Magento 2.0 Setup gives blank page

This is my first time posting here and I am hoping someone can help me out, I am a little stumped. We have a Linux CentOS 7 server with PHP 7.0.9 and NGINX 1.11.3 installed. We are trying to install ...
1
vote
0answers
8 views

How I change the modal of adding address at checkout magento 2?

Currently the modal that I want to change is as in the image. And where Line 1, Line 2 etc. is written, this is where I want to change, but this modal is done through the knockout and I can't find a ...
0
votes
2answers
1k views

Magento 2 : How to forward controller defaultNoRoute?

I create a custom module in which if data is found the template is shown else I need to show default 404-page content & set the status to 404. I have tried below code to set the status to 404 ...
0
votes
2answers
1k views

Magento 2 error when run php bin/magento setup:di:compile

I am using magento 2.1.5 when i change developer to production mode got the error like this Enabled maintenance mode Starting compilation Something went wrong while compiling generated code. See ...
0
votes
0answers
9 views

Why does Magento2 add 0.0001 in the credit memo refund processing?

I am talking about the file vendor/magento/module-sales/Model/Order/Creditmemo/Total/Shipping.php here in codes if ($desiredAmount < $this->priceCurrency->round($maxAllowedAmount) + 0.0001) ...
2
votes
8answers
3k views

Magento2 doesn't load images and css

I have downloaded and installed Magento 2 but I'm getting 404 error for scripts and css. An example of my image path is: http://www.arredomobilionline.com/pub/static/frontend/Magento/luma/it_IT/images/...
0
votes
1answer
10 views

Magento 2: How to change order status from Complete back to Processing

Is there a way to change the order status back to being Processing when order is already in Complete status? Is there some code way or MySQL way to achieve this?
0
votes
3answers
16 views

Magento 2 : Get ordered products in sales_order_after observer

Is their any way i can get the product names in sales_order_place_after observer ? I get the order object but not sure how to fetch the products. Any thoughts ?
0
votes
2answers
32 views

Add DropDown in Sales Order Grid Section in Magento 2.2.5

I have checked some of the links but they do not work my need so Please help someone who did this before sales_order_grid.xml <?xml version="1.0" encoding="UTF-8"?> <...
1
vote
1answer
32 views

Magento 2 visibility “catalog” not saving in default store view

Magento 2 visibility "catalog" not saving in "default store view" but when store is "All store view" it is saving "catalog" but in default store view when ...
0
votes
1answer
16 views

How to we move current applied filter state to center of the page just beside the sortby

In the category page layered navigation, I want to move the current applied filter state just beside the sort by or center of the page. Can anyone please help me out?
0
votes
4answers
2k views

Remove Credit Card option from magento 2 checkout

I don't want to show credit card option in Magento [2.2.2] checkout. From backend only cash on delivery is enable but still credit card is showing. Even whatever payment method i choose [Standard ...
4
votes
3answers
7k views

How to move this Container to the top of the page

All I've just finished reading http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#layout_markup_rearrange. Trying my best to answer this question before I come back here ...
7
votes
7answers
5k views

Magento 2.2.3 - Remove price from select field on product page

I was trying to remove the price which Magento adds to the options in a Select field but can't seem to get rid of the price. From what I could find on the internet it should be edited on the following ...
0
votes
1answer
22 views

Repeat a product on category listing page after list of 9 Products

I have a scenario, i want to list a marketing/ads product on interval of 9 product on category listing page. So every 10th number of product is a marketing/ads product. For example i add following ...
1
vote
1answer
125 views

Configure path mapping for Magento 2 xdebug in phpstorm

I have xdebug set up in phpstorm. However every time I load my Magento 2 app the script get.php opens 3 times in the debugger and breaks. I also get the error "The script '/pub/get.php' is ...
1
vote
2answers
64 views

Magento 2 : Get total spent by customer

Is their any way we can get total amount that has been spend by customer in magento 2 ?
1
vote
2answers
29 views

Magento2 configure PHPstorm & xdebug and how to use it

I was using sublime and VScode for the development. Recently I heard that PHPStorm is the best IDE for the Magento2 development and using xdebug you can easily debug the issues and write modules. I ...
1
vote
1answer
2k views

Magento 2: Show out-of-stock products in search results?

We have disabled out-of-stock products from showing on the frontend, but would like to override this for search results only. How would we accomplish this? Note: this store has thousands of products ...

1
2 3 4 5
859