Questions tagged [magento2.4]

Denotes questions related to the features included in Magento version 2.4.x

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

Custom email directive as per Magento 2.4 docs example not working

While upgrading our email templates to comply with the security changes introduced in Magento 2.4.3-p2, I'm having trouble creating a custom directive as per the Magento docs. I tried to use the ...
user avatar
  • 21
0 votes
0 answers
16 views

add decimal place limit to 2 in subtotal amount sales order confirmation email magento2

i am using a custom template for order confirmation email resides in marketing->email templates-> order confirm template . i have td in template where im getting order subtotal from order ...
user avatar
1 vote
1 answer
26 views

Magento 2 - override Collapsible knockoutjs template located in base folder

app/code/Vendor/modulename/view/base/web/templates/dynamic-rows/templates/collapsible.html <div class="admin__field-control" data-role="grid-wrapper"> ...
user avatar
1 vote
1 answer
63 views

Magento2.4: How to get Salable quantity in list.phtml file?

How can i get salable quantity in list.phtml file, I want to show label on those products which have 0 salable quantity.
user avatar
0 votes
2 answers
133 views

How to install Magento 2.4.4 from archive with sample data?

i would like to know how to install Magento 2.4.4 starting from the archive with sample data. The archive can be downloaded here: https://magento.com/tech-resources/download#archive-releases While the ...
user avatar
  • 101
0 votes
1 answer
63 views

Magento2.4: Category page , if salable qty is 0 , show label on product

How to display a label on a product if the saleable quantity is zero with the code?
user avatar
1 vote
0 answers
24 views

Magento 2.4 Custom logger , log admin activity of product edit with code?

How do you log admin activity of the product edit page with code? create a logger which logs admin activity.
user avatar
0 votes
0 answers
40 views

How to add pdf in mail in Magento 2.4

I need to add pdf with email. I followed some forums but nothing works. Here is my code.By my code only template variables are coming but pdf attached in the form is not coming in the mail. When i use ...
user avatar
  • 33
1 vote
1 answer
28 views

How do I get all option value id's for a given attribute in a specific category in my custom block?

My shop has an attribute manufacturer. This attribute has option values like adidas and nike etc. I have a custom module with a block I placed the block on a specific category through a widget The ...
user avatar
  • 1,279
0 votes
0 answers
66 views

Magento 2 Youtube is not working for configurable product

Using Magento 2.4 version. On simple products, youtube works properly. but on configurable and their children's products youtube is not working. Does Anyone face this type of issue?
user avatar
  • 1,143
0 votes
0 answers
21 views

List all pickup locations w/o Distance Priority Algorithm

is it possible to have a custom module to list all pickup (Stores>Inventory>Sources) locations in the checkout for In-Store Delivery method (not to rely on Distance Priority Algorithm)?
user avatar
  • 15
0 votes
0 answers
20 views

[Magento][2.4.3] Deduct source item on refund

I have config MSI for my store and I have some problem. When I call api /V1/invoice/:invoiceId/refund to refund my order with payment type is online payment (ex: paypal, ATM..) after refund success, ...
user avatar
0 votes
0 answers
25 views

How to attach pdf to mail in magento 2.4 and above

I have a form with upload file button. Once the customer submit the form i need to send mail to admin with user attached pdf.I tried different sollutions but nothing works. How to add Attachment is ...
user avatar
  • 33
0 votes
2 answers
37 views

Magento 2.4.2: How to stop a specific category page from being crawled?

Here’s the category page link: https://www.perfectmakeupmirrors.com/light-bulbs-and-parts.html I want it to appear in the site menu and be available to users. I just don’t want it crawled.Where in ...
user avatar
0 votes
1 answer
23 views

How do i get a full url inside a class that extends AbstractHelper using magento 2.4

I have a class that extends AbstractHelper In this class i make a curl call to an external site. In the payload i need to provide a link to a static css file that resides in my extensions directory. ...
user avatar
  • 103
0 votes
0 answers
9 views

Build Cahe programmatically in magento 2

We can clear cache programmatically but how to build cache programmatically. I want build blue green cache clear without taking downtime when we have huge cache.
user avatar
0 votes
1 answer
21 views

Magento 2: How to show price in decimal (Instead rounding) in cart items & cart summary?

In above image showing product price KWD0.245 but Summary section Subtotal showing KWD0.250 (Automatic roundup) , how to avoid subtotal automatic roundup. I want to show subtotal as KWD0.245. Thank ...
user avatar
0 votes
1 answer
51 views

