Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

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

PHP Fatal error: Uncaught Error: Class 'Magento\Framework\Stdlib\Cookie\PublicCookieMetadata' not found

I am watching this error in my nginx(fpm-php7.1.web.log) file.Can anyone help me why this is error occurs and how we resolved it. The complete error is: [31-Aug-2020 04:21:05 UTC] PHP Fatal error: ...
0
votes
0answers
55 views

Magento 2: Add datepicker in massaction field in block grid

I am trying to show the date picker in the mass action field in the custom block grid. Here is my code: $this->getMassactionBlock()->addItem( 'update_eta', [ 'label' =>...
0
votes
0answers
29 views

Payment credit card fields not visible in safari browser in Magento 2.2.5

I'm working on a project in Magento-2.2.5 but on checkout the payment method add cards and other fields does not appear. This issue only occurs in safari browser, in other all browser it works fine. ...
-1
votes
1answer
37 views

Magento 2: Plugin is not working on server while it's working fine on localhost

Here I have created a plugin to stop the order mail notification for some specific payment. This plugin is working fine on my localhost but not working on server. My di.xml file codes: <?xml ...
0
votes
1answer
425 views

How can I disable customer emails when order create using rest api in Magento 2

Is there an API call or cart/quote setting I can use to turn off customer notifications just for the order confirmation? I create order using this api Method:PUT url: http://localhost/testproject/...
0
votes
0answers
9 views

minicart displaying 0 and not displaying products

Hi I have an issue with my minicart when I open this it displays a zero and does not display the product details. I have tried to work out where the problem is but cannot seem to resolve the error. ...
0
votes
0answers
25 views

Shipping Method - call method only when specific condition is met

I have an option on a web store to order a sample of a product/s and it is shipped for free via the default Free Shipping option. Only samples alone are free shipping, if a product & a sample is ...
0
votes
0answers
64 views

Override Magento_UI field and add custom js

I'm trying to override vendor/magento/module-ui/view/frontend/web/templates/form/field.html and apply a custom function from a custom js file. But the problem is I don't know how to link that custom ...
0
votes
1answer
11 views

How to Customize No shipping method available in Magento 2

I would like to add a different error message and ask the customer to contact us for a quote If no shipping method is available, how can I customize this option, please check attached image and if ...
1
vote
0answers
49 views

Cart rule not working for same product with different custom option

In Magento 2.3, If I added a product 2 times with different custom option value and I have a cart rule with no coupon is: if quantity is >= 20 then 10% coupon should apply. Now scenario is I have ...
1
vote
0answers
37 views

Magento 2 Rest API - How to add custom comment option to Cart Item

I am using Magento 2 default quoteCartItem Rest APIs to add and update items in cart. I want to add custom comment option in cart. Any custom module to send comment using rest API. I'm new in magento ...
0
votes
0answers
18 views

Magento 2.2.3 Group Product display out of stock in frontend side

I have created one group product and assign simple product in that. All simple product qty and status is enable. But group product display out of stock and not display Add to Cart button
1
vote
1answer
95 views

Magento 2 Order Email Template subTotal tfoot colspan Edit

Where Can I edit the Order Email Template subTotal tfoot ??? I need to edit colspan 2 to 3. please check the image
0
votes
0answers
42 views

How to Get Product Image data in Order API Magento 2?

Get /V1/orders/{id} This API Returns information for the order for a specified customer. How to get Order Item Images
2
votes
1answer
155 views

Item (Magento\Wishlist\Model\Item) with the same ID X already exists

I am having a strange problem with my Magento installation. As soon as I add a product to my wishlist (any customer), I am getting the following error in the browser's console: Item (Magento\Wishlist\...
1
vote
0answers
68 views

Magento 2 sitemap url does not work after we add any rewrite rule in root htaccess file

Our sitemap URL works fine at /sitemap/sitemap.xml but as soon as we add any rewrite rule in root .htaccess file then it gives status code 404 page not found. RewriteRule ^abc/(.*)?$ /media/doc/files/...
1
vote
0answers
14 views

Products appear 'In Stock' only after re-saving

Certain products are listed as 'Out of Stock' on the front-end till I manually open the product and hit save. Sometimes it's configurable products, but most often it's one or two simple products. I ...
1
vote
1answer
36 views

How to Display Cross Sell Products on Products Details Page Under tab Section?

I am trying to add cross sell products under product details page tab section, and using below code but not working in magento 2.3.5 <block class="Magento\Checkout\Block\Cart\Crosssell" ...
0
votes
0answers
17 views

URL rewrites duplicate problem

I get an error like: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'hracky/elektricke/bburago-range-rover-sport-black-d5848030-evoqu' for key '...
0
votes
1answer
92 views

Upgrading from Magento 2.2 to 2.3 Undefined index

I created a new installation of a Magento 2.3.5-p2 and I want to use or get the data from a database that were used in a Magento 2.2 installation. I corrected the type from some tables that could not ...
0
votes
0answers
8 views

Getting issue to override block function getCarriers() in magento 2

I am overriding block Magento\Shipping\Block\Adminhtml\Order\Tracking function name getCarriers(). I want to show custom carrier trackers in dropdown when generate shipment or view shipment. If I am ...
0
votes
0answers
45 views

show all checkout page error in popup or alertbox for mobile device magento 2.2.4

In magento for mobile device when any error occurs , it is not shown to customer properly and it disappear so quick that the customer has no idea why the checkout is not working , so the client want ...
0
votes
0answers
11 views

why function getRequiredCharacterClassesNumber() and getMinimumPasswordLength() return Null on company registration page

why function getRequiredCharacterClassesNumber() and getMinimumPasswordLength() return Null on company registration page but on register regular user can return number
0
votes
0answers
21 views

How to make my own module for attribute sets for magento backend?

Hello I´ve made my own module for magento backend for a new attribute set module from the menu just like the one magento uses, but I don´t know how to get the list for the attribute sets to print it, ...
0
votes
0answers
14 views

How to override JS with Module in Magento 2.2

I've seen a couple of questions about this and ending coming up with a module properly installed with a /Custom/AgreementPage/view/frontend/web/js/view/checkout-agreements.js with just a console log ...
0
votes
0answers
36 views

Magento 2: How to sort products by discount

I want to add a new custom option "Discount" inside Sort By dropdown on category page so that I can sort the discounted products from sort by options. Please help, How can I implement this ...
0
votes
0answers
21 views

Email template settings are not changing - magento 2

I am trying to change the order comment email template from backend Sale->sales email -> Order comment -> selecting an email template but not getting saved.
0
votes
0answers
47 views

Magento 2 - Can't upgrade Magento Version from 2.2.2 to 2.3.5

When I try to upgrade Magento Version from 2.2.2 to 2.3.5 by command lines: composer require magento/product-community-edition=2.3.5 --no-update composer require --dev phpunit/phpunit:~6.2.0 ...
1
vote
1answer
126 views

Magento 2: Zendframework dependency not installed

We're running Magento2 v2.2.10. And we're deploying the repo using Capistrano but it fails during bin/magento tasks. An abstract factory could not create an instance of ...
0
votes
0answers
15 views

Magento 2 Wrong order subtotal calculation

Price 13.36,subtotal is 668.07, but it should be 668. All modules with custom price were disabled and the issue still here. Could you give me advice on where I could start to search? Any ideas?
0
votes
1answer
124 views

Instructions in a Custom Offline Payment not showing

I am building a custom offline payment for magento 2.2.2 After a week working on this I gave up and I am asking for help. The extension works fine the only problem I have is to be able to display the ...
0
votes
0answers
489 views

Overriding add cart controller in magento 2

I am trying to Override cart Add.php execute the function and I have created a new module and user preference for it. Very First I have created routes.xml in etc directory of my module. Samaa/...
0
votes
0answers
20 views

Magento CE 2.2 - Cookies/Cache/Session issue when Server Load overloads

Aside from the obvious answer of upgrading the amount of CPUs on our webhost to alleviate the traffic and prevent Server Load overloads, we are trying to find out what we can do about the cache/cookie/...
0
votes
0answers
268 views

How to set customer first name email template after creating new account in Magento 2

I want to set customer first name on transactions email after create new customer account in magento2 I tried this line but that did not work {{trans "Dear %name," name=$Firstname}}
0
votes
0answers
76 views

Magneto admin Url is not working . Need to clear cache always

I am using magneto 2.2.6 . The website is working fine until i installed new extension . When the time of installation i run the following command php bin/magento setup:upgrade php bin/magento ...
0
votes
0answers
22 views

Magento 2 : If order payment is not successfully then Not Send Order email Customer and Admin?

If order payment is not successfully then Not Send Order email Customer and Admin both?we have face this issue if we have place order payment is not success then order email is not send by customer ...
0
votes
0answers
489 views

Create an info_buyRequest

I like to use a custom function getProductFinalPrice public function getProductFinalPrice($item, $forReindex = false, $storeId = null) { if (!$this->getDataHelper()->isEnabled()) return; ...
0
votes
1answer
62 views

Error when using command setup:di:compile .Sm/CartQuickPro

Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 70.0 MiB Fatal error: Interface 'Magento\Framework\App\Action\HttpPostActionInterface' not found in /var/www/html/...
0
votes
0answers
16 views

Redirecting when submitting a Contact Form

I have a Contact page on Magento 2. After I try submitting the Contact Form, it redirects me to the page website.com/contact/index/index/ saying the Captcha is incorrect. Then when I submit it there, ...
0
votes
0answers
18 views

Magento 2 JS Checkout unused parameters

The question is about this file: vendor/magento/module-checkout/view/frontend/web/js/action/set-payment-information.js File source code: define([ 'Magento_Checkout/js/model/quote', '...
0
votes
0answers
214 views

Trouble when installing Social Login from Amasty

I'm trying to install a plugin Social Login extension from Amasty on my Magento 2 website, but when I run the command composer require hybridauth/hybridauth ^2.15.1, I get the error: [user@website]$ ...
1
vote
0answers
60 views

Brain tree SDK update

Braintree suggesting to upgrade the SDK file. Is that necessary for Magento 2.2.x version? https://developers.braintreepayments.com/reference/general/best-practices/php Magento not released any ...
0
votes
1answer
12 views

Trouble sorted pages index google

I currently have the mageplaza layered navigation extension on my site in Magento 2.2.9 and I have a problem : Google indexes all the filter pages. I blocked some of them via the robots.txt but ...
0
votes
2answers
47 views

Warning Count Magento 2.2 & PHP 7.2

I receive the warning after upgrading to PHP 7.2 while running magento still in 2.2. Warning: count(): Parameter must be an array or an object that implements Countable in /vendor/magento/module-...
0
votes
0answers
146 views

mobile view image quality as blurry in product list and details page magento 2.2.4

Image quality blurry issue in mobile view product list/details page. magento ver is 2.2.4. I found the reason for this issue. Having 2 MB image file and product uploaded in admin side. Then i can see ...
0
votes
1answer
72 views

external images link magento 2.2

I'm trying to show images from external images in catalog search results I created a text attribute containing the full path URL named custom_image for each product This phtml is responsible to ...
0
votes
2answers
36 views

How to add 3 templates to custom tabs

I have 3 blocks that are in the cms block and displayed on the cms page. How to place each block in a separate custom tab Tabs stretched to full page 3 templates: app/code/Qqq/Wwwww/view/frontend/...
0
votes
1answer
145 views

Magento 2 - Override Configurable Product Attribute Label

In Magento 1.9 you used to be able to override the label for an attribute used in a configurable product (see below): For example in the image above the default attribute label is Hanging Display ...
0
votes
2answers
88 views

Undefined variable: productImageBase

I have this issue when I click on a category: Undefined variable: productImageBase...product/list.phtml on line 208. Any idea? <?php /** * Copyright © 2015 Magento. All rights reserved. * See ...
0
votes
1answer
38 views

Magento 2 is not showing product in categroy pages

I use Magento 2.2.2 and since yesterday I can't see any products in category pages. products are available individually but not available in any category pages I've done these solutions but still, it'...

1
2
3 4 5
49