Questions tagged [catalog]

It should be used for questions regarding the catalog module.

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

Magento 2 - Apply filter on Product collection

Is there any common event or plugin to apply the filter to product collection which includes product list page, related products list as well as upsell and cross-sell product list? If no, then how ...
0
votes
1answer
31 views

Display Catalog Info on page

Is it possible to display the Magento product catalog (just a select few columns) on a page on my company site? My company's Magento install is integrated with our ERP system so it shows real-time ...
0
votes
1answer
113 views

Magento 2 overwrite checkout.cart.item.renderers block

I tried to set a new template for checkout.cart.item.renderers block and i found some issue, beucause I didn't know that i have to overwrite separately each type of product. I will post my solution, ...
1
vote
1answer
911 views

Magento 2 How to set product minimum quantity selected to minimum qty configured in the Advanced Inventory product level

If 5 is the minimum Qty on Advanced Inventory product level for a product then in Product detail page it should as 5 default selected. How can I achieve this.
0
votes
1answer
740 views

Magento 2 : Catalog access by customer group

I want to restrict product by customer group. For mapping, we added an attribute to product called group_ids where admin can select multiple customer groups I want to restrict customer to access ...
0
votes
1answer
155 views
0
votes
1answer
61 views

Magento 1.9 Visibility : Orphaned

In one of the project i saw visibility as orphaned as far i know there is no by default functionality to set visibility as orphaned. I trying to know how this option is created because when we set a ...
0
votes
0answers
75 views

Load ajax after using observer

I have added this JS code inside catalog-add-to-cart.js : var popup = $('<div class="add-to-cart-dialog ajoutPanierModal"/>').html('<span>Le produit a été ajouté au panier.</span>')...
1
vote
0answers
42 views

How to implement logic for the copy an attribute value to another attribute based on the attribute sets?

We have some attribute sets like BCDs, Polespears ...etc and respected attributes like bcds_color, polespears_color ..etc would like to copy the value from attribute set based to "ca_color" ...
10
votes
2answers
1k views

How to get product's price in all allowed currencies?

I have a setup with two store views. The first store view has base and the only one currency set to USD. The second one has 2 allowed currencies - USD and EUR. EUR is the default displayed one, USD ...
0
votes
1answer
62 views

Programmaticaly use catalog permission based on user group

Is there a way to restrict catalog / product page based on user group (for example, if my user is in the group "A", he will see only product for the group "A") ? Ideally by avoiding paid extension if ...
0
votes
0answers
16 views

Ask if user want to add another product (up selling ?)

I have two issues : I need my user to add one product (1) on his cart. Then, when this product is added, I want to ask if the user wants to add another product (2) The product (2) is available only ...
11
votes
3answers
11k views

Find out to which categories a product belongs to

I opened a product in the backend, but when I switch to the categories tab, the category tree is fully collapsed. I would have to expand all categories to see in which ones the product is in. How can ...
0
votes
1answer
71 views

How to show “out of stock” in ONE category only while hiding them from all other categories?

I am trying to display out of stock product in only one category. I have already change admin setting "display out of stock" - No any idea how to display it in one category.
0
votes
0answers
120 views

Default sort order for default sort attributes

So it is already possible to select custom attributes for the default sort order in categories. But this sorts by default ascending. If we have - like in our case - a popularity rating which is a ...
1
vote
1answer
81 views

Magento 2.2.5 large multi-store catalog categories not updating

I have a drop down Make Model Year parts finder on my store's front end that uses a three-level category tree with 3,000 subcategories. The same tree is used across five stores with subcategories ...
2
votes
0answers
30 views

how I add category dropdwon with custom option in magento 2 [closed]

how I add category dropdwon with custom option in magento 2
1
vote
0answers
15 views

Add new column to individual options?

I try to add radio buttons to all individual options (Catalog -> Manage Articles -> Open a configurable article -> Individual Options) so that the backend user can pick which one he likes to be ...
2
votes
1answer
155 views

Group Collection to Filter Unique Products Based on a Specific Attribute

Scenario: A store catalog is populated with configurable products each having several children with different sizes and colors. As the goal is to show the different color variations, only the ...
1
vote
1answer
248 views

Magento 2 Equivalent for Mage::getModel('catalog/layer')

For Magento1, On:- app/design/frontend/Mypackage/Mytheme/template/catalog/product/view.phtml I'm using following code:- Mage::getModel('catalog/layer')->getCurrentCategory()->getId() Same code I ...
1
vote
1answer
286 views

Overriding model file is not working in Magento 2.2.5

I tried to override model, but it is not working. I need to override: Magento\Catalog\Model\Product\Attribute\Backend\Price to Pawan\Catalog\Model\Rewrite\Product\Attribute\Backend\Price But it ...
1
vote
1answer
408 views

How to load custom template file for product detail page in magento2

