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
2
votes
0answers
9 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
5 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.
0
votes
0answers
7 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
0answers
5 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
0answers
8 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) ...
0
votes
1answer
11 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 Catalog Product List widget I will get the choice of two templates. I have created my second ...
1
vote
1answer
29 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
3answers
15 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
1answer
14 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
1answer
19 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
2answers
58 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 ?
0
votes
0answers
12 views

Magento 2 sales_order_item table save store_id sometimes 0 and sometimes 1 issue

I checked on my system that when order place store_id field in sales_order_item sometimes 0 and 1. Do anyone have any suggestions?
0
votes
1answer
6 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
0answers
13 views

Double order generated in Magento2

Version: Magento2.3.4-P2 ECE Issue: Customer sees two orders with the same details within 3 minutes. Two transactions happened. But the order placed only one time. Paypal through Braintree payment ...
0
votes
0answers
15 views

Magento 2.2.2 - Can't add a new website

I have one Magento 2.2.2 with 2 websites added there and everything work fine, when I try to add a 3rd new website, when I try to access it I have the following error: 1 exception(s): Exception #0 (...
0
votes
1answer
15 views

Magento 2 - Fotorama Gallery Nav shaft is missing on product page

If you add multiple images to a product then they are showing below the base image in small boxes, see screenshot below (bottom corner - left): This box is missing. First I thought it is because some ...
0
votes
2answers
29 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"?> <...
0
votes
0answers
17 views

How to get all Shipping Methods list with shipping rates and shipping tax on cart page?

I want all available shipping methods list with shipping rates and Tax amount. I've done below function, though it's giving me shipping methods list with rates but not shipping tax amount per shipping ...
0
votes
1answer
32 views

How to override a method in a vendor module?

Hi so i wrote this code to override a method in the woom cmstree module. But it seems like, something is wrong and i have used an entire day to figure it out, without any success. My Vendor/MyModule/...
1
vote
1answer
19 views

Adding Google Web Font to Transactional Email?

I'm attempting to add a Google Web Font (Montserrat: https://fonts.google.com/specimen/Montserrat?preview.text_type=custom) in the Marketing -> Email Templates area and attempted to add this in two ...
0
votes
0answers
5 views

Help required with Owebia Shipping configuration file

I am converting a Magento 1 site to Magento 2 and need to upgrade an Owebia Advanced Shipping configuration file. I'm ok with most of the file but need to help on what this line should be replaced ...
2
votes
1answer
27 views

Product are not displaying on Category page after Data Migration

