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
2
votes
0 answers

How to remove simple product from cart by observer programmatically in magento 2.2?

I'm facing problem, I have added total 5 items in cart where 3 items are different colors of same configurable product and other 2 is simple products. When i try to remove simple product from cart by observer "checkout_cart_product_add_after" using…
2
votes
1 answer

Automatically send invoice email after order has been paid in Magento 2.2

I am trying to trigger the customer invoice mail after an order has been paid and the invoice has been created. The payment gateways are PayPal Plus (iways) and Amazon Pay. If I understood correctly, these gateways automatically create the invoice…
Ben
  • 100
  • 1
  • 7
2
votes
0 answers

Getting “DDL statements are not allowed in transactions ” error when re-index programmatically in magento 2.2.X

I am working on Magento 2.2.6. As per requirement I need to do re-index on sales_order_save_after event. It is working well in Magento 2.1.X but I am getting following error on Magento 2.2.X. Error: CRITICAL: User Error: DDL statements are not…
David Coder
  • 1,138
  • 2
  • 14
  • 48
2
votes
3 answers

Magento 2.2.6 update to Magento 2.3 Failed

Preconditions Magento 2.2.6 Current PHP Version: PHP 7.1.22 Steps to reproduce Go to System > Web Setup Wizard Click on system upgrades Start the update process. The update process will stop at step 2 with the below error message: Check Component…
Abe
  • 391
  • 2
  • 20
2
votes
0 answers

Setup multiple Stores, Store views and domains on NGINX

I was trying to setup multi stores and store views with different domains on NGINX. Here is the structure of my website (sorry, I really don't know how to use the list): Main Website (only one) clothes (store) clothes_vi (store view, desired…
Mee
  • 223
  • 4
  • 13
2
votes
4 answers

I can't delete the folder generated/code in Magento 2.2.6

I use Docker for my project. After installing the 2.2.6 package with sample data, it gives me problems like the following when I execute php bin/magento cache:clean The file…
Chen Hanhan
  • 1,549
  • 6
  • 15
  • 20
2
votes
2 answers

How to check email aleady exist using ajax in magento 2

Controller Email.PHP ` public function execute() { $customerEmail=$this->getRequest()->getParam('email'); $objectManager=\Magento\Framework\App\ObjectManager::getInstance(); $CustomerModel =…
Ravindra
  • 309
  • 3
  • 11
2
votes
1 answer

Magento 2.2: Child product of Configurable product missing attributes

When I examine the contents of $product->getData() for a regular product, all the attributes I set in the admin appear to be there. But when I examine the contents of $product->getData() for a child product inside a configurable product, many of the…
Crankycyclops
  • 552
  • 5
  • 25
2
votes
0 answers

How can i update M2E ebay inventory using Magento 2 API

I have created a tool in Python using Magento 2 API which update magento inventory and price through api. Magento Website have a M2E Pro Extension ( https://marketplace.magento.com/m2e-ebay-amazon-magento2.html ) which is used to sale on ebay.…
Aditya Mishra
  • 194
  • 1
  • 13
2
votes
1 answer

Magento 2 addIndex

I'm a new Magento user and am trying to add a unique database index based on 2 columns to a custom database table using UpgradeSchema.php. The table already exists as do the columns I'm indexing. Here is my code portion: $installer->getConnection() …
mentalist
  • 33
  • 6
2
votes
2 answers

How remove link from customer menu when customer in general group?

How do I remove a link from customer menu when customer group is general? I know about the ifconfig tag, but it does not give me the possibility to hide a custom link when a customer in the general group. I use Magento 2.2.4.
Andry
  • 53
  • 1
  • 7
2
votes
0 answers

How to show items in admin grid by parent id magento 2

Try to get items in admin grid by parent id. For example I have url "/admin/navmenu/grid/addrow/id/1/", and want to get all items from database where parent_id = 1. Some ideas to filter them in DataProvider using getData() function, or there are…
2
votes
0 answers

Magento 2 Magento\Catalog\Model\layer getProductCollection() not effecting filters

I'm trying to update my catalog and catalogsearch listing collection in Magento\Catalog\Model\Layer::getProductCollection(). I need to show only grouped product in my list. First of all, when I tried to overide Magento\Catalog\Model\Layer in my…
2
votes
0 answers

Magento 2 get custom cache value in block

I have created a custom cache in a custom module to which I am able to read and write through an observer. However, when I'm trying to get the stored data in a block file I am getting an empty response. Here is my code: Block/Calendar.php namespace…
Vasilis
  • 21
  • 1
2
votes
1 answer

magento 2 dynamic row ui component dont present data

I am trying to create dynamicrow filed in admin form vs ui_component (xml). for example: the dynamic row i am trying to achieve i add the dynamic row component and it looks like in the image above. after set data and save the data, the data…
tal shulgin
  • 31
  • 1
  • 6
1
2
3
15 16