Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
4 votes
2 answers
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> <...
zamil's user avatar
  • 632
27 votes
4 answers
33k 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 ...
mdeveloper's user avatar
8 votes
1 answer
18k 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?
Karlson's user avatar
  • 747
1 vote
1 answer
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 ...
brainReader's user avatar
33 votes
7 answers
15k 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 ...
develophper's user avatar
  • 2,214
13 votes
5 answers
13k 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 ...
Fra's user avatar
  • 6,965
11 votes
1 answer
16k 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 ...
ProcessEight's user avatar
  • 1,000
10 votes
4 answers
17k 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 ...
Alex's user avatar
  • 13.8k
4 votes
2 answers
6k 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?
Jackson's user avatar
  • 9,909
3 votes
1 answer
691 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', $...
Tim Bezhashvyly's user avatar
3 votes
3 answers
21k 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->...
Vlad Vinnikov's user avatar
3 votes
3 answers
7k 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?
Rohan Hapani's user avatar
  • 17.4k
34 votes
5 answers
21k 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/...
Tim Bezhashvyly's user avatar
32 votes
3 answers
28k 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 ...
Hayden Thring's user avatar
16 votes
2 answers
19k 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 ...
Celldweller's user avatar
15 votes
7 answers
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 ...
sunlight's user avatar
  • 151
14 votes
2 answers
9k 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
Alexandr Sopkov's user avatar
9 votes
1 answer
14k 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 ...
basha's user avatar
  • 167
7 votes
4 answers
37k 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); ...
Marty Wallace's user avatar
6 votes
3 answers
18k 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?
Chirag Patel's user avatar
  • 6,126
5 votes
3 answers
5k 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 ...
Alex's user avatar
  • 13.8k
5 votes
3 answers
17k views

M2: Cannot gather stats warning

One of the products in my store don't have image associated with it, infact image was available on staging server and when moved to production image is no more available. I'm trying to re-upload the ...
Devtype's user avatar
  • 3,008
5 votes
4 answers
7k 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 ...
amith lal's user avatar
  • 790
5 votes
3 answers
16k 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 ...
snh_nl's user avatar
  • 5,442
4 votes
1 answer
1k 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 ...
Bijal Bhavsar's user avatar
4 votes
4 answers
11k 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!
user3873356's user avatar
4 votes
3 answers
12k 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 ...
John Nzime's user avatar
3 votes
3 answers
6k 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(); $...
Shathish's user avatar
  • 2,689
3 votes
4 answers
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.
CoalaArmy's user avatar
  • 538
2 votes
2 answers
4k 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 ...
Konstantinos Koletsas's user avatar
1 vote
2 answers
1k 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....
ChocolateTeapot's user avatar
1 vote
1 answer
1k 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
apedic's user avatar
  • 923
1 vote
1 answer
4k 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 ...
Danie Oberholzer's user avatar
1 vote
1 answer
50 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 ...
Kyle Challis's user avatar
0 votes
1 answer
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?
Shafeeque S's user avatar
0 votes
2 answers
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 ...
mlclm's user avatar
  • 125
0 votes
2 answers
3k views

Filter orders by specific product sku

I need to get order collection, Those orders have a specific product sku, Like I have a series of sku's "NT", So get all orders which are starting with "NT" $SKU = NP; $orders = array(); $collection =...
Ram Pratap Singh Gour's user avatar
31 votes
5 answers
76k 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? // ...
Ash's user avatar
  • 1,746
20 votes
3 answers
21k views

Magento 2.3 use of `db_schema_whitelist.json` file in etc directory of each module

What is the use of db_schema_whitelist.json located in Magento Catalog etc directory? In Magento 2.3 version, I found db_schema_whitelist.json and db_schema.xml files, in the Magento_Catalog module. ...
Softec's user avatar
  • 2,075
20 votes
4 answers
27k views

How can I fix "Item (Mage_Catalog_Model_Product) with the same id "xxx" already exist"?

I have been getting this error when trying to filter a products collection Item (Mage_Catalog_Model_Product) with the same id "6058" already exist and wanted to ask what could ne causing the error ...
user1704524's user avatar
  • 2,483
13 votes
1 answer
5k 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 described in DevDocs: http://devdocs.magento.com/guides/v2.0/ui-components/ui-secondary-inline.html The main problem is how to override this block of ...
user50138's user avatar
  • 296
8 votes
1 answer
2k 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/...
chamich's user avatar
  • 443
8 votes
4 answers
4k views

Always show full URL including categories for product

For our Magento webshop (1.7.0.2), we're trying to optimize the URL structure. We've already managed to improve some things, but in one things we didn't succeed. We want to use a full URL (including ...
Niels's user avatar
  • 1,406
7 votes
1 answer
6k 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($...
Jack's user avatar
  • 71
5 votes
4 answers
11k views

Magento 2: Add to Cart JS Override works on product page but not on category page

I override magento\vendor\magento\module-catalog\view\frontend\web\js\catalog-add-to-cart.js as I need to change the text from "Add to Cart" to "Buy Now" magento\app\code\Custom\Module\view\frontend\...
Jackson's user avatar
  • 9,909
4 votes
3 answers
450 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 ...
Allysin's user avatar
  • 260
4 votes
2 answers
3k 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 ...
shweta mudgil's user avatar
4 votes
3 answers
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 ...
MiMo's user avatar
  • 111
4 votes
1 answer
4k views

Remove from wishlist URL?

I'm trying to create a link to remove an item from the wishlist if it's there. The URL is returning /wishlist/index/remove instead of the correct URL which from what I've seen online should be /...
kel's user avatar
  • 443
4 votes
3 answers
8k 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 ...
Silvan's user avatar
  • 1,347