main.CRITICAL: { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Text fields are not ...
0
votes
1answer
19 views

When the indexer runs in Production mode?

When a Magento2 instance is in Production Mode, When the re-indexing takes place automatically or Do we have to create cron for re-indexing. Please advice.
0
votes
1answer
28 views

Magento 2 Free Shipping Coupon

in cart price rules, can someone explain whats the difference between "For matching items only" and "For shipment with matching items" i cant seem to find a good documentation for ...
0
votes
1answer
28 views

Magento 2 : setItem() on bool error

file frontend/templates/email/items/shipment/default.phtml <?php /** @var $_item \Magento\Sales\Model\Order\Item */ $_item = $block->getItem(); $_order = $_item->getOrder(); $...
0
votes
1answer
20 views

Assign images to products programmatically

I want to assign images to products in my store. The images name the same SKU product name. I put my PHP file in root/pub and tried this code: <?php ini_set('display_errors', 1); ini_set('...
0
votes
2answers
18 views

Error during VAT Number verification

I have Magento 2.3.6 Instance on my local machine (Vagrant) now i am trying to add the merchant information in magento admin and validating the VAT ID for my merchant, but when i added it is saying &...
0
votes
0answers
21 views

To automatically update the price when the quantity of grouped products are changed

I use the grouped product feature. I use the code below to list the price; <?php $priceHelper = $this->helper(\Magento\Framework\Pricing\Helper\Data::class); $products = $block->...
0
votes
2answers
42 views

The requested URL /pub/ was not found on this server. - Magento .htaccess problem

I have an problem about magento 2.4.2 Installed magento 2.4.2 using Composer-CLI. But I can't access magento homepage (http://localhost:8888/magento2) The requested URL /pub/ was not found on this ...
0
votes
1answer
20 views

Move Product Attribiutes from More information Tab to details tab

I would like to move all product attributes from selected product to details tab. I try to do something like this: <move element="product.attribute" destination="content" after=&...
0
votes
0answers
19 views

Reposition delete button magento2.4

How to reposition this button on Order Summary.
0
votes
1answer
29 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 ...
0
votes
1answer
16 views

How to import “price per customer” csv file from /var/import/price/ folder to Magento 2.4.1 automatically?

I'm new in Magento 2 and have not enough experience in coding, I need help to import the Price per customer CSV file into Magento 2.4.1 version automatically. I use the Price Per Customer extension in ...
0
votes
1answer
16 views

Magento 2 cronjob doesn't seen to work

I'm using Magento 2 v 2.3.3 with Ubuntu. I have cron job activated but for some reason doesn't it seem to work and my website is taking up alot of server memory. On my var/lib/mysql it's taking up ...
0
votes
1answer
24 views

Can we use captials letters for vendor name

As per Magento 2 documentation can we use full capital letters for vendor name (i.e RSE). Also, can I get any Magento document for this?
0
votes
0answers
13 views

Magento2 ui component binding issue for file uploader in knockout template

I am using knockout file uploader in one of checkout step, please check below screenshot: below is my code to initialize file uploader but somehow its not working: <div class="reference-...
0
votes
1answer
18 views

Magento 2 : override Magento_Sales::email/items/creditmemo/default.phtml

What is the best way to override below template file in module ? Magento_Sales::email/items/creditmemo/default.phtml
0
votes
0answers
13 views

M2.4.2 - XML the footer HTML markup not coming altogether any clue?

Developing a new frontend using BS5, the issue with the layout XML keeps breaking, the footer HTML markup not coming altogether any clue? <?xml version="1.0"?> <page xmlns:xsi="...
1
vote
3answers
70 views

Error 404 on Magento 2.4.2 on Localhost

I have set up a localhost installation of Magento 2.4.2 community edition, now I am getting this error: 404 Not Found. I've got elasticsearch installed, a mysql database created but I can't even ...
1
vote
2answers
34 views

How to create an Observer for the OrderCommentSender class

I need to create an observer of the vendor/magento/module-sales/Model/Order/Email/Sender/OrderCommentSender.php class, at the send() method (83th line), so that I can append a customized comment in ...
0
votes
2answers
27 views

Magento 2: What is the proper way to apply patch inside m2-hotfixes directory?

I searched on google and found a patch. I created the patch dilw and placed it into m2-hotfixes directory. Can Anyone help on it?. Which Command I should use to apply the patch file inside that ...
0
votes
2answers
14 views

Vimeo video cannot insert in product page

I am trying to add Vimeo video on product page, but having error that saying video not found. I did check the video setting, it is fine and open to public. Anyone know why?
0
votes
2answers
27 views

How to divide the product view into 3 columns in magento 2?

I want to divide the product view into 3 corresponding columns, could anyone please help me solve this problem. thanks
1
vote
1answer
34 views

Magento 2 how to show catalog/product/list.phtml in Custom Module collection

Magento 2 how to show catalog/product/list.phtml in Custom Module popup with custom filter product collection Anyone know how to do this ?
2
votes
1answer
45 views

Magento 2.4.2 composer install PHP extension errors

I am trying to set up a local Magento 2.4.2 instance just to experiment and develop some work, but I keep hitting a problem with PHP extensions when I run composer create-project --repository-url=...
0
votes
1answer
42 views

Add customer groups in Magento 2 programically

Change customer group based on how many orders they've done. Silver 1-4 orders Gold 5-6 orders Emerald >10 orders You need to add those groups to Magento(programmatically) and ensure that every ...
1
vote
0answers
14 views

Show custom grid and chooser inside product edit UI form

I want to show a grid inside product edit UI form under a fieldset Related Blog Post. This section would allow choosing a list of related blog posts for a product. I am using a custom module for blog ...
1
vote
1answer
39 views

Show all modules used in a page

Is it is possible to check all the modules used for a particular page in magento2?
1
vote
1answer
46 views

Percentage discounts using cart price rules being calculated incorrectly

I'm running a Magento instance of 2.3.6-p1 using PHP 7.3 and having issues with Magento not calculating the discounts correctly. How I tested Set discounts to be applied before tax in the admin Set ...
0
votes
0answers
14 views

How Can I Change Dimension Of Gallery Thumbnail Image Product Detail In Magento 2?

I Need Make That Image Small. How Can I Change Dimension Of Gallery Thumbnail Image Product Detail In Magento 2 That's Gallery Thumbnail Image Need Small It Any One Help Me.

1
2 3 4 5
860