Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

How do i get my products to appear in a random order on the category page?

At the minute, my products are showing in alphabetical order from the part number. When clicking on a category, I would like this to show in completely random order. Can anybody help with this? This ...
0
votes
3answers
695 views

Magento 2 : get custom attribute value display blank

In Magento2 , I need to get eav attribute value in category data. I used this below code. But, it's not working. /** \Magento\Catalog\Model\CategoryFactory $categoryFactory**/ $category = $this->...
4
votes
3answers
3k views

How to Show Tier Price in Magento 2 Catalog Page

I have setup a tier price for my Magento 2 product and I can see the tier price on product details page like below screen shot. I need to show the same "Buy 3 for $0.00 each and save 100%" in my ...
0
votes
0answers
16 views

Magento 2 - Display product list filtered by price range

The module I'm working on has a form with three inputs, Low Range, High Range and Sort By Price. For some reason it's not returning the product collection at all. I'm getting the following error: ...
0
votes
1answer
782 views

Flat Rate and Table Rate

I have Flat rate shipping as the standard for all of my products $6.95, but I have a category that needs to be $14.95 because it is a tube and cost more to ship. How can I make $14.95 the default for ...
0
votes
0answers
17 views

Customer account module showing products filtered by price

I'm working on a custom module, it is in the customer account section, there's a form that has a minimum price and a maximum price that's no more than 5 times the minimum price (this is done by ...
1
vote
1answer
1k views

Magento 2: Show Out of Stock items after in stock items

I want to show Out of Stock items after in stock items. I found solution here, but its for Magento 1.8. I need same for Magento 2.
0
votes
0answers
28 views

Sorting is not working in magento 2

I modified 2columns-left layout in magento 2 design.After that sorting is not working <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
1answer
11 views

Magento 1 - Hide products from customers

We have a problem with the visibility. We need to add some new configurable products, but the customers should not be able to see them, until we finished testing them. How are we supposed to do this ...
0
votes
0answers
17 views

Magento2 - catalog:image:resize product image not found? Can we skip the error for not found product image?

When we run the catalog:image:resize code. If the product image does not exist in the path, the entire resize process will stop with an error message "image not fount in the path". After we ...
0
votes
1answer
990 views

Magento 2 catalog category link widget is not working

I wanted to insert catalog category in my content, however, it keeps showing a broken image whenever I try to use it. I have also tried manually coding it. Does anyone know the fix for this?
3
votes
1answer
1k views

Magento 2 - How to add dynamic-rows grid on catalog product

I am using Magento 2.1.5 I need to add dynamic rows grid on catalog product page I am using below di.xml for adding dynamic row on product_form app/code/vendor/module/etc/adminhtml/di.xml <...
0
votes
0answers
9 views

Magneto 1 Want to show some products same as Related products in catalog product edit

