2

seems like the problem is file permissions, run the following command please! sudo chmod -R +775 . Don't forget to also clean and flush the cache: php bin/magento cache:clean php bin/magento cache:flush let me know if this solved your issue !


1

Take my answer with a grain of salt. I have a natural tendency to do every CRUD operation using webservices, in the case of Magento, the REST library made available out of the box is awesome. So in order to accomplish the operation you described you can do the following Webservice call: I've done this in Postman but if you need any further help using ...


1

Using mysql directly, you can use the query below: update eav_attribute_group set attribute_group_name='My new name' where attribute_group_code='product-details'; once you will have run the query, My new name will be the group name instead of Product Details.


1

Assuming your list of SKUs is comma separted I would suggest a SQL statement: delete from catalog_product_website where website_id = YOURWEBSITEID ANd product_id IN (select entity_id from `catalog_category_entity` where sku in (sku1, sku2)) The Magento Backend does not provide a functionality to filter multiple products by their SKUs.


1

You can write the sub query like this if ($collection->getMainTable() === $collection->getConnection()->getTableName(self::$table)) { $leftJoinTableName = $collection->getConnection()->getTableName(self::$leftJoinTable); $subquery = $collection ->getSelect() ->joinLeft( ['co'=>$...


1

Step-1 Open the file and change replace validateURLScheme Method vendor\magento\framework\Image\Adapter\Gd2.php private function validateURLScheme(string $filename) : bool { $allowed_schemes = ['ftp', 'ftps', 'http', 'https']; $url = parse_url($filename); if ($url && isset($url['scheme']) && !in_array($url['scheme'], $...


1

Step - 1 create your own src image array and push the all image link in that array. Examp - like this $image_source_files = []; foreach ($attribute->getOptions() as $option) { $src = $option->getLabel() . '.png'; $image_source_files[] = $src; } Step-2 $image_source_files array sort according to your requirement and check the $...


1

If you allow only CSV and xls file upload then you can add the method beforeSave into the CustomFileType.php and write the exception based on your file type. class CustomFileType extends \Magento\Config\Model\Config\Backend\File { /** * @return string[] */ public function getAllowedExtensions() { return ['csv', 'xls']; } ...


1

If you need to delete all the data row from the database table then you can be used the below code to truncate the table using the model. $connection = $model->getCollection()->getConnection(); $tableName = $model->getCollection()->getMainTable(); $connection->truncateTable($tableName); I hope this is helpful to you!!


Only top voted, non community-wiki answers of a minimum length are eligible