New answers tagged

1 vote

Opensearch not working in magento 2.4.6

I disabled security plugin and it helped! Opensearch ver: 2.10 sudo nano /etc/opensearch/opensearch.yml add: plugins.security.disabled: true before other plugins.security... lines Restart ...
Ruslan Mavlyanov's user avatar
0 votes

Magento 2 : Existing "category_ids" missing on product edit page

You should check if the is_visible column in catalog_eav_attribute corresponding to category_ids row is set to 0. If it is, setting it 1 should fix your issue. Get attribute id of category_ids ...
Vivek Kumar's user avatar
  • 5,395
1 vote
Accepted

Possible to use Advanced Pricing with Swatches/Configurable Product?

After creating the configurable products along with their configurations, you can establish advanced pricing for the associated simple products. This can be done by editing each individual simple ...
Ritika Sharma's user avatar
0 votes

after upgrade magnento 2 version 2.3.4 to 2.4.6-p6

First you have to confirm this things. A. All your third party extensions compatible with magento 2.4.6-p6 B. Your Theme is compatible with magento 2.4.6-p6 Try to disable those extension and change ...
Dhiren Vasoya's user avatar
0 votes

after upgrade magnento 2 version 2.3.4 to 2.4.6-p6

If you are using Redis, flush the Redis cache by using the command redis-cli flushall If the issue persists, remove the cache directories: rm -rf var/cache/* rm -rf var/page_cache/*
Tu Van's user avatar
  • 7,008
0 votes

URL key is already in use by another blog item

Go to this file: app/code/Magefan/Blog/Model/ResourceModel/Post.php and get the identifier by: if ($id && $id !== $object->getId()) { var_dump($object->getData('identifier')); ...
Attila Naghi's user avatar
  • 4,013
0 votes

how to trigger click event in M2

<ul> <li class="user-name-welcome"> <span class="user" data-role="location-section" tabindex="...
Rahul Prajapati's user avatar
0 votes

How to add "Add to Cart" button on live search listing page in Adobe commerce Cloud

*app/design/frontend/{Vendor}/{theme}/Magento_Catalog/templates/product/list.phtml <!-- Loop through search results --> <div class="product-item"> <h2><?php echo $...
Rahul Prajapati's user avatar
0 votes

Magento 2 Hosting and Domain

You can go for shared hosting from either Fastcomet, Siteground or any other service provider, Just ask them and confirm if they support Magento. If you want to try cloud hosting once then Try this ...
Dhiren Vasoya's user avatar
0 votes

Purge Varnish from Magento 2.4.6: laminas error

You can add the null coalescing operator to this line of code: $method = strtolower($method); Replace it with: $method = strtolower($method ?? ''); For same you can create a Custom patch and apply it ...
Nilesh Dubey's user avatar
  • 1,087
-2 votes

On opening Product Single page gave error from Admin in Magento 2?

Run this command: delete from eav_attribute where eav_attribute.attribute_code LIKE '%stripe%';
user115555's user avatar
1 vote

Problems While Creating Product Attribute With InstallData

Proper mapping: Instead of is_used_for_promo_rules use used_for_promo_rules used_in_product_listing should work as is (Magento 2.4.6) Example: $eavSetup->addAttribute( Product::...
Ruslan Mavlyanov's user avatar
0 votes
Accepted

Magento 2: The newly added column does not appear in the product export csv file

I have found solutions for this, need to stop existing consumer queue fron cli below is command to stop/kill queue. [15/03 14:52] darshan (Guest) As per the above screenshot, you need to execute all ...
Nikhil Ajani's user avatar
0 votes

The cron task indexer_update_all_views failed | SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'entity_id' in where clause is ambiguous

This would be your SQL query SELECT `o`.`entity_id`, `o`.`increment_id`, `o`.`customer_id`, `o`.`billing_address_id`, `o`.`customer_email`, `o`.`customer_firstname`, `o`.`customer_lastname`, `o`.`...
Raul Sanchez's user avatar
  • 3,096
1 vote
Accepted

How often should I run the message consumers?

You don't need to run message consumers manually. CRON will take care automatically for message queue. To setup CRON correctly, Just run below command php bin/magento cron:install You can remove all ...
Pawan's user avatar
  • 5,891
0 votes

The cron task indexer_update_all_views failed | SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'entity_id' in where clause is ambiguous

EK. Pleaese do following these steps below: Try to truncate cron schedule table TRUNCATE TABLE cron_schedule; and run re-index commands again (reset indexes status if needed). Setup cron job to ...
OIW's user avatar
  • 1
0 votes

Sorry, you need permissions to view this content

I got same problem but with wrong ACL in a custom module. How it was: <section id="mysectionname> <label>My Section Name</label> <tab>custom_tab</tab> &...
orthener's user avatar
0 votes

Magento 2 - How to remove cache files manually

rm -rf var/cache/ generated/ pub/static/ var/page_cache var/view_preprocessed
Anastiuk's user avatar
0 votes

Render paypal express button in jslayout

To render a PayPal Express button under the customer's email address field on the checkout page in Magento 2, you'll need to make some modifications to your theme's layout files. Here's a general ...
Mayur's user avatar
  • 394
0 votes

Magento 2.4.x: Update customer data on account registration

If you need just to enable it (not to show as enabled): https://github.com/fruitcake/magento2-alwaysloginascustomer
player's user avatar
  • 33
0 votes

Admin config error: Undefined index: id in Iterator.php on line 59

The reason that you have encountered this issue is because of your "system.xml" file. I faced similar issue because of mismatch of tab id. <system> <tab id="magedelight"...
Sahil Arora's user avatar
0 votes

Magento 2 Cron jobs are stuck in Pending status

Exactly the same behaviour on Magento 2.4.6. Had to run this: ALTER TABLE `mage_magento_operation` MODIFY COLUMN `operation_key` int(10) UNSIGNED NULL DEFAULT NULL COMMENT 'Operation Key' AFTER `...
nordashi's user avatar
0 votes

How to upgrade magento cloud 2.4.3-p1 to 2.4.3-p3?

Execute below commands to perform upgrade composer require magento/product-community-edition=2.4.3-p3 --no-update composer update rm -rf var/di var/cache/ var/page_cache/ generated/code/ php bin/...
mjsachan's user avatar
0 votes

graphql api for guest to create account on checkout success page graphql

To achieve this functionality, you can follow these steps: 1. Create the Guest Customer Account: You need to create a customer account for the guest user after they place an order. This can be done ...
Mayur's user avatar
  • 394
0 votes

How set limit of product's swatches on category listing page in magento246

To limit the number of product swatches displayed on the category listing page to a maximum of 5, you can customize the code responsible for rendering the swatches. Here's a general approach to ...
Mayur's user avatar
  • 394
0 votes

how to update the SKU values

Magento should allow you to save your update. If you start playing with the database, it will resolve your issue in the short term (that is if you know where to change) but it will bite you as well ...
Herve Tribouilloy's user avatar
0 votes

How to filter collection by date range on Magento 2?

I would like to add one more answer : If Date field is optional then you can use below code for date filter $slides = $this->slideCollection->create() ->addFieldToFilter('startDate', [...
Gohil Rajesh's user avatar
  • 2,924
1 vote

Magento2 API Product Repository API "saveOptions": true

I bet this may be some deprecated parameter (in latest versions of Magento2 at least) I suppose you are talking about product updates via API, so it should refer to second parameter in \Magento\...
Raul Sanchez's user avatar
  • 3,096
0 votes

Related Products show Huge Pixelated images

Most likely, you configured wrong sizes for the related product images in your custom theme. Open the template that renders related products list on you product page. For a Luma-based theme it should ...
MagestyApps's user avatar
0 votes

How to Convert Media Gallery Slider to a Vertical Slider in Hyva Theme Magento 2?

You need to adjust the CSS and possibly the HTML structure to make the thumbnails scroll vertically instead of horizontally. Here's what you can do: <div id="thumbs" class="flex ...
Admin SAB's user avatar
0 votes

How to add Qty in add to cart form on Product Listings Page in Magento 2

<script type="text/javascript"> require(['jquery'], function($){ $(document).ready(function(){ $('.product-item').each(function(){ var min = parseInt($(this)....
Alex's user avatar
  • 1
0 votes

Is there any event available for when customer side reorder button click?

Generally magento doesn't provided specific event's for that actions, so you need to create around plugin like this. app\code\Vendor\Extension\etc\di.xml <?xml version="1.0"?> <...
Dhiren Vasoya's user avatar
0 votes

How to apply security patches in magento 2.3

Right way of applying Security-Patch is as follows: If you want to apply any security patch for Magento version and do not want to update the third party extension(Just want to update the Patch ...
Arun Sharma's user avatar
  • 1,315
0 votes

Is there any event available for when customer side reorder button click?

You have to work on Magento\Sales\Controller\AbstractController\Reorder:: execute() controller Action. <?php namespace StackExchange\Magento\Plugin\Magento\Sales\Controller\AbstractController; ...
Shraddha Patel's user avatar
1 vote

Adding custom product attribute to summary in checkout?

Update ConfigProviderPlugin.php <?php namespace Abbottstore\Flavor\Plugin; use Magento\Checkout\Model\Session as CheckoutSession; use Magento\Quote\Api\CartItemRepositoryInterface as ...
Shraddha Patel's user avatar
0 votes

Get same product info while we use catalog_product_save_before and catalog_product_save_after

Put this events.xml in following path. app\code\Extension\Vendor\etc\adminhtml\events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
Dhiren Vasoya's user avatar
0 votes

Magento 2 How to add Tab Component in admin module

Add tabs in listing form using ui component : Change your lauout form like below : must use : layout="admin-2columns-left" <?xml version="1.0" ?> <page layout="admin-...
Divyarajsinh Barad's user avatar
0 votes

Fatal error: Cannot instantiate interface in Magento 2?

If anyone meets this bug, you should check if you declare an inherence from the interface to the implemented class in di.xml with preference tag. Then run bin/magento setup:upgrade to remove var/...
Vincent Le's user avatar
0 votes

Images Resize bin/magento catalog:images:resize too slow

Old thread! But another option for this is to stop using the application catalog:images:resize logic all together, and opt for edge resizing (nginx, CDN etc) https://experienceleague.adobe.com/en/docs/...
Sam's user avatar
  • 1,910
0 votes

Images Resize bin/magento catalog:images:resize too slow

try to use this command with async flag. Example bin/magento catalog:images:resize --async ref: https://experienceleague.adobe.com/en/docs/commerce-operations/implementation-playbook/best-practices/...
UOK's user avatar
  • 105
0 votes

Uncaught Exception: Warning: SessionHandler::open(): Cannot call session save handler in a recursive manner

Late in the party but it happened to me today, and was caused by running out memory. In my case it was a third-party module memory leak, in yours I assume it could've been different memory setting ...
Ivan Augusto's user avatar
0 votes

No alive nodes found in your cluster

I have today finally managed to get a Magento 2.4.6-p4 installed without any changes and opensearch working on it. The command to install Magento is below: the one line not to miss out on is the ...
Herve Tribouilloy's user avatar
0 votes

Magento 2 - Dynamic custom validation error message not working

The core's validation rule in vendor/magento/magento2-base/lib/web/mage/validation.js "validate-customer-password" is a good example: need to pass a callback instead of static message ...
Kate  Suykovskaya's user avatar
0 votes

Magento 2 - How to find all products with Salable qty as 0 via SQL query?

Updated Query: SELECT t1.sku, SUM(t1.quantity) Qty, COALESCE(SUM(t2.quantity), 0) Reserved, (SUM(t1.quantity) + COALESCE(SUM(t2.quantity), 0)) AS Salable FROM ...
Fabio B.'s user avatar
0 votes

Magento 2: How to find which config causing error “Malformed UTF-8 characters, possibly incorrectly encoded” when trying to serialize checkout config

For me it was a configuration of some shipping extenstion (Inpost). I needed to go to admin and re-save the configuration. The re-saving is changing a way how the config is stored (serializing vs ...
Maciej Lemiesz's user avatar
0 votes

Magento 2.4.3: Zend removed?

Since version 2.12.0 of laminas-serializer you also have to require laminas/laminas-zendframework-bridge to get the Zend\Serializer\Adapter\PhpSerialize replacement: composer require laminas/laminas-...
danbtl's user avatar
  • 5
0 votes

My magento 2 website is crashed: Unknown or bad timezone () error

the other cause of this is if your server is maxing out flash memory and is out of phyical memory. I was running three magento dev sites on one box and had this issue.
user3931208's user avatar
0 votes

Magento 2:- "Forgot your password?" issue from admin side

Create a new admin user instead from command line by using below command php bin/magento admin:user:create --admin-user admin --admin-password Password@1234 --admin-email [email protected] --admin-...
Badrish's user avatar
1 vote
Accepted

Reading product attribute value for "All Store Views"?

... public function __construct( \Magento\Catalog\Api\ProductRepositoryInterface $productRepository, \Magento\Store\Model\StoreManagerInterface $storeManager ) { $this->...
Alexander Bobylev's user avatar
0 votes

How to Solve 502 Bad Gateway error in Nginx Magento 2?

In my case I am using docker in my local pc. I have have added these two configuration in the nginx.conf and it's working fine. server { //...... location ~ (index|get|static|report|404|503)\....
Nalin Savaliya's user avatar

Top 50 recent answers are included