Vyacheslav Shmal
  • Member for 5 years, 8 months
  • Last seen this week
Magento 2: Data printed in Controller but display null in observer
Accepted answer
3 votes

I think the problem is that you must pass key => value and you pass like two array items. Here is from core code. $this->eventManager->dispatch( '...

View answer
Magento 2 product image in new order email
3 votes

As addition to Ricardo Martins answer. I had to show the children product image of configurable products. Here is the code for those who have the same problem . <?php if($childProd = current($...

View answer
getLastRealOrderId() always return null for custom payment methods on 2.4.2
1 votes

I had a simmilar problem some time ago. I havent found the perfect solution yet but for now I have implemented a solution which solve the issue partialy. When the payment method returns to custom ...

View answer
M2: Preventing double cart entries when clicking "Add to Cart" twice
Accepted answer
1 votes

By default Magento 2 has this functionality maybe your theme haven't implemented correctly the add to cart in the frontend. here is the addtocart.phtml <?php /** * Copyright © Magento, Inc. All ...

View answer
How can i hide specific shipping method for specific customer group in magento 2
1 votes

I haven't done something similar but as I checked the code right now, you can create an after Plugin for this method \Magento\Shipping\Model\CarrierFactory::createIfActive or also this method \Magento\...

View answer
Fetching SKUs containing a "/" (forward slash character) from the /rest/v1/products/ REST API endpoint?
Accepted answer
1 votes

There was a similar question some years ago, here is the answer , I think it will help you.

View answer
How can solve Magento 2 Custom REST API returns Error?
Accepted answer
1 votes

Usually the 500 error code its from the server, so as I see it its from PHP compiling. The problem is with MyCompany\Slider\Api\SlidesRepositoryInterface , have you implemented it correctly, does it ...

View answer
Searching by SKU doesnt work
1 votes

I believe you have solved your issue , from the version of M2 your are referring. Although I'm posting this solution, in case someone did not find a solution yet. I had similar problem and found out ...

View answer
Magento 2 does not allow Special characters in First Name & Last name even though the Input Validation is None
0 votes

In \Magento\Customer\Model\Validator\Name::isValidName Magento matches the first name of the customer with the regex pattern private const PATTERN_NAME = '/(?:[\p{L}\p{M}\,\-\_\.\'\s\d]){1,255}+/u'; /...

View answer
Add dynamic class for product li item in magento2 checkout
0 votes

Have you tried overwriting the vendor/magento/module-checkout/view/frontend/web/template/summary/cart-items.html And change the html element with minicart-items class. <div class="block items-...

View answer
mini cart is not showing count and product added in cart?
0 votes

Well , first of all, its not best practice to render blocks like that. The correct way is to add the blocks on the layout xmls like default.xml. For the problem you have, if you look in the layout ...

View answer
How to add placeholder checkout page Filed magento 2
0 votes

I had a similar task some time ago, here is how I achieved it. Create a plugin for Magento\Checkout\Block\Checkout\LayoutProcessor Vendor/Module/etc/frontend/di.xml <?xml version="1.0" ?&...

View answer
Magento 2 get categories by store Query
0 votes

First of all the value of the attribute is_active which correctly you found the id 46 can be in one or more rows for the same category. Lets take an example: Lets assume the Category with the ...

View answer
Max length as input validation for product name attribute
0 votes

In the table eav_attribute there is column frontend_class where right now, the value for the name attribute is validate-length maximum-length-255 you can change the value of the maximum-length-255 ...

View answer
magento event not fireing with graphql
0 votes

#1 First Solution Well as I looked it up, the event customer_register_success executes only when the form submits to the url customer/account/createpost here is the controller\Magento\Customer\...

View answer
Stock Management in Magento 2
0 votes

I think you want to update the stock for a product programmaticaly, here is an example console command that I have done recently that you can use. Also here is the link to how to create a console ...

View answer
How to upload mp4 video using wyswing editor in Magento 2
0 votes

Although I haven't done it with the video files, I have done some changes to wysiwyg in a project. Maybe I could guide you to the right direction. Something to know as of Magento 2.3.x versions the ...

View answer
Magento 2: How to display the list of manufacturers in a drop-down
Accepted answer
0 votes

If I understand correctly, you want to show the options for a select UI component. I think this question have been answered here maybe this will help you.

View answer
How to quickly tell if a Magento site is version 1.x or 2.x?
0 votes

You can also add to the end of the url "/magento_version", this show only for Magento 2 , the version it uses. Request: http://<magento2-store>/magento_version Response: Magento/2.3 (...

View answer
Update product price before placing order
0 votes

Had recently a similar problem, and couldn’t find somewhere a good solution for it. Here what I have done. I rewrited the method “saveOrderAction” in the checkout Controller “...

View answer