I have created custom tab with products in Catalog >> Product >> Edit But want to apply same grid functionality like related products including remove products. Tabs.php (Vendor/ModuleName/Block/...
0
votes
1answer
37 views

how to create a custom template for catalog product list

I am trying to override module-catalog-widget. I want a new template in the template field. I copied module-catalog-widget.while editing in the extended module in widget.xml no change is happening. ...
0
votes
0answers
11 views

Using the category manger and catalog management in a different project

I am working on a project that for some part is very similar to an eCommerce website, but it is more like a cataloging system. Items are digital assets, with files and attributes, so I am thinking ...
1
vote
3answers
535 views

Magento 2: How to filter category by store id?

I want to filter category by store id. Used the following code, but it is not working. $collection = $this->categoryCollectionFactory->create(); $collection->addAttributeToSelect('*') ...
5
votes
3answers
14k views

Multiple configurable products as a bundle

We have many products that we sell in different sizes. We have set up 1 configurable product and linked all the simple product sizes. But now we wish to set-up a bundled product that consists of a ...
0
votes
0answers
27 views

Slow Query Magento 2.3.0

One of the query is taking 1,197.66ms as per the DB profiler. SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_category_product_index_store1` AS `cat_index` ...
0
votes
0answers
7 views

How to add custom sort by option on list page and result should be based on discount percentage of products in Magento 2

I wants to display products on list pages based on discount percentage in descending and ascending order. Thanks
0
votes
1answer
37 views

How to add a multi select category and attribute filter on catalog page

My magento 2.3.3 theme provides me single select from same category or attribute. Here if i select a sub category all the other categories will get disappears because it is single select. But i want ...
0
votes
2answers
61 views

How to get product category Id on product detail page Magento 2?

I have a product which have assigned into more than 5 categories. I want to show the category detail of that product on product detail page. But which category detail I need to show? I want to show ...
0
votes
5answers
67 views

No products are showing after re-index - Magento upgrade - 2.1 to 2.2 then 2.3

I followed these steps in order to upgrade Magento (current version: 2.1.9): Upgraded to 2.2.8 Upgraded to 2.3.3 The one issue that I am stuck is that after upgrading to 2.2 or 2.3 and on reindexing ...
0
votes
2answers
1k views

Class 'Varien_Data_Form_Element_Datetime' not found

when trying to edit a product in admin I suddenly got this error: PHP Fatal Error: Class 'Varien_Data_Form_Element_Datetime' not found in /home/public_html/lib/Varien/Data/Form/Abstract.php on ...
0
votes
0answers
14 views

List all parent categories in a page - Magento 2

I am a beginner in Magento. I want to create a new menu 'Categories' in the header and this link should redirect to a page which shows all root categories. Thanks
0
votes
2answers
44 views

Show parent categories on a page

I am a beginner in Magento. This may be a simple question. I have a header menu 'shop'. This link should redirect to a page that shows all parent categories. How can I do this? any help is really ...
0
votes
1answer
10 views

Get “Sort by” method in catalog page

How can i get "Sort By" method in this page, $productListToolbar doesnt include sort by position method.
0
votes
1answer
36 views

magento 2.2.3 how to add a new cms block or new phtml to product page

I want to add a new cms block or PHTML to the product page. I have the following files composer.json, etc/module.xml, and registration.php I have view/frontend/layout/catalog_product_view.xml &...
1
vote
1answer
1k views

Magento2: product page returns error

With no apparent reason, product pages do not show for me anymore. Error text: Warning: Illegal offset type in isset or empty in /path/to/project/vendor/magento/module-eav/Model/Entity/Attribute/...
2
votes
2answers
1k views

Magento 2 reindex gives error Duplicate entry

I am experiencing an issue which not sure why when I try to reindex it gives the error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4458-142-1-1293-4458' for key 'PRIMARY',...
0
votes
1answer
23 views

Programatically creating products with custom attributes

I'm creating a product with a set of attributes using a cli script. First of I'm setting the session for \Magento\Framework\App\State with setAreaCode('adminhtml') in the constructor. Then calling to ...
0
votes
1answer
22 views

Magento 2 In product page, when display message if stock < 0?

I want to display on the right of "In stock" --> "The delivery time will be 15 days"
1
vote
1answer
982 views

How to get product parent category id and category id separatly in magento 2.2.6 using product ID?

Problem definition: I have product under below category: Beauty --> Sun --> my-some-product-name. where 'Beauty' is root category and 'Sun' is the subcategory of 'Beauty'. Currently, I am ...
0
votes
2answers
869 views

Magento 2 Mass Product Action module

Hi magenticians I need the code of the module magento 2 which allows to add a text input when clicking on a mass action to enter a value like this example
0
votes
0answers
27 views

Magento 2 how to save my custom link titles from Magento 2 admin end

We have created a custom link type products like related at admin end & we created custom link_title for the table catalog_product_link to save the custom titles. By custom import, we are able ...
2
votes
2answers
1k views

Some of the pages in admin Dashboard not loading, received Error in magento 2.0.6

Catalog page not loading in admin dashboard of Magento 2.0.6. Please see the error message below: Warning: Magento\Framework\Locale\TranslatedLists::getCountryTranslation(): Cannot load resource ...
0
votes
0answers
25 views

Simple products is not showing on Catalog page/Catalog search Magento 2.3.2

I am using Magento 2.3.2 for my store. I observed that all my simple products are not showing on the catalog page & catalog search (Frontend) . otherwise configurable products working correctly. ...
1
vote
1answer
2k views

How to disable product count in category sidebar, but not layered nav

In a category view, Magento shows the product count of any child categories in the sidebar next to their names. When the viewed category is un-anchored, it only counts products explicitly assigned to ...
1
vote
1answer
131 views

Magento2 get ID of product in price template default.phtml

How can I get the ID of product in Magento 2, in tempalte vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml I copied it to my theme: /app/design/frontend/xxx/ddd/...
0
votes
0answers
91 views

Magento 2 after exporting products csv products id does not match back end product ids

After exporting products in CSV file products ids don't match Magento 2 backend ids please help this matter.
0
votes
0answers
12 views

How to get filterable attributes and options in Magento for catalog search page programmatically in Magento 1

How to get filterable attributes and options in Magento for catalog search page programmatically in Magento 1? $layer = Mage::getModel("catalog/layer"); $category = Mage::getModel("catalog/category")-...
0
votes
0answers
33 views

Cannot delete products from store

We are noticing that in our Magento 2 store we are unable to delete products, individually or in bulk, from the catalog page. When selecting a product and hitting Delete, we get an error that says the ...
25
votes
4answers
26k views

Why and when to use “ Flat Catalog”?

While doing bit research for speed issue of magento website i got some links where people says enable "Flat Catalog" to increase performance and speed . Issue is that why it is not enabled by default ...
3
votes
3answers
4k views

Magento 2 no Layered Navigation after filter collection

We've added a default filter for our product collection by adding a plugin: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
2answers
39 views

Magento 2 How to show success message after product add to cart on home page?

How to show success message after product add to cart on home page like this "You added product-name to your shopping cart." I am using that code on template file - <form data-role="tocart-...
0
votes
2answers
3k views

Magento 2: How to override Ui & Component folder files

How to override these below files: vendor/magento/module-configurable-product/Ui/DataProvider/Product/Form/Modifier/ConfigurablePanel.php vendor/magento/module-ui/Component/Form.php ...
2
votes
2answers
1k views

Magento 2 - How to get stock of a product?

I want to instantiate CatalogInventory model in Magento 2 by calling loadByProduct() just like I used to do in Magento 1: $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($...
1
vote
1answer
2k views

Magento 2 : How affects Enable Single-Store Mode Yes/No?

I have 1 single website with single store. When I enable Single-Store Mode to Yes/No Not able to change Product Url. https://github.com/magento/magento2/issues/5929#issuecomment-238170690 What is ...
3
votes
2answers
835 views

Disable “add to cart” for Guest User

How can I Disable the "add to cart" when user is not logged in.
2
votes
2answers
3k views

Products on homepage: get more than 12 products

Im trying to show a few products on my homepage I got pretty far using this code: {{block type="catalog/product_list" name="product_list" category_id="74" column_count="5" num_products="24" mode="...
1
vote
5answers
4k views

Magento 2: How to Get Subcategory Image in Category Page?

I want to display subcategory in category page with the image. I've to put below code get only subcategory name not getting the image. How to get subcategory image in category page? if($this->...

1 2 3 4 5 19