Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
2
votes
2answers
2k 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="...
2
votes
2answers
1k views

Sort products by Date

I would like to sort the display of a Magento 2.0.6 website products by date. I am looking forward to apply this sorting on the frontend. I have been trying to find an extension so I can have this ...
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
1answer
82 views

How to not use attribute default value over rest API in magento2

Im working on api integration between one store of magento2 multi store installation and product db of a client. Our current problem is that part of the items for in our store are duplicated (same sku)...
0
votes
2answers
735 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
-1
votes
0answers
12 views

M2 Make product collection always start at 0 regardless of page

This may seem like a strange thing to do, but is there any way of changing the behaviour of pagination on catalogue and search pages so the loaded collection always begins with the first product? For ...
0
votes
1answer
603 views

Show Empty Categories on Catalog Page - Magento 2

I want to show all categories, even if they have no products in them. How can I achieve something like this?
1
vote
1answer
31 views

Unable to update or delete a product

I have several thousands of items that are currently disabled. I'm now trying to delete them via the Catalog > Products page but I get an error message for some of the products. I cannot make any ...
2
votes
1answer
2k views

Output all product attribute values on catalog page

On the catalog grid page, I want to output all filterable attribute values for each product. For example: If the price is filterable in the layered navigation, the attribute value associated with the ...
6
votes
1answer
7k views

Is it possible to delete root category?

Is it possible to delete an empty root category once accidentally created or not required anymore? It looks like there's no "Delete" button.
1
vote
1answer
41 views

Custom custom options magento 2

Looking for some advices/ideas Magento 2 offer us Custom Options in catalog section. In Backend, we can add custom options like below picture and it appear on frontend like My question is I want ...
33
votes
8answers
14k views

Questions to expect in an interview for a Junior Magento Developer Position

Firstly I would like to say that I hope I am not posting in the wrong place with this question and if I am please advice me of where (if anywhere in the stackexchange world is appropriate) I should ...
27
votes
5answers
66k views

Why Can't I Load a Product by SKU using loadBySku()?

Synopsis I wanted to load a product by SKU there are many articles, blog posts, stack overflow results etc. All I want to know is - why does it have to be so difficult to load a product by a SKU? //...
0
votes
1answer
47 views

Magento2- How to get the price (product price+ static price) without catalog price rule applied

Magento2- How to get the product price without catalog price rule applied. I want to add an additional price percentage to all the product before the catalog rule applied. Basically what I want is : ...
0
votes
0answers
18 views

Magento2.1.9 - Catalogsearch pagination not work

When I'm searching by product name via mini search / advance search but the issue is toolbar.phtml not loading. I added block in catalogsearch_result_index.xml but not loading.
0
votes
1answer
26 views

Magento 2 Change base image when attribute is selected on catalog page

I want to change the base image depending on the color which is selected. So if i select "Olive Green", all the products with olive color single products must change the base images to the black ...
6
votes
3answers
519 views

why magento doesn't enable flat model by default?

we can see that the following two options at system > configuration > system > catalog 1.Use Flat Catalog Category 2.Use Flat Catalog Product it is clear that the flat model reduces the ...
0
votes
0answers
17 views

Magento 2 - Upload image file using inline edit

I am using inline edit for product grid. Now i can edit product name and other field but i cant upload any image. <editor> <editorType>text</editorType> </editor> ...
1
vote
3answers
71 views

Magento 2 - Override phtml files not working

I am working on Magento 2 and I override few PHTML files from vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml to app/design/frontend/vendor/module/Magento_Catalog/...
13
votes
2answers
1k views

Magento 2 - Use \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser with multiple selections?

