Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
2
votes
2answers
580 views

How to get cart price rule collection in magento 2?

I want to show cart price rule on product page. How to get collection of cart price rules?
1
vote
2answers
2k views

Category with the 'categorgyurl' url_key attribute already exists

While programmatically creating category, using the below code, i got a error Category with the 'categorgyurl' url_key attribute already exists code: $category = new ...
2
votes
2answers
2k views

Magento 2 override the product collection(Magento\Catalog\Model\ResourceModel\Product\Collection.php)

We want to override the product collection model class(Magento\Catalog\Model\ResourceModel\Product\Collection.php) We flow the below process to override the addAttributeToSort method but not working. ...
0
votes
0answers
18 views

How to customize the keyword search query in magento1

Example - Suppose if Product name is "abc-def" then search result will come who start with that name(abc-def) but i need if user search "abcdef" then my result would be come which product name start ...
2
votes
0answers
29 views

Customer specific product offering - Best practice

To build an e-commerce site that offers a specific set of products for each state of a country, what would be the best practice to be followed from below listed approaches (or another approach) to ...
4
votes
4answers
33k views

Get category collection from specific store

With flat tables turned off, how can I get a category collection from a specific store view ? I have tried the following: Mage::getModel('catalog/category')->getCollection()->setStoreId(3); ...
3
votes
1answer
1k views

Magento2: Show subcategory as a grid with images

I need to display all the sub categories under every category as a grid in relevant pages with linked images. Is there a way to do it ? I am using magento 2.2.4
1
vote
1answer
258 views

Missing add to cart button on some items

We're experiencing a strange issue with our catalog, I'm scratching my head of where to start looking for... Here are the symptoms: Item X - doesn't have the "Add to Cart" Button. When I go to the ...
1
vote
1answer
19 views

Magento : Is the layout reference scoped for an specific handle?

When I put the following block inside catalog_category_layered handle, it works and I can call it by getChildHtml(). But when I insert it in default handle it doesn't work at all. Is the catalog.layer....
3
votes
1answer
591 views

Catalog Price Rules “Apply Rule” button not showing

We have tried to create catalog rules with category condition and it's not working. Also, we are unable to see Apply Rule button. Please help
2
votes
0answers
76 views

Magento 2.2.5 - Delete all products and products images

I have a site with Magento 2.2.5, with thousands of products imported via Magmi v0.7.23-git with csv. I tried to delete all these products with the Magmi utility 'Clear Catalog v1.0.4', and then ...
1
vote
1answer
52 views

SetId on category results on exception