How to add upload file button in custom form and send form details through Mail in magento 2

lI created a custom form and sending mail once submit the form.Now i need to add upload file button and send all form details through mail. i added input file tag in form but i have no idea how to ...
user avatar
  • 33
0 votes
0 answers
13 views

Magento 2: How To Override Mass action js For Current Module(works only for the current module)?

Magento 2: How To Override Mass action js For Current Module(works only for the current module)? Using the mixin I'm able to override core massactions.js but its working with other modules too. How ...
user avatar
  • 3
1 vote
0 answers
92 views

Magento 2.4.4 new email syntax

Previously I had been using the code below to get the payment method title of an order and placing it in an email {{var order.getPayment().getMethodInstance().getTitle()}} However, since the ...
user avatar
0 votes
0 answers
10 views

Dynamically update VAT Number field in customer address with the taxvat field in customer account information

I want to dynamically update customer address VAT number field with taxvat field from customer account information. My Magento version is 2.4, I tried event observer but it is not updating dynamically....
user avatar
  • 1
0 votes
0 answers
36 views

compile error after upgrading from 2.3 to 2.4

I have followed magento blog for updating magento version to 2.4. Composer update and setup upgrade has run successfully but when running setup:compile getting below error. Interface 'Laminas\...
user avatar
  • 346
0 votes
0 answers
20 views

Magento 2 custom shipping carrier validation does not trigger estimate shipping rate

I was trying to implement a custom shipping carrier validation to trigger estimate shipping rate endpoint following the steps here: https://devdocs.magento.com/guides/v2.4/howdoi/checkout/...
user avatar
  • 4,482
0 votes
1 answer
78 views

How to set special price for specific customer group Programmatically

Guys I'm wondering how to add a special price for a specific customer group? For example, I have a group called "Special Customers", I want to set 10% price increase on every product for ...
user avatar
0 votes
0 answers
14 views

How to stop the background from moving top of the page when popup model opens in Magento 2

I created a Popup modal. when user click on button i showing the popup form. But the Background is moving top of the page when the popup modal is opened. How to stop the background from moving top ...
user avatar
  • 33
0 votes
1 answer
31 views

How to use hypen symbols in custom module controller url in Magento 2?

I have form input where user can enter postcode. When they enter postcode i am redirecting other page (controller url-popup/action/index) and i showing postcode inforation in that page. But i need ...
user avatar
  • 33
0 votes
0 answers
53 views

Unknown connection name amqp

i have a magento 2.4.4 version and i'm bot able to complete checkout for followinmg critical error: [2022-04-21 14:46:45] main.CRITICAL: Unknown connection name amqp {"exception":"[...
user avatar
0 votes
1 answer
71 views

Magento 2.4.3-p1: Prices in frontend excluding tax but should be including tax

After upgrading the shop from version 2.3.2 to 2.4.3-p1 all the product prices in frontend are shown without tax. The price in backend is correct, all settings in Stores > Configuration > Sales &...
user avatar
  • 21
0 votes
3 answers
36 views

best way to run shell commands like "bin/magento c:f" by using cron job magento2

I want to run some shell commands like c:f , c:c etc by using cron.
user avatar
0 votes
0 answers
41 views

Magento 2.4 in Docker on Mac M1 can not create Customer or login , get Invalid request received

I have magento 2.4 up and running in Docker on a macbook pro M1. The site comes up, but if i try to login as a customer or create a customer i get the error main.DEBUG: Request validation failed for ...
user avatar
  • 103
0 votes
0 answers
10 views

want to extend header links drop down to mobile as well

How can i extend header links dropdown to the mobile as well, now it is like this in desktop. same thing i need in mobile view also.
user avatar
0 votes
3 answers
450 views

Upgrade magento 2.4.3 to 2.4.4

Hello after reading many threads i read that following are the steps in order to update magento with composer composer require magento/product-community-edition=2.4.4 --no-update composer update As ...
user avatar
0 votes
1 answer
33 views

Magento 2 – Item with the same ID already exists

I am getting this error when try to open product Report. Anyone can help me on this How to i can fix this issue ? Thanks
user avatar
0 votes
1 answer
20 views

Links on header links

