Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
3
votes
0answers
2k views

getLoadedProductCollection doesn't have any products in it [closed]

After some hours I'm unable to list the products in categories. (the products are set correctly, 100% sure) When I access a product direct by typing it's URL (or search) it goes just fine. But ...
1
vote
2answers
2k views

Category url always has wrong store in path

How can i get a category url rewritten for a specific store in magento? I have 2 stores: us and uk. Store codes: en_gb and en_us. If i load a category in code $store = Mage::getModel('core/store'...
1
vote
2answers
5k views

create custom category attributes dynamically in admin

I want to create custom category attributes dynamically in admin. I mean, how can I create custom category attributes in my Model class? Please suggest me proper solution to resolve this issue.
2
votes
1answer
2k views

Programmatically show parent and child categories on frontend

Currently these are being rendered with cms blocks. Is there a way to include this type of functionality in a template which gets categories and subcategories and displays them like so: We just want ...
1
vote
1answer
3k views

How to insert Categories into Magento programmatically?

This is the scenario: I am making a SOAP call from Magento to a CMS The CMS will produce and return a json encoded object of new Category names and some category properties ( Title, URL, Parent/...
0
votes
2answers
909 views

How to customize or reduce the size of register trademark symbol

In my magento frontend i am displaying categories in the header navigation, one of the category title is containing register trademark symbol. Now my question is how to reduce/customize the register ...
1
vote
1answer
4k views

Getting products position while using flat tables

Regarding the answer from Vinai here https://magento.stackexchange.com/a/5775/199 I have one follow-up question: How can I get the ProductPosition array when I use flat category tables? In my system ...
4
votes
4answers
14k views

How to list all parent categories

I'm trying to get all parent categories except root category from the collections returned using Mage::getModel('catalog/category'); My code : $_category = Mage::getModel('catalog/category'); ...
4
votes
1answer
13k views

Move layered navigation block between product list toolbar and product list

I have moved the layered navigation block into the content section however I can't figure out how to position the block. I can only get it to show at the very top of the page or the bottom. I need it ...
7
votes
2answers
11k views

Get subcategories of parent category when FLAT categories enabled

I override a block class Mage_Catalog_Block_Navigation (link to signature) to create a custom menu which displays only subcategories of current category. Inside method renderCategoriesMenuHtml (link ...
1
vote
1answer
507 views

display the number of product with static block in categories?

I am using magento 1.7. I create a category "A" and in it i create others categories. I created a static block and affect to the category "A". I wish to display the categories name and his count in ...
0
votes
1answer
4k views

Adding category title, image and description to above layered nav

I'm trying to make a small change to the 2 columns left design for the default category pages (specifically layer navigation). My design calls for adding the category title, description and thumbnail ...
2
votes
1answer
1k views

edit “Additional information” to an other name?

I would like to transform the "Additional information" to an other name like "feature". where file i will update or edit? Thanks
2
votes
1answer
749 views

Getting a products child category

I am looking for a way to get a products most child like category. For example if I have category1 -> category1.1 -> category1.1.1 I then need category1.1.1 Assuming I have a product ...
0
votes
3answers
2k views

All categories are disappeared in my menu?

Now I have a very big problem. All categories disappeared from my menu. All categories are active. I tried to refresh the cache and reindex all index but it didn't work. Any idea for my problem ?
0
votes
1answer
5k views

Call a pagination block in Category page [duplicate]

In the product display page(i.e., category page in catalog/product/list.phtml of grid view), before and after the product items Toolbar block is being displayed(with this <?php echo $this->...
0
votes
1answer
931 views

Magento module's block code is working in product details page but not working in category and list page?

In magento I am writing one module. In my module lets say I have mymodule.xml where I want to insert my own block after this block <catalog_product_view> <reference name="product.info"&...
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 ...
2
votes
2answers
125 views

How can I use Magento rewrite to use another CMS?

I am trying to find a way to load pages from another CMS into Magento. I was thinking of using a CMS page (maybe block page) that could get the content with PHP... And it would check the URL to see ...
0
votes
1answer
1k views

Sorting direction doesn't make effect

Please refer this url http://www.trendycollections.in/women-collections/salwar-kameez-1/party-salwar-kameez.html?dir=desc&order=id In the above url, sorting direction is descending order. if i ...
2
votes
1answer
10k views

Default sorting is not working

Please refer this following url http://www.trendycollections.in/kids-wear/boys-wear.html All sorting is working Fine. But I have different issue. In the above url if i chose Price lowest under the ...
1
vote
2answers
769 views

Same url for two different categories

please refer this url http://www.utsavfashion.in/newarrivals/saree Under the NEW ARRAIVALS category i have the subcategory named as SAREE, then All new catalogs is the subcategory of SAREE. Both ...
3
votes
1answer
447 views

Custom category designs won't apply without category url slug?

I'm experiencing a weird issue: Let's say category A has a custom design. When I open the product via domain.com/category-a/product.html the custom design applies correctly. But when I open the ...
2
votes
3answers
5k views

Custom URL rewrites for categories and products

we have category and product URLs already indexed by google so we need to add/modify Magento URL Rewrites to match those URLs. We are migrating one of the ecommerce store from yahoo to magento, but we ...
7
votes
5answers
35k views

Filter product collection by multiple categories?

I have this snippet of code that gets the most recently added products: $_productCollection = Mage::getResourceModel('catalog/product_collection') ->addAttributeToSelect('*') ...
0
votes
1answer
2k views

Continue Shopping Button to category of product in same store view or same parent category

There are answers all over the internet of how to alter the 'Continue Shopping' button to the last category. However none of them take into consideration that the product may be in multiple ...
0
votes
1answer
3k views

Top navigation menu stopped displaying

I am developing magento application using the enterprise edition. Everything was working fine until I gave an option 'Use Flat Catalog Category': 'Yes'. Now the top navigation displays only one ...
1
vote
1answer
1k views

How Display Category name in magento menu in two lines?

I am working with magento 1.7 and i have many long categories name in my site. I wish to split every long category name in two line in menu because i would like to display my menu in one row and not ...
0
votes
1answer
723 views

Show products from inactive category

Im using a code to get a product collection from a specific category, but if the category is inactive it returns empty to me. Is there a way to retrieve the products even if the category is inactive? ...
2
votes
2answers
7k views

Programmatic category update not taking effect until Save in Admin

I have a script that looks something like $parent = Mage::getModel("catalog/category")->load(50); $parent->setCustomUseParentSettings(false); $parent->setCustomApplyToProducts(false); $...
1
vote
1answer
50 views

How can I add a information for a view and apply it to all the similar views

My Magento is divided in multiple stores. One for each country that we sell too. And in views that are the different languages. Here is a screenshot of my setup: My question is: can I change ...
0
votes
1answer
314 views

Anchor Categories and Simple/Config Products

The Situation: All my categories are anchor categories. I have a big category tree with several levels in my shop. I am using configurable products and associated simple products. Sometimes I put a ...
0
votes
1answer
2k views

How to exclude specific category id in catalog search result?

I have to some change in magento catalog search result. I have to exclude specific category Id in catalog search result. I had tried in many way but not getting proper result. Please help me asap. ...
0
votes
2answers
4k views

Product doesn't appear in store view (Info: There are no products matching the selection.)

Issue: The product is not appearing when browsing the catalog from the frontend. Scenario: Product status is Enabled Product is Salable (In stock) Product is configured under Websites and ...
2
votes
1answer
4k views

show product reviews and form in category view

Client wants to show part of product information in category view. Got all descriptions, images and related products, but have problems with reviews and form. Can anyone help me, please? Code: In ...
0
votes
1answer
3k views

Show Category Thumb Image on startpage

How can I show the thumb image from a category on the shops home page? I added a getThumbnailUrl function in app\code\local\Mage\Catalog\Model\category.php but I don't know how to call it with CMS ...
1
vote
1answer
562 views

Products get unassigned from category once in a while

as the title says, I'm having a problem that's repeating from time to time and I don't know the final solution to avoid happening it again. I have lots of products assigned to certain categories under ...
7
votes
2answers
5k views

Impossible to save category with more that 1000 products

This is a known issue caused by PHP 5.3.9 and max_input_vars that by default it is set to 1000. The solution 2 proposed here it is the best in my opinion but doesn't work: for some strange reason it ...
0
votes
1answer
131 views

Add Images For Navigation

I'm looking to make a page similar to This site, so each image will represent a category of items. Im just not sure where to start looking . Any ideas
0
votes
1answer
274 views

Crop Images (category Image) on own templates

I create a new template in Magento. On that I'll get the Image-Output with this code. <div class="worlds-image"> <img src="<?php echo Mage::getBaseUrl('media').'catalog/category/'.$...
1
vote
1answer
106 views

Custom URL Per Category

I'm looking for a way to server my pages by category name. So for example I have Cellphones as the category . I then want the URL to be cellphone.mystore.com. How would I make this possible?
1
vote
1answer
1k views

Fetch catalogCategoryTree through Soap API fails with custom attribute

For a Magento 1.7.0.2 instance, I'm trying to integrate a custom attribute legacy_id in the category listing. This will be used to match categories from a backend system with the Magento categories. ...
5
votes
2answers
24k views

Import products with multiple categories

Hi I am importing products in my 1.7.0.2 new setup, I already added the categories. when i import the csv product file, all go well. But the problem is the product is added to only subcategory, it is ...
1
vote
1answer
1k views

products show up on category page but not in collection

I created a featured products slider on the home page. It was inserted via the following code: {{block type="catalog/product_list" category_id="563" template="catalog/product/featured-products.phtml"}...
2
votes
1answer
314 views

Old category link redirection

I was trying to solve broken links problem with URL rewrite for category, but I've noticed, that it's not working well. I've changed category link from category.html to proper-link-to-category.html ...
5
votes
2answers
2k views

How to add a (working) widget button to category WYSIWYG editors?

I need to add the widget button to the WYSIWYG editors of some category attributes. There are two questions on Stack Overflow with accepted answers: Magento: How to add the widget button to the ...
3
votes
1answer
13k views

Create CSV list of all products & their categories

can somebody suggest me a way or a script to export a csv file with all product SKUs & the categories those SKUs are associated to? I've tried several things... but nothing seems to work. ...
1
vote
2answers
3k views

Associate Products to Categories after Export CSV

Is there a way to associate products with categories? I've exported a csv with all the products, images etc (a complete export) then after the import (it wasn't painless) I've noticed 3 things 1) ...
5
votes
4answers
14k views

Categories - how to display in alphabetical order? (Programmatically)

We've been importing a lot of data into Magento CE using Magmi. It's creating our category tree for us. However, we'd like to display our category tree in alphabetical order. Is there a way to sort ...
1
vote
2answers
1k views

Products from outside store's root category showing up on frontend - Is this right?

We have several stores setup under a single install of Magento Enterprise. We now share accounts globally so there is a single cart and login across all stores. We have a separate root category setup ...