Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Magento 2 : Many 404 URL from one product

In this situation, You can remove all URLs of this product. Then you can use the below extension which provides this command to regenerate catalog URLs for the particular product. Extension : https://...
Jigar Karangiya's user avatar
0 votes

Magento 2 : Many 404 URL from one product

@Randy Hey, Run indexing and flush the cache. If the issue still persists, you can truncate url_rewrite table of entity_type product (Only if you have issue with products URL) and regenerate them by ...
Sanjay Jethva's user avatar
0 votes

Magento 2: How to get products name using SQL database

This query will return all products with ID, SKU, and Name. SELECT e.entity_id AS id, e.sku, v.value AS name FROM catalog_product_entity AS e JOIN catalog_product_entity_varchar ...
Jigar Karangiya's user avatar
0 votes

Where does $product->getData('salable') come from?

In Magento 2, the 'salable' attribute of a product can be set to false due to several reasons. Here are some common ones: Product Status: If the product is disabled in the admin panel, the 'salable' ...
Jigar Karangiya's user avatar
0 votes

my product images on search page disappear

For those products make sure your Image assigned to "base","small", "thumbnail".
user1122's user avatar
0 votes

Magento2 How to Display Product Custom Attribute Value In List Page

ATTENTION do not use $product->getData(...) The right way to get a custom attribute value is to run getCustomAttribute('attributecode') then getValue() on it. Check the following code: if ($product-...
Gustavo Ulyssea's user avatar
0 votes

Product images not showing for some product - Magento 2.3

Please check this pub/media/.htaccess file is exits or not? if not please try to undo this. Run this commend: git checkout pub/media/.htaccess in may case it was deleted. Now images are showing...
khasru's user avatar
  • 86
0 votes

Scable qty going to nagative value

Thank you for the response! We had this product catalogue active and in place for years so I don't know why it's happening now to random products with plenty of stock. Is there a way to manually ...
Jake's user avatar
  • 1
0 votes

Magento 2 : How can I show this custom code in product view page?

To achieve this, Add your desired option to the size attribute. Fetch these option values and create HTML with the input field along with each option that accepts the integer values. (please find ...
Magento TridhyaTech's user avatar
0 votes

Magento2 How to get Customizable dropdown Options of a simple product in phtml file

Here, I am sharing the solution.. How to get Customizable option data in a phtml file. <?php $product = $block->getProduct(); $options = $product->getOptions(); if ($options && !...
Keval Chauhan's user avatar

Top 50 recent answers are included