Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
4
votes
2answers
10k views

How to override core catalog block product list?

I am trying to override core/catalog/block/product/List.php with following Ref:http://www.magentocommerce.com/boards/viewthread/14692/ file: Ziva/Customcatalog/etc/config.xml <config> <...
24
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 ...
8
votes
1answer
17k views

Changing the Attribute Set for a Simple Product

Basically the subject. I have a simple product created with a particular attribute set. Is there a way to change the attribute set associated with this product without having to create a new one?
1
vote
1answer
3k views

Theme error in Magento

I'm trying to add products to a page. I used this code in contents of the page. <p>{{block type="catalog/product_list" category_id="4" template="catalog/product/list.phtml"}}</p>. And I ...
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 ...
13
votes
5answers
12k views

404 on Store Switch with Product Store View Scoped URL Key

By default URL Key on product page is Global scoped. EDIT: As suggested by FlorinelChis the scope can be changes in Manage attributes. However this breaks the store view switcher behavior. This is ...
10
votes
4answers
14k views

Hide Attributes and Other Fields in Product Edit Backend

To make editing of products (and maybe also categories) for the shop owner easier, we would like to hide some unnecessary tabs and fields from some users in the admin backend. This means: Hiding some ...
9
votes
1answer
13k views

Parent category is showing products in subcategories, even though product was not assigned to parent category

Let's assume I have a category, Clothing and this category have a sub-category, T-shirts. Now I add a product to the T-shirts category (by checking the box in the add product screen), but I don't ...
3
votes
1answer
676 views

Strange behaviour with loading entity by attribute

Maybe I'm missing something fundamental by how can it be that the following code works fine and finds an entity: $model = Mage::getModel('catalog/category')->loadByAttribute('url_key', $...
34
votes
5answers
19k views

How to set a store ID on Mage_Catalog_Model_Resource_Product_Collection?

The task is trivial. I need to get list of products for particular store view with a flat catalog enabled. The most obvious solution is the following: $collection = Mage::getResourceModel('catalog/...
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 ...
4
votes
2answers
4k views

How does the Sort Order of Products in Subcategories work?

When adding a product to a category, a sorting order value can be specified. Imaging now we have a Category "P" set to "Anchor" and various categories "C1" and "C2" which are childs of "P". How is ...
16
votes
2answers
18k views

When should I use the category flat table option?

As a follow-up to a previous question I would like to know: When should I use the category flat table option? While googling I found an advice to enable it "when you have very much categories". But ...
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 ...
3
votes
4answers
9k views

Pagination on products page

I need to show products pagination in the file template\catalog\product\list.phtml. How can I do it? Probably I need to edit catalog.xml but what to change I don't know.
15
votes
7answers
4k views

Fatal Error in Admin Pages

I have magento 1.7 installed and it worked fine till now. I import products on daily basis. If there is any new manufacturer, I add it in drop down based Manufacturer attribute. Today, I have added ...
4
votes
3answers
11k views

An error occurred while saving the URL rewrite

I have a store running 1.7.0.2 (updated from a clean install of 1.6). The store keeps running into the "An error occurred while saving the URL rewrite" error. The store is a very simple installation ...
8
votes
1answer
13k views

Link for action column in custom grid

I have a custom grid which resembles the Manage Products grid in Catalog Menu. I need to get the corresponding action link to each entity item. How do i do that? My custom grid is declared in the ...
4
votes
3answers
2k 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 ...
4
votes
4answers
32k 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); ...
4
votes
1answer
673 views

Is it possible to display OOS products in last even product sort by name/price etc

We have to display all In stock products in starting position even if we sort by name or any other criteria, we have to display out of stock product in last position. How can we do this in all type ...
3
votes
3answers
10k views

How can i remove category title (H1) from a specific page of catalog?

How can i remove category title (H1) from a specific page of catalog? I deleted breadcrumbs using a code xml: <remove name="breadcrumbs"/> Is it possible to replicate this with H1? Thanks!
1
vote
2answers
3k views

How to add custom phtml in catalog view page in magento2

I want to add some custom code in my catalog category view page. I don't want to override product/list.phml file . But just display my custom code in catagory view page. How to add it?
0
votes
1answer
2k views

How to show multiple attribute swatches on product listing page? [duplicate]

Magento allows showing only a single swatch attribute on the product listing page. Is there a way to show more than 1 swatch attribute on the product listing page?
3
votes
3answers
19k views

How to get category name and url on product template?

I'm trying to get breadcrumbs working on product page. I need to display current category and url template file: catalog/product/view.phtml I have tried the following: $categories = $_product->...
3
votes
3answers
5k views

Programmatically duplicated product not getting displayed in frontend

