i try to update re image urls directly on db. In many of them (1700+) is missing the “/” at the begining. i try with this sql file ALTER TABLE 'catalog_product_entity_media_gallery' MODIFY COLUMN 'value'; REPLACE INTO 'catalog_product_entity_media_gallery' ('value_id', 'attribute_id', 'value', 'media_type', 'disabled') VALUES (13584, 88, '/o/m/om-5e_1_2nd.png', 'image', 0); but i […]
Magento
Please tell if there is such an extension, so that we can crop the image of the product and add it to cart.
I’m trying to use redis as session storage on Magento 2.3.3. In my app/etc/env.php file I have: 'session' => [ 'save' => 'redis', 'redis' => [ 'host' => '127.0.0.1', 'port' => '6379', 'password' => '{password}', 'timeout' => '2.5', 'persistent_identifier' => '', 'database' => '2', 'compression_threshold' => '2048', 'compression_library' => 'gzip', […]
We are displaying sales order table data to the admin grid With this code https://drive.google.com/drive/folders/1FB1bxTn74aYS61zHPxgmHt6pMK4LdwOu?usp=sharing if we are creating a new table under the database then everything works fine while saving. but when we replace the table name with sales_order then its show all order but while saving it redirect […]
Up until yesterday morning UK VAT was being added to products as it should. Out of the blue, the prices started appearing ex VAT To my knowledge everything is set up as it should be as it was working but now its not and I have no clue what has […]
I am trying to add the same message of pdf pages, Please enter a valid number in this field in another page of a custom module. when the add to cart button is clicked without any value inside text box here is the code I am trying: <form data-role="tocart-form" action="<?php […]
strong textI am tryring to add WYSIWYG in the custom form in the sections I am trying this but In the form show only fielset not WYSIWYG Editor. Here is my code with path as well: <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for […]
I would like to write a query like delete from inventory_reservation where JSON_EXTRACT(metadata, '$.object_increment_id') = '<increment_id>' So I created my expression in my code like $expression = "JSON_EXTRACT(metadata,'$.object_increment_id') = ?"; And then I try to invoke a delete action like this $this->resourceConnection->getConnection()->delete($table, [$expression, $order->getIncrementId()]); However the resulting query is this […]