I would like to set my ID on the category Category::setId but this results in the following exception: "No such entity with id = x". My code: $catFactory = $objectManager->get(CategoryFactory::...
1
vote
1answer
38 views

i add to custom filed in category form for upload image but facing issue that i mention below

string category Menu Image true fileUploader ui/form/element/uploader/uploader ...
3
votes
0answers
72 views

How to show/hide shared catalog enabled categories in layered navigation in Magento 2?

We have enabled the b2b extension. When we select specific categories on shared catalogs, it hides only on the mega menu, but layered navigation still lists the categories. How can we hide it from ...
3
votes
1answer
46 views

Magento 2: Product List Not Showing in Catalog and Search

I am having a problem with the product list when adding new products. It was working properly until I added a new product. Then, the product list stopped being visible in the catalog pages and search ...
1
vote
3answers
515 views

Magento 2 - How Can I Update Catalog Product Price Programmatically in Frontend and Add Product to Cart With New Price?

I create one Module and make a custom form which is display in the catalog product view page. when the customer change option from dropdown then the product price will change and also that updated ...
1
vote
0answers
101 views

How to redirect to 403 custom error page in magento2 from controller

I am trying to redirect to custom 403 error page. I have created plugin for controller as follow: etc\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
106 views

My standard search and frontend categories are broken!

The Magento multi-store site I was building for my work was very nearly complete when I went to search for a product and it didn't work. Not only did it not work but the footer disappeared on the ...
0
votes
0answers
18 views

How to works catalog search?

When I do some searches in the catalog using global search, Magento shows me some weird results of products not related. For example, if I search for "500" string in global search, it shows prodcuts ...
1
vote
0answers
17 views

Magento : How to set product type as 'Simple product' when adding new product? OR how to change the product type from virtual to simple?

Currently, when I am adding new product its product_type is set to 'Virtual'. I am adding simple product as shown in below image. Why this is happening while adding the product of type simple.
2
votes
1answer
376 views

Magento 2 Add discount on bundle product on add to cart time

I have to add some discount programmatically on the time of bundle product add to cart. So far I have developed the catalog product plugin Magento\Catalog\Model\Product function afterGetFinalPrice ...
1
vote
1answer
126 views

magento 2 Deepest Category product list page gives Error 500. Which files to inspect?

The site I'm working on the lowest category page (suppose to be list view) give the error 500. I'm not quite remember file I edited. search result also return the same error. Which files should I ...
1
vote
0answers
115 views

Magento 2 catalog search for SKU with dot not working

our SKU's have dot's like: "120.00085" If I search this string I get all products with "120.XXXX". But the product with exact this SKU is not at the first position in the results. Is there any ...
2
votes
2answers
2k views

Magento 2 product changes not reflecting on frontend after updating from admin

I update catalog price from admin, but the changes is not reflecting on frontend. This needs to deploy static content and cache flush every-time, I change something in admin. Is there any solution ...
2
votes
0answers
1k views

Something went wrong with processing the default view and we have restored the filter to its original state

I got this error when I go to Catalog > Products and select a filter. I'm on Magento 2.2.6. Magento says this bug is supposed to be fixed on 2.2.6 but clearly it's not.And unfortunately I do not ...
1
vote
0answers
116 views

How to remove watermark from image from the product grid in magento2?

I have uploaded one product using csv with base,small and thumbnail images. I am not getting watermark images for base and small but for thumbnail image which are used in product grid. So how to ...
0
votes
0answers
11 views

Trouble with 'Manage Products'

When we try to go to next page in Catalog > Manage Products the screen just freezes on please wait. Any tips would be very helpful. Thanks
0
votes
1answer
34 views

Magento 2 - Edit Price/Quantity from Catalog > Products main view

Is it possible to edit information for products (such as the quantity or price) on the overview page? For instance, I have 15 products pulled up, and need to add stock to all of them (but different ...
2
votes
1answer
294 views

1.9.2 catalog price rule - Cron not working.. Discounts disappear

Applied Catalog price rules but they are being removed within 24 hr period. So far I have; *added end dates to rules *re-indexed *flushed cache *change time zone code (as per other posts suggestions) ...
0
votes
1answer
149 views

Solved: Magento 2 move productpage title around div

I want to move the product page title around a container div. I added the following to my catalog_product_view.xml file, but that does not add the div with class container. What am I missing? <...
1
vote
4answers
4k views

How To Get Current Product ID in Model

Im trying to retrieve the Current Product ID inside the Tax-model-Calculation.php (code in -> https://github.com/adam-paterson/magento-ce-1.9.0.1/blob/master/app/code/core/Mage/Tax/Model/Calculation....
0
votes
2answers
1k views

Change product url when changing product name

Are there any extensions or settings that can change the product url when you change the product name. Before example: Product name: Product 1 Product url: product-1 After example: Product name: ...
1
vote
1answer
487 views

Magento 2 Override Gallery.php file

I would like to override /vendor/magento/module-catalog/Block/Product/View/Gallery.php file getGalleryImagesJson function In result I would like to get - public function getGalleryImagesJson() { ...
0
votes
1answer
113 views

Magento 2 - Enabling Flat Catalog causes SQL error. Reading from “report” tables

When I enable the flat catalog in my Magento 2.2.5 installation, I get an error. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.name' in 'field list', query was: SELECT COUNT(...
1
vote
0answers
112 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
1
vote
0answers
226 views

ACL Resources Access Customization and Admin form customization

I am new to magento so can somebody please help me out? I have created a new user (belonging to custom role group = vendor) who can login to admin panel and add their own products, for that i have ...
0
votes
0answers
114 views

How to implement “Uses Per Customer” in Catalog Rules?

How can I implement "Uses Per Customer" functionality (Same Like Cart Price Rules) in Catalog Rules? Say for example. If I enter 3 in Uses Per Customers. Catalog Price rule has to apply only 3 times ...
2
votes
1answer
1k views

Magento SEO implement rel=“prev” and rel=“next” meta tags

I'm attempting to improve SEO for my product catalog by implementing the <link rel='next' href='..'> and <link rel='prev' href='..'> head meta tags for catalog pages with several pages of ...
1
vote
0answers
25 views

Magento 2 - “url_key” Product Attribute, force as required and unique

Is it good practice to force the "url_key" product attribute to be both "required" and "unique" by default? update eav_attribute set is_required=1,is_unique=1 where attribute_code = "url_key"; As ...
0
votes
1answer
22 views

How to get Magento 2 product image on custom phtml by product id Without loading product collection

I need product image on custom phtml in magento 2. Product is collection is a array not object. I just want to product product_base_image , without loading product collection. I tried <?php ...
0
votes
1answer
27 views

Not showing newly added products in magento

I have import products through magmi, products is imported successfully, but the products are not showing in frontend, please help me.
0
votes
2answers
437 views

How to get product image by product Id in magento2

I am not able to get the absolute path of image by product id in magento2. Can anybody help me? I am able to get media path so far by directoryList class by doing this $this->directory->...
2
votes
2answers
3k views

How do you manage inventory for a grouped product?

Let's say that you sell tickets for an event, and you have the following constraints: A max of 40 tickets can be sold for a given event slot You have 5 different price tiers but you can accomodate ...
1
vote
2answers
2k views

issue in Mage::registry('current_category'), return only the same value for whole category pages

When its come to Mage::registry('current_category'); is a common question. After searching several pages,stack exchange and stack overflow i feel to post this question as i am unable to find a ...
0
votes
2answers
30 views

how to get productId in sign up or sign in page when full page cache on in magento2?

I want to redirect page if customer come from product page ->sign up page i want redirect them after sign up on product page. But i am not getting product id on that page if full page cache is on in ...
4
votes
3answers
6k views

Magento 2 : How to Add quantity increment & decrements button on product details page

How to add increment(plus +) and decrements(minus -) qty button on product detail page?
3
votes
1answer
197 views

Magento 2 Catalog Rule Condtions

I am trying to implement Magento 2 catalog rule condtions in a custom module Ui Component form. Below is the field set: <htmlContent name="block_promo_catalog_edit_tab_conditions" sortOrder="20"&...
0
votes
0answers
117 views

Magento 2 - How to get product custom option values in custom file?

I want to override custom options template file.I want to show static image with each option value. I just create a custom file in Catalog module but don't know how to achieve this task? app/design/...
0
votes
1answer
46 views

Staging environment to manage the catalog

I would like to be able to manage the catalog in a staging environment and make sure that in cron (or other way) the catalog (categories and products) synchronize from Staging to Production.
0
votes
0answers
842 views

Magento 2.2 Catalog Price Rule Wont Apply

I am using Magento 2.2. I have set Catalog Price Rule. I have saved and applied for all. I have cleared the cache. I have also Reindex all Magento 2 indexers using below commands: php bin/magento ...

1 3 4 5 6 7 19