i been trying to add some links as shown in the picture...my intention is to add a phtml template block so i can easily modify in the future, how can i do this? i am using magento 2.4.4, i have tried ...
user avatar
0 votes
0 answers
55 views

Magento2.4: Minicart has no content

I'm working on a custom theme and having issues updating the minicart content. The minicart loads, but always says there are no items in the cart. If I continue towards the checkout page, there are ...
user avatar
0 votes
0 answers
19 views

How to load custom javascript user goes to shipping step on checkout magento 2

I want to load custom script whenever user goes to shipping section on checkout or came back from payment section to shipping section on checkout magento2.
user avatar
0 votes
2 answers
33 views

Magento 2.4 get template file in data patch

I'm trying to insert a template file as the content for the block I'm adding programmatically, but I'm not sure how this can be done. I've added the template file in view/frontend/templates/template-...
user avatar
0 votes
3 answers
105 views

Magento2.4 - stock quantity deducted twice in observer

I'm using Magento 2.4.3-p1 and I'm trying to decrease stock quantity with custom observer while placing an order, but salable quantity is decreasing twice, my events and observer file are this: etc/...
user avatar
0 votes
2 answers
158 views

Magento 2.4 Unable to apply data patch: Area code is not set

While executing below data patch with setup:upgrade the following error appears in the console. Unable to apply data patch Vendor\Module\Setup\Patch\Data\ModuleName for module Vendor_Module. Original ...
user avatar
0 votes
0 answers
101 views

error install module with composer: PluginManager.php(273) : eval()'d code line 188

I have a problem when installing a module with composer, no matter which module, I get the same error. (In PluginManager.php(273) : eval()'d code line 188) Magento v2.4, PHP 8.1 run composer require ...
user avatar
  • 101
0 votes
0 answers
44 views

Category being assigned to configurable and simple products

We've assigned only configurable products to the categories on our site and so far, we've been having zero issues with it, since only configurable products are shown on front-end and simple products ...
user avatar
  • 1
1 vote
0 answers
28 views

How do I include the stock item with the product collection

In magento-1.9 I would call $Products = Mage::getResourceModel('catalog/product_collection'); $products->setFlag('require_stock_items', true); And this would add the StockItem to every product in ...
user avatar
  • 1,716
0 votes
1 answer
43 views

because the "Hello World" module is not displayed magento 2.4.3

I am practicing with the development of mageplaza modules. following the steps of the blog, but I don't know if my InstallData.php is badly created, but nothing is loaded to the database. I have the ...
user avatar
0 votes
1 answer
12 views

Create Partial shipment in Magento2

I am getting error on creating an shipment TypeError: Argument 2 passed to Magento\Sales\Model\Order\Validation\ShipOrder::Magento\Sales\Model\Order\Validation\ {closure}() must be an instance of ...
user avatar
0 votes
0 answers
14 views

how to set different padding for invoice and order number in magento2?

i've made changes using di.xml file , related to module/sequnce.php . but that affects padding for both . I want invoice number like 1001 and order number like 10000001 . here i need different padding ...
user avatar
0 votes
0 answers
31 views

How to show thanku message only after user submit the popup form in magento 2 until refresh the page

I have contact us buttons more than one in a page. when the user click on the contact us button i am showing the popup form. After user submitting the form i am showing thanku div.But when the user ...
user avatar
  • 33
0 votes
1 answer
98 views

Magento 2 : CLI Commands are not working with Magento 2.4.2 after uprade php version to PHP 8

Working on Magento upgrade from 2.4.2 to 2.4.4. but somehow commands are not working after upgrading the PHP version to PHP 8.1. Please suggest some solution for the same.
user avatar
  • 511
0 votes
1 answer
15 views

Center Price on grid, and left on list

i am creating my own theme by learning by myself and i managed to center the content of the price, name, add to car button by adding this line on .product-item-details { text-align: center !important; ...
user avatar
0 votes
0 answers
63 views

How to sort by name all categories in my layered navigation?

I need to have all categories and subcategories ordered by name. How can I do it? Do I have to modify this file? app/design/VENDOR/THEME/Magento_Catalog/templates/navigation/left.phtml I've tried: $...
user avatar
0 votes
0 answers
61 views

magento 2.4 hide custom address attribute from billing address only

I've created a custom address attribute via \Setup\Patch\Data and it's showing correctly on address forms, both on customers and checkout. However, I'd like this attribute to be shown in shipping ...
user avatar
  • 129

1 2
3
4 5
25