3
votes
Magento 2 : How to override fotorama.js in magento custom theme
Actually i was able to customize fotorama library downloaded from their official website because I found it difficult and nearly impossible to use Magento's fotorama library, below are the steps I ...
3
votes
Accepted
Magento 2 - Create Product attribute programmatically without InstallData
yes I have got a solution for creating attributes using script and API
create attribute using Magento 2 default API
http://127.0.0.1/magento2/rest/all/V1/products/attributes
check attributes ...
2
votes
Accepted
Magento 2 products not paginating in admin panel
Try clearing the data in the table ui_bookmark. Delete all the row in this table and execute some basic commands and check the Product page.
Deleting the ui_bookmark removes the filter/pagination ...
2
votes
Magento 2.3 use of `db_schema_whitelist.json` file in etc directory of each module
Magento 2 versions from 2.3 have a replacement for traditional install/upgrade schema which is used to maintain the database structure.
From Magento 2 version 2.3, they have introduced the declarative ...
2
votes
Replace thumbnail with small image in Admin Catalog Products
Follow the below steps to get the exact output.
Step 1: Prepare your custom image type
Vendor\Module\etc\view.xml
<?xml version="1.0"?>
<view xmlns:xsi="http://www.w3.org/...
2
votes
Replace thumbnail with small image in Admin Catalog Products
Just you need to change the image type from thumbnail to small_image in view.xml
Image ID: product_listing_thumbnail and product_listing_thumbnail_preview
For Example:
<media>
<images ...
1
vote
Accepted
Magento2.4: Which files are used to render this advance inventory pop up?
This form is defined in the vendor/magento/module-catalog-inventory/view/adminhtml/ui_component/product_form.xml
Data Source for it is defined in the vendor/magento/module-catalog/view/adminhtml/...
1
vote
Accepted
Elastic search error in magento 2.4.3 ((code=killed, signal=KILL))
try this command in your project root directory.
sudo systemctl daemon-reload
sudo systemctl restart elasticsearch
and if this doesn't work, try restarting your system
and if that doesn't work, try
...
1
vote
Magento 2 how to add loading lazy to image product?
I don't think there is any reason to pass this in as a data-bind attribute, since this is a static value. Try adding it as a regular HTML attribute?
<img class="product-image-photo" ...
1
vote
Accepted
How to add block for Specific category's products in Magento 2 by layout/catalog_product_view_attribute_set_id_[id]?
If you want to add some block on the base of category you need to follow the following step. By following these you will be able to achieve your requirement.
Step 1
create layout handle
vendor/module/...
1
vote
How to add block for Specific category's products in Magento 2 by layout/catalog_product_view_attribute_set_id_[id]?
By default, Magento supports only the following layout handles for product page customizations: catalog_product_view_type_<product_type>.xml, catalog_product_view_id_<product_id>.xml and ...
1
vote
Magento 2 : Get current product id in product edit page
1: Create one custom block file on your extension let said : Blockname.php
app\code\Vendor\Extension\Block\Blockname.php
<?php
namespace Vendor\Extension\Block;
use Magento\Framework\View\...
1
vote
Accepted
How do I get all products that are displayed on a page?
If you don't have access to the $collection you can use a jQuery to parse all ids:
var productIds = [];
jQuery('.product-items').find('[id*=product-item-info_]')
.each(function (i, e) {
...
1
vote
How do I get all products that are displayed on a page?
If you are on the category page, then you can get collection by :
<?php $_productCollection = $block->getLoadedProductCollection(); ?>
Where $block is object of \Magento\Catalog\Block\...
1
vote
How to get cache images path
If you want to get the cache path (hash) of the small_image on PLP then you can get the following way.
Need to get the size of the small_image from view.xml.
Need to generate the directory hash.
...
1
vote
Layered navigation 'item with same ID already exists'
Run SQL
SELECT product_id ,COUNT(*) FROM cataloginventory_stock_status GROUP BY product_id, product_id HAVING COUNT(*) > 1
After run above sql you can get all duplicate ids then run below SQL ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
catalog × 1060magento2 × 351
product × 199
magento-1.9 × 158
category × 95
magento-1.7 × 55
price × 54
products × 48
magento-2.1 × 45
catalogsearch × 44
layout × 40
magento-1.8 × 39
magento2.3 × 36
admin × 34
attributes × 31
collection × 31
database × 29
configurable-product × 29
product-attribute × 29
overrides × 26
catalog-price-rules × 26
product-images × 25
product-list × 25
event-observer × 24
reindex × 23