Using this code $chooser = $this->_layout->createBlock('\Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser'); var_dump(get_class_methods($chooser)); $configChooser = [ ...
0
votes
3answers
2k views

Crosssell products in product page

I have at the moment in catalog.xml <block type="checkout/cart_crosssell" name="checkout.cart.crosssell" as="crosssell" template="checkout/cart/crosssell.phtml"/> and in view.phtml <?php ...
0
votes
2answers
44 views

Magento 2.3.0 Remove amazon pay button from different pages if current product in cart

I need to develop a feature in my custom module, I would like to hide Amazon pay button from product page, cart page, mini cart, shipping page upon condition. If the current product is in the cart ...
0
votes
0answers
20 views

Magento 2 - Add an input field for every product in product listing in admin

I want to add input field in every row for every product in product listing. How could I achieve it? Above image is from magento 1.9 and I want to do something like that. Any help is appreciated.
3
votes
2answers
679 views

Disable “add to cart” for Guest User

How can I Disable the "add to cart" when user is not logged in.
3
votes
1answer
28 views

When To Use MultiStore Vs. Categories

I'm attempting to hide the "Add To Cart" button for specific stores currently and am having some issues with my lack of experience. It works in each individual store but not when using the search ...
0
votes
0answers
23 views

How to turn on formatting

The current page formatting has been turn off. I checked the format is still present in the codes but not showing on the actual website. Please help.
3
votes
0answers
42 views

Magento 2.3 Result page blank if an item is found

I am trying to search for products on my Magento 2.3 site. When the result is empty (there are no products found) it just shows a page saying there are no products found. Perfect! But when there is a ...
0
votes
0answers
24 views

error message not getting replace

On product page, I am doing add to cart with quantity more than the allowed in cart. Page is getting refreshed and I am seeing the error message on the page. After that I am adding single quantity and ...
0
votes
1answer
21 views

Magento 2 - Second level category has no head

I tried making a 3 layer category system as pictured below. For the category "Liquid Spice Blends" everything works well, the layout gets loaded and everything. But for the test element as shown ...
4
votes
1answer
729 views

Multi Store view - product name for each store

I'm using Magento 1.9.0.1 I have a store in English, I want to have the same store (same categories and products) just translated to Spanish. I used this tutorial to achive this: Ref. I created ...
0
votes
0answers
15 views

Magento 1.9 on Aruba Shared Hosting causes Execution error - PCRE limits exceeded (-8) when uploading images

I'm on a shared host, an Italian service named Aruba Business, for information to who knows it. I have a Magento 1.9.2.1 When I'm trying to upload an image, using the flash uploader, on the product ...
0
votes
0answers
15 views

Magento 2: sellrapido import product using brandsdistribution

When I try to import products from sellrapido to magento 2, it gives me this error on var/log/exeption.log: Next Exception: Report ID: webapi-5d24af47428bd; Message: Property "IsFilterableInGrid" ...
0
votes
3answers
66 views

Show product based on customer attributes

I've added a field for my customer (called "Group"). I want to show the product from the catalog based on this group (I have added a "group" field in my product). What do I need to override to do ...
0
votes
1answer
17 views

Magento 2 admin catalog save button not working

yesterday I have imported some products in my store, today when I was trying to do some changes in product edit functionality is not working. Even the Save button is not clickable I checked logs no ...
0
votes
2answers
28 views

Magento 2 Related Product Image is not Accurate

In Related Product Slider, All Images are of different size and default Magento is not resizing them. Screenshot : https://prnt.sc/oax7yl I want to show all images of the same size. In view.xml, I ...
2
votes
1answer
712 views

Set Category Attribute to Use Default Value

When setting the product to use the default value, setting the value to false would do it. Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $product = Mage::getModel('catalog/...
1
vote
0answers
13 views

Add image options programmatically in custom attribute not working

I want to add new custom option to upload image like extension : https://shop.emiprotechnologies.com/documentation/custom-option-image-for-magento-2 . So basically , i override some file to add new ...
9
votes
0answers
2k views

Magento2 : How to enable inline edit in catalog grid without changing source code?

I try to turn on inline edit in catalog grid as it described in DevDocs: http://devdocs.magento.com/guides/v2.0/ui-components/ui-secondary-inline.html Main problem is how to override this block of ...
1
vote
1answer
705 views

Catalog: Custom Product Collection, mode switch (grid/list) bug?

Edit: I think I found a solution. (See answer by me below) I have a product collection which I pass to the Magento catalog/product_list block. I've set curPage and pageSize of the collection and ...
1
vote
1answer
38 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
25 views

Magento 2.3.1: Showing configurable products price in products grid

I'm trying to display the price of configurable products.After I imported it from a csv the price was there but if I save it the product price disappears. I would like to know how to show the price ...
0
votes
2answers
800 views

Accessing data in catalog_product_save_before observer

I created an catalog_product_save_before observer to update some attributes based on other attributes. Specifically, I use m2epro to update my ebay listings. Sometimes I want ebay to show less in ...
6
votes
3answers
129 views

How to keep products synchronized in two shops

How can I transfer all products from one shop to another after clicking a button? We have a shop which is a copy of our real shop. We need to keep the products, prices, etc. synchronized in both ...
0
votes
2answers
46 views

Finding the parent id of an product

I have a requirement to create a cross sales report(Which combination of the product is most purchased by a customer with it order count), But i want to avoid those orders contains parents and child,...
0
votes
1answer
740 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 ...
1
vote
1answer
765 views

Show Tax Amount in the Product page

I'm trying to show the label "Tax amount: 40$" in mu product page, just under the price, as this image I enabled in the System > Configuration > Sales > Tax almost every display with "show including ...
4
votes
4answers
793 views

best practice to connect Magento 2 to price/product service

I have my own price/product service that I need to connect to Magento. The service has a variable amount of products with very variable prices. The price can change with every request a customer makes....
3
votes
1answer
857 views

Error after enable the use_flat_Catalog_category option in admin catalog,

After enable the use_flat_Catalog_category option in admin catalog , and i did reindex, then catalog_category_flat_store_1 table was create. And then when i try to launch the store, it's show below ...
0
votes
0answers
23 views

Magento 2 catalog rule markup price

I'm trying to achieve a positive "discount" so I could have a base price, and percentage markup prices based on client groups. For ex. base price: 100$, default client group: +20%, another client ...
0
votes
2answers
27 views

Products visible only on the search page

Products are visible only on the search page, but not available on the category page. Admin products visibility on Catalog and Search: Category page screen: Category page filters show the count of ...