Questions tagged [magento2.2]

Questions related to Magento 2.2 version of PHP eCommerce software and platform. Questions should be related to writing code for Magento. General Magento questions may be asked on https://magento.stackexchange.com

General Magento questions may be asked on Magento.SE. Questions not related to programming are off-topic


Related tags


233 questions
5
votes
3 answers

Magento 2 Label translation showing braces

Labels showing multiple translations between double curly-braces. I have this problem both on the front and backend of Magento 2. This is what I've tried so far: Cleared and flushed the cache re-deployed static content Updated Magento 2.2.5 to…
Leon
  • 51
  • 5
5
votes
4 answers
5
votes
1 answer

Magento 2 custom address attribute not loading in address book in checkout page

I created a Magento Module to 2.2.4 and 2.2.3 version that add a custom attribute in Shipping Address and Customer Address. The attribute works fine when new address is created in checkout page show my custom attribute and save in order address and…
5
votes
2 answers

How to Conditionally remove Block or Container from Layout programatically?

If any one want to remove container (block) like product.info.main from Product Detail Page based on certain conditions or product has attribute with value assigned. Then what is the best approach for achieving This? Thanks
Nilesh Tighare
  • 915
  • 1
  • 9
  • 22
4
votes
0 answers

Undefined index: Magento\Framework\App\State with NewRelic module in Magento 2.2.6

I have 2 modules that uses Plugins for Magento\Framework\App\State::afterSetAreaCode Whenever both of the modules are enabled Magento throws: 1 exception(s): Exception #0 (Exception): Notice: Undefined index: Magento\Framework\App\State in…
Marrbacca
  • 137
  • 1
  • 10
4
votes
1 answer

Customer custom attribute using EAV is not displaying values in Grid

Scenario I'm trying to implement a custom attribute for Magento Customer, that should accept boolean values (True/False, Yes/No...). I'm using Magento CE 2.2.4. This is part of a custom Module under /app/code/TheVendor_TheModule/. The other…
3
votes
0 answers

Magento 2 API for Add a Group product to a cart

I need API to add a Group Product to a cart. I have checked documentation for this on the link below: https://devdocs.magento.com/guides/v2.3/rest/tutorials/orders/order-add-items.html There is nothing is mentioned for how to add a Group Product to…
Renu
  • 31
  • 1
3
votes
3 answers

Run cron job on cpanel with php7 version

I want to setup cron job on cpanel admin with php7 version. My php script for cron requires php 7.0 or above to run. The problem is that the path to php7 cannot be found. I have already selected php 7.0 as current version in cpanel. I do not have…
Prabhu
  • 5,296
  • 4
  • 37
  • 45
3
votes
0 answers

Why is my Magento2 di.xml not having any effect?

I've overridden \Magento\Checkout\Block\Cart\Item\Renderer and when I add this to the end of config in /app/etc/di.xml the override works.
dubloons
  • 1,136
  • 2
  • 12
  • 25
3
votes
4 answers

Magento 2.2.4 generation does not exists

I have installed Magento 2.2.4 with composer. Everything is working but when I am running this command. php bin/magento setup:di:compile It is giving me an error **[RuntimeException] Source class "\Magento\Payment\Model\Method\Virtual"…
nb171994
  • 31
  • 1
  • 9
3
votes
1 answer

GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context

My Magento version is 2.2.3. We are using a Google Cloud SQL 2nd gen instance. Facing error while run indexing command General error: 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed…
Prashant Valanda
  • 480
  • 8
  • 19
3
votes
3 answers

Magento 2 : How to get product attributes collection in custom module block file whose status is visible =>yes?

Here is my function for calling product attribute collection I have already get product attributes for the product's which are enabled but I am having issue in filtering them according to their own visibility i.e I want only those product attributes…
Kirmal Brar
  • 397
  • 1
  • 2
  • 17
3
votes
4 answers

How to fix an error related to Zend parameters?

I have a fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ArrayAccess::offsetUnset)…
Rafiqul Islam
  • 131
  • 1
  • 6
2
votes
0 answers

Page builder error after Upgrade from Magento 2.3.3 to Magento 2.4.2 on admin

I am getting the following error after upgrading my website to Magento 2.4.2. I navigated to Content > Pages. After that, I am getting this issue in the console. Page keeps on loading. Error : Could not load content for…
rashi
  • 125
  • 1
  • 14
2
votes
0 answers

Magento 2 Checkout template translation not working

Any idea why the Magento_Checkout template retrieves translation from Magento_Customer? Is there a way to force the template to use the specific entry for Magento_Checkout ? Here is the path of template and the html code in…
Chris
  • 21
  • 1
1
2 3
15 16