I use the following script (inside a controller - action for now) for duplicating a product programatically. public function createAction(){ $data = $this->getRequest()->getParams(); $...
3
votes
3answers
5k 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?
2
votes
1answer
3k views

Magento 2: How to hide quantity box for certain products which has only quantity?

I have certain products, which customers can buy only one. So whether needs to remove Qty box for that products only or can be managed from settings?
1
vote
1answer
47 views

Product Now Showing Up

I have created a product, and made it visible in Catalog and Search, and I have it in a Category. The Category is showing up, and I can navigate to it, but it has not products listed within. Do you ...
1
vote
2answers
872 views

Magento Sort Categories Alphabetically using SQL Query

The below sql query isn't working for some reason, has anyone got any ideas what is wrong? SET @i=0; SET @j=0; DROP TABLE IF EXISTS AAA_NEW_POSITION; CREATE TABLE AAA_NEW_POSITION SELECT e....
1
vote
1answer
3k views

Do not apply catalog price rules on a product already on sale

We are runnning Magento EE 1.13. We have a very large catalog (20 000 products) and 2000 categories. We run a lot of sales but we do not use a sale category. We simply add a special price to the ...
1
vote
1answer
996 views

Set product sku as product id

i'm working on a website which doesn't need product sku. Is it possible to set the sku=product_id whenever a new product is created? Any side effect doing that? thanks
0
votes
2answers
1k views

Magento 1.7.2 Problem cannot reindex product_flat_data even via ssh after dropping table please help

I have a problem when I try to reindex product flat data, the reindex of product_flat_data doesn't work. Message says "There was a problem with reindexing process." and I have tried various solutions ...
14
votes
2answers
6k views

Move out of stock products to the end of the catalog product list [closed]

I need to push out of stock products to the end of catalog list Please guide me how to solve this problem, or that file to dig so far I found Toolbar.php, and working around it
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? //...
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 ...
8
votes
1answer
1k views

Product page tabs disappeared in admin after trying to add a new product attribute

I just followed instructions in this link, in order to add a new product attribute. After that most of my product tabs disappeared. Here are my final codes: /app/code/local/MyCompany/MultiSlider/...
4
votes
2answers
398 views

How to add group product into the cart individually?

I have two simple products associated with a group product at the product description page and have a separate add to cart button with each product I want to add these products to the cart ...
3
votes
2answers
758 views

Magento 2 (2.1.4) - Product details is not opened in Admin Grid

I have updated magento version 2.1.3 to 2.1.4 via composer. Its updated successfully without any error.Everything works perfectly ! except product catalog admin grid. But after update 2.1.4 version ...
4
votes
3answers
219 views

How to load less products on the mobile/tablet front page?

Magento CE 1.9.1 Porto theme We have way too many products on the front page (it works well for us on the desktop) which is not so good for Mobile users (including mobile phones and tablets). Is ...
4
votes
3answers
4k views

Discount for category and its subcategories

For example I have: Mobile -> Apple Mobile -> HTC Mobile -> Nokia I want to give 5% discount for all product in these categories. Is there any way to do it without creating a catalog price ...
4
votes
1answer
10k views

How to change layout of category list page in magento 2 by xml

I want to change layout of category listing page from 2columns-left to 1column by xml. for this what i have tried so far. In root\magento-ce-2.0.0\vendor\magento\module-catalog\view\frontend\layout\...
3
votes
2answers
2k views

How to extend a core Product List Block model?

I want to extend pring a function into magento where I assemble some product data. In the end I want to call a function like $this->getAlternateTitle() within Lists and Products. This is what I ...
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
3
votes
3answers
3k views

Programmatically Save Related Products

I need to set a particular product as related product for all the products.Here is the code that I've tried. $product=$observer->getProduct(); $id=52; $data=array( $id=>array( ...
2
votes
1answer
900 views

Magento 2: How to get stock of a product?

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

how to enable bluefoot cms pagebuilder for category and product section in magento 2

Magento default provide bluefoot cms enable option for CMS block & CMS page. Need to enable bluefootcms editor in category and product level.
2
votes
1answer
607 views

Magento 2.1.4 - List of products which have special price with widget conditions

I try to do a list of the products which have a special price defined. So I created a widget like that : But even the products which have their "Date To" that is passed are shown. Is it possible to ...
2
votes
1answer
1k views

how to add an image programmatically from any url in Magento 2?

I try this code but if the image doesn't exist in this path pub/media/catalog/product; it doesn't work. I want to add an image from any url; any ideas for that ? for ($i = 0; $i < count($...
2
votes
1answer
350 views

stop filter block from moving to state block on selecting any filter option

i am not able to keep the filter on page as i select any one from them. On selecting any filter it moves to the state Block. So, what do i do to keep it from moving to the state block?