I am looking for code how we can load custom template file for product detail page? I need to remove default magento2 detail page, I have tried below code to achieve it, {{block class="Magento\...
0
votes
1answer
186 views

Remove item from category collection in Magento 1.9

I have a category collection in Magento 1.9 This is my code :- $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ->...
0
votes
2answers
150 views

how to remove white space from product name during custom product collection?

I am getting stuck with white space in set order during product collection in magento 2. I want to get product details with ascending order via name but name has white space. I have removed white ...
5
votes
2answers
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
2answers
986 views

How to Display 5 images by default in magento 2 product gallery vertical

I need to show by default 5 images in magento prduct page gallery. I change the view of gallery is from vertical to horizontal. I need to know that which js file i have to modify for display default 5 ...
0
votes
0answers
126 views

Force customer to log in when visiting a specific category Magento 2

I have found that https://github.com/bitExpert/magento2-force-login and I just install it but I don't know how to use it: how to force not logged in the customer to login or create an account before ...
0
votes
1answer
450 views

Magento 2 : Error 503 first byte timeout

Getting this error when i'm update product from product grid using update attributes. Error Page:
1
vote
0answers
37 views

Magento 2: Is it possible to create Product attributes sets and their options programmatically but not during the install

We are developing a REST API that extends magento 2's functionality. One thing we need this API to do is to create attributes "on the fly" based on the custom JSON product payload sent. For example ...
0
votes
1answer
251 views

How to disable the infinite scrolling and revert back to normal page? [closed]

currently using strategery infinite scrolling and my magento is CE 1.8 would like to revert back to normal page scrolling like PAGE 1 of 2
1
vote
1answer
79 views

Magento 2: Upsell programmaticly add products only adds last item

I am trying to add upsell products automaticly with the Magento\Catalog\Api\Data\ProductLinkInterfaceFactory class, I added following code: EDIT CODE IS UPDATED WITH AN WORKING EXAMPLE $i = ...
27
votes
3answers
20k views

where does is_salable come from?

Note: If you've been editing products by PHP code, then re-index them in the admin after, save your self hours trying to work out why they not showing like me below ... I am going round in circles ...
0
votes
1answer
521 views

Magento 2.2.3 Getting an Error While Saving Product?

I am facing one issue while saving/update the product in magento 2.2.3 CE SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that ...
0
votes
2answers
587 views

Magento 2.2.5: Explain about Position in “Catalog_Category_Product”

I'm looking for an explaination about column "Position" in table "Catalog_Category_Product". I dont understand what is 0 and 1 in that column, and what does it for? Thanks for reading. Have a good day ...
3
votes
0answers
138 views

How to use modifier in product_action_attribute Form?

I have created an eav attribute and modified the field inside edit product form, that was easy. But in products mass action (Update attributes) page, the field I have created, by eav Attribute and ...
1
vote
3answers
3k views

Magento 2 - Bulk update SKU's

I need to perform a SKU bulk update in an existing store. I found this script: http://vagento.com/update-bulk-product-sku-using-csv-magento-2/ that works great. The only problem is that after SKU's ...
3
votes
2answers
3k views

Shipping methods not showing

During checkout, I get a long list of "€0" for my shipping methods: However, in the admin panel, I enabled only the fixed shipment option and set it to €5 per order. I'm using Magento 2.0.8. ...
0
votes
2answers
586 views

Magento 1.9 : How to Edit the price of all products؟

I want to increase the price of all products And if I want to edit each one It's very time consuming Is there a way to group?
1
vote
1answer
33 views

Get the product of review?

I'm listing all the reviews on a particular page of my magento store: $review_collection = Mage::getModel('review/review') ->getResourceCollection() ->addStoreFilter(Mage::app()->getStore()-&...
0
votes
0answers
20 views

Magento2 Mysql is using full CPU and running the same query over and over again

We are running into the situation where the Mysql is using full CPU and running the same query over and over again. SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `...
0
votes
1answer
515 views

Magento product collection override sort order with own order

I'm using Magento 1 and inside catalog/product/list.phtml I use the following code to add a custom sort order product_on_top: <?php $_productCollection=$this->getLoadedProductCollection(); $...
2
votes
1answer
182 views

SQLSTATE[23000]: Integrity constraint violation when searching on frontend

On my frontend when I type anything in the search box I get the following error: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'position' in order clause is ambiguous, query was: ...
0
votes
1answer
319 views

Magento2: catalog_product_view.xml

Here what happen I am trying to add my custom phtml file in catalog_product_view.xml. Underneath: <referenceContainer name="content"> <container name="product.info.main" htmlTag="div" ...
0
votes
1answer
232 views

Not able to reindex “Catalog URL Rewrites”, all other index are indexed fine in magento 1.9.3.8

I have upgraded Magento 1.9.1.1 to Magento 1.9.3.8. After this I am not able to reindex "Catalog URL Rewrites" index while all other index are working fine (I am able to index them). I am getting ...
1
vote
1answer
403 views

Get all products collection which have 5 star review

I need to get all the products from my magento store, Which have 5 Star reviews and rating.
23
votes
3answers
24k 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 ...
0
votes
2answers
295 views

Hide grouped/configured product with zero visible sub-products

I have a site running Magento EE 2.2.2 and I have lots of Grouped and Configured Products. I turned off "Display Out of Stock Products". As expected, when a sub-product is out of stock, it is not ...
0
votes
1answer
675 views

401 Authorization Required Magento 2 REST API

I'm trying to get the list of all magento2 products but I'm getting 401 authorization error. I tried the below methods and in all methods I'm getting the mentioned error! First Method: $userData = ...
5
votes
2answers
5k views

Magento 2 table name for product visibility

In which db table magento is saving the product's visibility such as catalog/search , catalog, search, Not visible.
1
vote
1answer
533 views

Category grid Display - Item Hover

On main category page when I mouse over each product - this is how they show. Product image displays - Title/Price get covered up. There seems to be another hover box behind and below the main one ...