Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

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

Magento 2: Invoice capture programmatically not working in magento 2.2

I am trying to capture payment online but it's not capturing. I am working with Magento 2.2. Not sure why this code does not work even the same code works with the latest version of Magento. public ...
0
votes
0answers
28 views

Magento 2.2.8 Add products to Collection

I'm trying to have specific products show up even if the stock status is 0. I'm adding products with my special attribute to the collection on /gear/bags.html. The query gets created correctly and the ...
1
vote
2answers
119 views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
0
votes
0answers
9 views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
0
votes
0answers
5 views

Magento 2.2.4 - checkout/cart get shipping rates via AJAX

Version 2.2.4 seems to have a buggy form post on checkout/cart to update shipping rates. I have other stores using 2.3.* that work fine. I am trying to run defaultProcessor.getRates() on a JavaScript ...
1
vote
1answer
66 views

M2: Using small PHP script in .html file (or) Changing .html file to .phtml

We are running into an issue where we need to run a little php script within a .html file in Magento 2, namely; /app/design/frontend/CleverSoft/core/Magento_Checkout/web/template/minicart/content.html ...
0
votes
0answers
16 views

Magento2 Authorize.net Module Issue

In magento 2.2.7, Authorize.net payment throwing below error while clicking place order, in live mode - Error getting valid response from api. Check log file for error details and in sandbox mode - ...
0
votes
0answers
15 views

How to extend magento 2 product rest api

I am trying to get the value of product searchCriteria in the custom module. By using that value I need to add some data in response API @return \Magento\Catalog\Api\Data\ProductInterface Now custom ...
0
votes
0answers
13 views

How to update all bundle products

How to add a new Bundle item to all products? Is there a way in Magento to update all of these products? I have not found a normal example at the moment
0
votes
0answers
7 views

Add new option for existing bundle products

Can't find an example for adding new Bundle Items to existing Bundle products. I'm looking for an implementation like Upgrade Script or something similar, but I found an implementation for magento 1 ...
0
votes
0answers
12 views

Cart Price Rule - Magento 2.4

I am using Magento 2.4, I am creating Cart Price Rule for conditional free shipping. I am not using any Tax in my website. I am just adding condition in Subtotal, If cart subtotal is greater than ...
0
votes
0answers
43 views

Magento 2.2.9. Sales Order Grid. Order & Filter by column not in database

I´m trying to create a new calculated colunm on sales order grid. This column must indicate if all the products in the order are in stock at the moment the grid is displayed. I managed to create the ...
0
votes
0answers
11 views

Update all bundle products add new options and add products to this option by id?

I have 50 bundle products. I need to add a new option to all products, and add products by id to it, how can I implement this programmatically? Magento 2.2.2
0
votes
1answer
13 views

How to add a Gift Card type product to the cart via REST API?

I can't work out the syntax for adding a Gift Card product to the cart using the POST /rest/V1/carts/mine/items REST API endpoint. What product options need setting? I gather that it needs giftcard ...
0
votes
1answer
24 views

Time to first Byte takes over 3 seconds on home page, Fully load time 14s - Magento 2

The site was working fine until recently, the loading speed has dramatically increase, visitor get Internal 500 from time to time. First i thought it was the recent extension I installed, Marisvit ...
2
votes
2answers
41 views

Success page redirection issue

$this->checkoutSession->getLastSuccessQuoteId() $this->checkoutSession->getLastQuoteId() $this->checkoutSession->getLastOrderId() These things always returns false after payment ...
0
votes
0answers
7 views

Remove Layered Navigation for specific category in Magento 2.2.11

My version of 2.2.11 has the new system for Custom Layout Updates where you upload the the layout in app/design/frontend/Theme_Vendor/Theme_Name/Magento_Catalog/layout I need to disable the display of ...
0
votes
0answers
6 views

Magento225 Default Shipping Methods Are not showing in frontend

i have unable magento225 default shipping method knows ans flatrate, but it is not showing on frontend. does anyone have idea ,how i can show ? below is the settings https://i.stack.imgur.com/VROSE....
0
votes
1answer
11 views

Insert shipping address to an existing order in Magento 2.2

I am trying to insert billing & shipping address for some existing orders. We had a product mistakenly set as virtual product and some customers purchased it. Now I need to manually insert their ...
0
votes
0answers
17 views

V1/customers/me rest endpoint returning same response for each request

I am working on magento2.2.6, Rest api endpoing V1/customers/me returning a single response for each token. I have generated tokens for different users, but it always return the same response, even ...
1
vote
1answer
29 views

Magento 2 - Catalog rules cronjob stuck at working with increased number of backlogs

Catalog Rule Product, it always shows as working and and 735 in backlog Tried these but didn't work for me: Reindexing Changed state to "Update on Save" then revert back to scheduled Wait ...
0
votes
2answers
42 views

Magento 2.2.11 - How to add attachment to an email, Call to undefined method Magento\Framework\Mail\Message\Interceptor::createAttachment() error

I have installed the pdf invoice Extension in Magento 2.2.11. I'm getting this error while placing the order, Call to undefined method Magento\Framework\Mail\Message\Interceptor::createAttachment() ...
0
votes
0answers
16 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
30 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
23 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
26 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
110 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
21 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
28 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
47 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
17 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
13 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
23 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
24 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
1
vote
1answer
76 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
36 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
13 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
23 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
15 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
45 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
5 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
26 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
9 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
19 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
12 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
21 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
16 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
41 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
2 3 4 5
49