People who code: we want your input. Take the Survey

New answers tagged

0

delete the products against skus ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ini_set('memory_limit', '-1'); ini_set('max_execution_time', 0); set_time_limit(0); error_reporting(E_ALL); require __DIR__ . '/app/bootstrap.php'; $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->...


0

For me the issue was really stupid: I had created a new product attribute and set "integer" as its type. However, Magento 2 uses "int" for the type I was looking for. This lead to Magento 2 trying to load the "catalog_product_entity_integer" table, which does not exist. After changing the type of the new attribute from "...


0

none of the above options not worked for me. My server is nginx. It memory limit defined in /etc/nginx/magento.conf open the file and search fastcgi_param PHP_VALUE "memory_limit= inside the below block location ~ (index|get|static|report|404|503|info|cleanopcache)\.php$ { } after found that line, the memory limit has to set as 6144M fastcgi_param ...


0

you can simply use magento default export functionality go to "System -> Data Transfer -> Export" and select "Product"


1

please add ->where('tier.website_id = 0');


1

The problem In a Magento collection you are not allowed to have multiple items with the same id. This happens when your result set of the database query returns the same item multiple times, most likely because you join a table which contains the same item twice or more. I would assume that both of these tables contain the same product multiple times: $...


0

It's not a pretty simple answer, since Magento handles the frontend in a particular way. But I would say you should review a post like this: https://aureatelabs.com/magento-2/how-to-use-viewmodels-in-magento-2/ and to get what you want to achieve you should: Create a view model to get the data Create a template file (.phtml file), you call the view model ...


Top 50 recent answers are included