Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0
votes
3answers
922 views

Redirecting to setup page problem

I'm trying to access my already existing website that was clone from our repository. Now upon access it keeps on redirecting me to the Setup page. I'm not sure what happen but I already some suggested ...
3
votes
3answers
9k views

Magento 2 How to get product collection of all products?

I am trying to fetch the product collection in Magento 2 which return the all products including -> with all instock and out of stock products -> with all Visibility (Not Visible Individually,...
2
votes
1answer
932 views

Magento 2 - Failed Authorize.net Transactions Are Not Being Canceled and Not Getting a Response from Auth.net

I have a pair of sites I manage that are on Magento 2.2.4 and 2.2.5. Both are using Authorize.net Direct Post and I have applied the Authorize.net MD5 patch from Magento to utilize the signature key ...
0
votes
1answer
940 views

Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed()

I'm getting an error Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed() when running integration tests on my local development environment. For some reason it ...
0
votes
1answer
1k views

Magento 2.2 - Cannot update attribute values

I've created some custom product attributes with REST API, correctly populated them and assigned values to products. Everything works fine in dev environment whereas I got difficulties in staging ...
0
votes
1answer
907 views

Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowed

I need some help after installing a third party theme I got this: I've looked up for similar topics on the forum but since I'm a newbie I don't get exactly where to find and how to remove the 'after' ...
1
vote
2answers
988 views

Close modal popup gracefully in magento2

I am using Magento modal popup for various functionalities in checkout. I am working on an address validation module which fetches the corrected address from USPS API and displays the corrected ...
0
votes
1answer
9 views

Custom Grid Date filter format problem on search

I'm trying to format the display and also the datepicker value when selecting the date in Filter for my custom grid. Now the display works fine the only problem is when I filter it, it doesn't work as ...
0
votes
1answer
868 views

Detail page - Display configurable product's thumbnail images even when an option is selected!

So let's say I have a configurable product having an option of colour with 2 values: Black, White. I want to make the thumbnail images of the parent product stay, even when I select any colour. Here ...
0
votes
1answer
47 views

Magento 2 tier price is not showing with tax

<?php if($_product->getTierPrice()){ foreach ($tierPrice as $key => $value) { $qty = (int)$value['price_qty']; $price = $value['price']; $formattedTierPrice = $...
0
votes
2answers
860 views

Enable disabled functionality is not working in magento 2

I am trying to enable/disable Magento 2 from admin general setting. I created an option to disabled / enabled module from backend > configuration > module > enable (Yes/No) when I tried to disabled ...
0
votes
1answer
950 views

magento with nginx not found page show as defualt one with one magento html

when i type any invlaid url it shows like below instead i want to show my website page current setting of nginx.conf (in magento root folder) root $MAGE_ROOT/pub; index index.php; autoindex off; ...
0
votes
0answers
13 views

Why Google can no longer find my homepage when I do a google search but in Google search console finds the URL and reports no issues

My website which is on a Magento 2.3 platform has ranked on the 1st page of Google around the number 4 position for several years so I know it functions well and is properly optimised. A week ago a ...
6
votes
4answers
17k views

Magento 2: setdata() is not saving the values into the database

Controller file Post.php <?php namespace QaisarSatti\HelloWorld\Controller\Index; class Post extends \Magento\Framework\App\Action\Action { protected $_objectManager; protected $hello;...
2
votes
1answer
3k views

Oauth 2.0 in Magento 2.2 with how to access the token

Can please give example to access the magento 2 api by using oauth 2
0
votes
1answer
25 views

Create product with custom option (Field type ) using rest api not saving

I am trying to create simple product with custom option(Field type) using rest api but custom option is not saving with product endpoint rest/V1/products. request body { "product": { ...
0
votes
1answer
23 views

Create product with custom option using rest api

I am trying to create simple product with custom option using rest api but custom option is not saving with product endpoint rest/V1/products. anything missing here Here is my request body { &...
5
votes
1answer
560 views

Difference between SearchCriteria VS SearchResults Vs SearchCriteriaBuilder and when should we use it?

For searching in repositories we are using searchCriteriaInterface but i noticed sometimes we are using SearchCriteriaBuilder as well. In which case we should use searchCriteriaBuilder? What's the ...
2
votes
1answer
1k views

Cannot Read Property “quoteData” of undefined magento 2.2.2

How do I fix Magento 2.2.2 Cannot Read Property “quoteData” of undefined Issue? Please give me flexible solution for this issue.
0
votes
1answer
21 views

Product attribute create/update using rest api and assign it to attribute set

I am creating product attributes using rest API with the below request body. End point rest/V1/products/attributes/ { "attribute": { "is_wysiwyg_enabled": false, &...
8
votes
6answers
20k views

How to change currency format in Magento 2?

Currently the price shows like $2.999,00 I want the price to show like $2,999.00 for locale es_MX (spanish, Mexico) in product pages, anywhere else the currency format is correct. I've tried all ...
11
votes
1answer
1k views

Magento 2: Observer add product to cart?

I've read some other post about adding products to cart, but nothing seems to fit. I've an observer for checkout_cart_update_items_before that adds another product in same qty if specific product is ...
0
votes
0answers
23 views

Magento 2.2 - 502 Bad Gateway nginx/1.12.2

i have used AWS shared hosting. i'm getting bellow error on multi-vendor products edit. 502 Bad Gateway nginx/1.12.2 please help me solve this, its urgent. i'm only getting this error on production ...
0
votes
1answer
49 views

Magento 2. How to send confirmation email for two emails at once?

How to programmatically send an order confirmation email for two customer email addresses at once? I created additional customer attribute for "contact email" field and need send ...
1
vote
2answers
3k views

Programmatically updating quote items in magneto2

I'm trying to update quote programmatically. In controller file: public function execute() { $id = 298; $params['id'] = 298; $params['product'] = 6765; $params['...
11
votes
5answers
21k views

Magento 2 customer-data.js:90:23 [object Object]

I'm using Magento 2.2 with Porto theme and getting an [object Object] javascript error at customer-data.js line 90 in the console after logging into the store and refreshing the page or switching to ...
2
votes
7answers
12k views

We can't find products matching the selection

I just updated to 2.3.0 and when i try to open any category page -> instead of filters i'm getting "Compare products" and "My wishlist" + . instead of product list getting message "We can't find ...
0
votes
1answer
878 views

Request Response JSON in magento 2

I have modified form review as popup modal and have overrides the controller in my custom module, the review saved successfully in DB. I need to pass the response to the to JS in JSON format , Help me ...
5
votes
1answer
1k views

Pass data to child template in cart-items of checkout page

My site is a market place site where vendors(sellers can sell their product). Now i want to customize the to group items in cart by each vendor like this: http://prntscr.com/hmsam6 ...
2
votes
2answers
1k views

After Data Migration Product Listing Not Showing

I've migrated(using Magento tool) from M1.8.1.0 To M2.2.4, Migration has done but product listing not showing on M2 site while products have assigned to all categories successfully after migration. ...
0
votes
3answers
2k views

How to add formkey to a custom form?

I'm using the code... <?php echo $block->getBlockHtml('formkey') ?> inside my custom phtml file but all I get is blank ''. I see this same code used throughout Magento Core. How can I ...
1
vote
2answers
2k views

Magento 2 system variable for “Order Created at” for email templates

What is the email template system variable for "Order Created at" for Magento ver. 2.2.6? Using the variable name: {{var order.getCreatedAtFormated('long')}} doesn't work for me. This is a variable ...
1
vote
1answer
929 views

Magento2 does n't get the order collection from Order\CollectionFactory

I am using the Magento2.2 version . I am using the class Magento\Sales\Model\ResourceModel\Order\CollectionFactory; to get the order collection.But getting the error Fatal error: Uncaught Error: ...
0
votes
1answer
2k views

Cron Job Magento 2.2 fail - Class 'IntlDateFormatter' not found in

System set up: Magento 2.2 PHP version 7.1.13 fastcgi with Intl installed Ubuntu 16.04.2 LTS‬ Plesk version: 17.0.17 Elements to the cron set up magento.cron.log update.cron.log setup.cron.log ...
1
vote
1answer
790 views

Getting different result $collection->getData and foreach through $collection

I am facing some weird issue in the magento2 collection. function to get item collection public function getNewItems() { if ($this->_productsCache === null) { $items = $this->...
1
vote
1answer
898 views

shipping label not generate in magento 2

i want to genrate the shipping label in magento 2 but unable to generate the shipping label . every time i got this error . any one know about this please help There are no shipping labels related ...
3
votes
2answers
1k views

Key constraint error while importing simple products

I am getting an error when I am importing simple products in Magento 2.2. The error is : Category " has not been created. URL key for specified store already exists. in row(s): 1 General ...
1
vote
2answers
178 views

How can i get the order total value on success page easily? Magento 2.2

I am trying to get the order value from success.phtml page so that I can report it back in the facebook pixel. I am just looking for the simplest way to get the order value. Yes, a shortcut pretty ...
0
votes
1answer
830 views

Magento 2.2 - Need same images for different products

I need to make a configurable product with 4 Products ( A, B, C, D) of different colors. All the products have 4 photos but 3 of the photos are exactly the same in every product. They have exactly the ...
13
votes
4answers
7k views

How to solve indexer status “suspended” (n in backlog)

One of the indexers that are configured to be updated on schedule is locked in the state "suspended" and does not get updated anymore. Output of bin/magento indexer:status +-------------------------...
3
votes
1answer
1k views

Magento 2.2.1 “Sorry, but something went wrong. Please contact the seller.” Checkout using Authorized.net

Magento 2.2.1 : I have confirmed the transaction URLs, keys, and MD5 with Authorize.net. Transaction is processed and deducted from account. Order is created within Magento, and emails are sent. ...
1
vote
1answer
915 views

How to overrite cart subtotal price in order summary block magento2

can any one know that i want to update the price of the checkout page order summary Cart subtotal line. how can i do that ? knowckout file is render is subtotal.html : <tr class="totals"> ...
1
vote
1answer
2k views

Magento 2 extension attribute issue for Magento\Quote\Api\Data\AddressInterface

i am trying to add extension attribute for Magento\Quote\Api\Data\AddressInterface but i am facing below issue. Message: Property "Addressfiled" does not have corresponding setter in class "Magento\...
0
votes
1answer
2k views

command line user does not have read and write permissions on generated directory

command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line when I was trying to run php bin/magento indexer:...
2
votes
1answer
1k views

Magento 2 translate placeholder text

How I can translate placeholder text Enter your password * ? I need edit this code? <div class="form-group control-icon password required"> <i class="icon fa fa-key"></i> &...
1
vote
2answers
1k views

Magento 2.2.6 Anchor setting (ON / OFF) does not work in category setting

Magento 2.2.6 Anchor setting (ON / OFF) does not work in category setting. Please check the screenshot below. I have not found a solution. Could you please help me? nice to meet you.
5
votes
1answer
2k views

How to disable “Cron Job” logging into system.log file in Magento 2

My logs are being flooded with cron jobs updates. How can I disable this? [2019-02-27 06:28:02] main.INFO: Cron Job outdated_authentication_failures_cleanup is run [] [] [2019-02-27 06:28:02] main....
3
votes
2answers
1k views

Run Magento 2 inside a Docker Container

Is there a way to run my existing magento 2 project inside a docker container? I have an existing project that is run inside a vagrant but I'm encountering a lot of issue in the vagrant and we decided ...
3
votes
2answers
364 views

M2.2 - Get Total Image Count for All Products

I recently did a migration from M1 to M2, and with doing that, all images came along. Some products tend to have north of 10 images, and some more like 1-3. I am trying to find a simple and fast way ...
0
votes
2answers
105 views

Lazy loading in Cart page

How to implement lazy loading in checkout cart page ?

1
2 3 4 5
49