Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [catalog]

It should be used for questions regarding the catalog module.

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

What is the use of Communication.xml in Magento 2 Catalog module

What is the use of following vendor\magento\module-catalog\etc\communication.xml file located in the catalog module in Magento 2? <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
1answer
23 views

Magento 2.3 - limit certain categories products

We have a few categories which function like "bestsellers" categories; these categories can hold any number of products, but I'd like to show only the top four. So I figured to create an observer ...
0
votes
2answers
34 views

How to programmatically add suffix to the catalog title in Magento 2.2?

I need to add the suffix to the catalog page title programmatically for SEO. Currently in view source code i am getting catalog category page title like <h1 class="page-title" id="page-title-...
1
vote
0answers
12 views

How to get all attributes of a product which Start with 'wdb_' in Magento 2?

I want to get all attributes of a product which start with "wdb_" in custom tab. For this, I am getting each attribute manually. For example: wdb_carat, wdb_info, wdb_clarity etc... My Code is: ...
0
votes
2answers
43 views

Magento 2 : Can't able to override controller

I need to override this below controller : Magento\Catalog\Controller\Adminhtml\Product\Attribute\Validate.php But, I can't able to override. I need to customize checkUniqueOption() function. di....
0
votes
0answers
12 views

Magento 2: Category Pages custom sortby: getCollection()->order(…) not taking effect

So I have a bit of an issue. I am trying to create a custom sort order in the magneto 2 catalogue pages using a calculation between two price fields. I am currently editing Magento\Catalog\Block\...
0
votes
2answers
39 views

Magento 2 Get custom attribute values in phtml

I want to populate attribute(Gender) values in select dropdown on listing page. On selecting specific value of the gender attribute, the product list should be filtered. The gender attribute has 3 ...
0
votes
0answers
14 views

Magento 2.3x - Sort By Position Fallback Direction

I have a site migrated from M1 to M2 - on M1, the categories defaulted to "Best Value" for the sort order - the products within these categories commonly have mulitple instances where the position is ...
0
votes
0answers
17 views

How to create a category in Magento using SQL

My attempts at creating a category with PHP fails while flat_categories are enabled in the system. Reference here. So, I want to create a new category in Magento 2 using SQL. How would I do that?
0
votes
0answers
22 views

Magento 2: Products not showing in search but in catalog is ok

I have a problem with my catalog. Products are visible in catalog category view pages (I can do any action - add to cart, buy...) but when I want to search any product then not showing in search ...
0
votes
1answer
35 views

Override “Out Of Stock” message

Okay, I'm a dufus. I am trying to override the "Out of Stock" message displayed on the product page to "Sold Out". Currently using Magento 2.3. Create an i18n folder in my custom theme folder, en_Us....
0
votes
0answers
17 views

Display product brand in catalog grid list

I need to show the product brand in the frontend general catalog grid list. Actually it's displaying the product image above and below it the product name and price. I found the file I need to edit ...
0
votes
1answer
17 views

Create Magento 2 Bundles with different quantities of the same product

I'm currently running Magento 2.3.2. The Company I work for sells a number of products in bundles of varying quantities which we call "Stacks". For example a product can be sold in bundles of either ...
0
votes
0answers
13 views

Get current product categories of current store only in Magento 2

I made the following in Magento 1 for a multi-store website: $rootCategory = Mage::getModel('catalog/category')->load( Mage::app()->getStore()->getRootCategoryId() ); $sameStoreCategories = ...
1
vote
0answers
14 views

How to get catalog in stock on frontend?

I have done everything everyone subscribes everywhere From reindex, in stock, manage all, quantity, databases check, double check But products just don't appear on front end because it says out of ...
1
vote
0answers
17 views

Store, websites Magento 2 catalog

I'm very confused. I exported all my products and saw I have the same product in default store and "no store", I mean, my catalog have the same products twice. Not sure what it causes and how this ...
0
votes
0answers
9 views

Magento2 - Force load Product page after 'Add To Cart' is selected on Catalog page

In Magento-2.3.2, How can we always make the Product page load after 'Add To Cart' is selected on Catalog page? Thanks!
0
votes
1answer
28 views

Magento2 : Override Category List page with No dependency on Other Custom Module

I want to override category.products.list to display 1 custom attribute value to each product in list. and i know i can override product/list.phtml to my module and there i can customize code in loop ...
0
votes
0answers
24 views

Magento 2 Image Cache Files are not Updating in Product Catalog

I'm currently experiencing an intermittent issue with my product images in my installation of Magento 2.3.2. Essentially I upload a new image to replace an existing image, the image updates in the ...
0
votes
0answers
18 views

Magento2 configurable product not showing original price on list.phtml

Magento2.2.5 On a configurable product where each child product has the same special price assigned what i want is on the category listing to show the special price and then the original price ...
0
votes
0answers
23 views

Magento 2: Show price for out of stock configurable products

I have Magento 2 site with multiple store views. My requirement is that, I want to show price for out of stock configurable product price when I tried to get product id in final-price.phtml in that ...
1
vote
1answer
32 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 ...
1
vote
1answer
44 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 ...
0
votes
1answer
29 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 ...
0
votes
1answer
55 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 : ...
1
vote
0answers
25 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
84 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/...
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.
0
votes
2answers
89 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
24 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
64 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
1answer
22 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 ...
0
votes
0answers
25 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
0answers
20 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
22 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
1answer
36 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
31 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 ...
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 ...
1
vote
1answer
66 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
60 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 ...
6
votes
3answers
135 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
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 ...
0
votes
0answers
14 views

How to auto fill drop down from picture choice

I have an e-commerce site using Magento 2. I have a product with multiple color options. I have managed to configure the drop-down menu to change the relevant images when colour selected however I ...
0
votes
2answers
59 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
0answers
32 views

How can I get Gift card Amount value in .phtml file

I want to get a minimum Gift card Amount value in .phtml file. I want to show minimum gift card amount value when gift cart product is out of stock My getGiftcardAmount() function is in '/vendor/...
4
votes
1answer
56 views

Magento 2 issue on category page and product page of “inventory_stock_1” table?

I am facing issue on product page and category page. Can any one suggest or guide me on this ?
0
votes
0answers
25 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
0answers
13 views

I have a product that has the same ID between two seperate stores but has different product names

How did that happen? Same SKU as well between both stores. When i search a keyword to find the product in the product grid it only returns one product. However, I get a different product when ...
0
votes
0answers
21 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
2answers
50 views

Creating a product programmatically without deprecated functions

I have the following code which creates a product programmatically but it uses deprecated functions eg the save Therefore my question is how do you create a product programmatically without using ...