Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
1
vote
1answer
3k views

Check if subcategory exists in current category

I have the following category setup in my magento store: store root | bedroom kitchen bathroom | | | furniture furniture furniture lighting ...
0
votes
2answers
69 views

Trying to exclude a graphic from showing up on a specific category and all its children pages

I'm trying to include a graphic on all category pages except one specific category page and all of its children category pages too. I am successfully excluding it from the main category 348, but I'd ...
1
vote
1answer
169 views

Layered navigation, going to other page doesnt work

I've done an upgrade on a Magento webshop and on the upgraded theme (Joomlart) I've got a problem with the layered navigation in combination with pagination. Was working before I did and upgrade. (...
1
vote
2answers
1k views

how to add 2 static blocks to a category page

i have a staic block called "sub categories" and i have this set to all my parent categories so when you click on them it shows the sub categories. However i also want to add another static block to ...
2
votes
1answer
240 views

Rewrite product position save logic [closed]

I'm new to Magento and I'm trying to figure out how to change the product position save logic when you save a category. I would like it to auto increment by ten for each product so that when you're ...
0
votes
1answer
685 views

Category Quick View Popup

Can anyone pls let me how to make a quick look popup for Categories just like we do for products ? I want to display all the sub-categories listing in a popup when clicked on any parent category ...
3
votes
1answer
161 views

Layered current category

I need to implement category navigation left sidebar and show only current category and children. I add left_nav.phtml. <?php $object = new Mage_Catalog_Block_Navigation(); $actualCategoryId = $...
2
votes
2answers
2k views

How to get only child categories of a product. Magento 1.8.1

I'm using a code snippet I found here to list all the categories that a product is listed in on the product page. <ul> <?php $categories = $_product->getCategoryIds(); ?> <?php ...
1
vote
1answer
688 views

Remove categories using Magmi [closed]

Is there a way to quickly remove unwanted categories via Magmi. I know it is possible to delete products en masse using Magmi, is it possible to do this with categories as well using a CSV with a list ...
1
vote
1answer
62 views

How to display 4column catalog category

In homepage "most viewed products", "new products", "featured products" are listing grid view products as 3column. Near that new products show the option "VIEW ALL" to view all products. When i click ...
2
votes
1answer
10k views

Getting category's custom attribute value

I have created a new tab in the category edit page that gives access to a custom category attribute that has a key of mymodule_myattribute. I did this using an install script: $installer->...
1
vote
1answer
2k views

Custom Menu with Icons [duplicate]

I need to add icons before each categories in my main menu. Is there any extensions for that or can u provide the details to edit which of the files in magento
1
vote
1answer
353 views

Assign products to a category that are not assigned to any category

Is there any way to assign products to a category that are not assigned to any category? I have around 1000 products that are not assigned to any category so I would like to assign them to one single ...
1
vote
2answers
3k views

display products in front page of specific category

I have a homepage.phtml which will create a block by calling a new.phtml homepage.phtml <div class="home-page-new-product"> <p class="new-product-title"><?php echo $this->__('...
0
votes
1answer
369 views

Remove/hide particular Anchor Categories in category properties

I am new to magento, I have created the Anchor Categories by referring magentocommerce, and it's working fine now the question is I want to Remove/Hide particular Anchor Categorie how can I do? ...
1
vote
2answers
1k views

Exclude Parent categories from product collection

Hi i have below categories, Category 1 (id 1) - Sub category 1 (id 11) - Sub Category 2 (id 12) Category 2 (id 2) - Sub Category 3 (id 13) - Sub category 4 (id 14) And all my products ...
1
vote
1answer
5k views

URL rewrite and 404 error pages [SOLVED]

After installing Magento 1.8 CE and importing categories I realized that all category pages gives me an error. I have tried: Truncate the core_rewrite_url table and regenerate Re-index category url ...
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 ?
1
vote
2answers
134 views

How to list products from equal subcategories but different parents?

I have the following category tree: Men Shoes Accessories Women Shoes Accessories And I need to list all shoes available (Men and Women) in a single page (mystore.com/shoes) Any plugin/code/...
2
votes
1answer
3k views

Google sitemap.xml generates product url's without category path

I generated an sitemap.xml file through the Catalog > Google sitemap area. What I experience is that the product url's in the .xml appears to be incorrect url-path'wise. So a product url appears as: ...
0
votes
1answer
1k views

How to get the data of a category in my catalog?

I use these lines to get the data of a product in the catalog, // Get product data. $_helper = $this->helper('catalog/output'); $_product_id = Mage::registry('product')->getId(); $_product = ...
8
votes
1answer
7k views

How to get list of all subcategories which are set “Include in Navigation Menu” as no

I have tried to get all sub categories which are not include in navigation menu but those are being active, of current category in list page. $children = Mage::getModel('catalog/category')->...
1
vote
1answer
288 views

Swapping product images for custom lists using a new image attribute

I want to be able to display a list of products on the homepage of the site I am working on with a different image to what is displayed on the category page. I have created a new image attribute ...
1
vote
1answer
559 views

Create custom category attribute - Changes not saving

I created a custom category attribute from the following source:http://ashsmith.co/2013/03/quick-tip-adding-custom-category-attributes-to-magento/ Added new attribute successfully, however, when I ...
4
votes
1answer
5k views

NOINDEX,NOFOLLOW for selected category pages

I'm reading this, and it says that you can add NOINDEX,NOFOLLOW directives using page handles on files like local.xml. What I want to do is to include these directives for a certain selected set of ...
1
vote
1answer
201 views

Adding Metadata to a Product-Category Relationship

I have a category that represents different store vendors, which are then assigned to the appropriate product. The goal is to attach a unique URL to the category relationship, so each product ...
1
vote
2answers
3k views

Load details of a root category and subcategories

How do i load all the sub categories of a particular Root Category? I need to form a tree like structure for traversing all the sub categories (including the inactive ones). Kindly help.
0
votes
2answers
125 views

Sort categories by a regular expression, letters then characters/numbers

Is there a way to sort a collection by a regular expression? as far as I can tell, there is only setOrder() on a collection, where you put the column, and then asc or desc. I want to be able to sort ...
0
votes
2answers
973 views

Sort Order of Products in Category Grid View by View Count

I've been trying to create a solution to this for some time now, and have been to the ends of the internet and back, maybe I missed something. What I am trying to do is sort the product collection in ...
2
votes
2answers
1k views

Magento : Show 3 different top menus

I tried (without success) to show 3 different menus: - Menu1: for the home page having the subcategories : Home SubMenu1, Home SubMenu2 and Home SubMenu3 - Menu2: for the online Shop having Cat1 ...
0
votes
1answer
379 views

Create a simple extension which adds 1 field to the category

I need to create a very simple extension to add just one text field in the category on the backend and show it on the category view on the frontend. What steps should I take?
2
votes
1answer
999 views

getChildrenCategories only includes categories with Include in navigation set to yes

I want to display the child categories of a category and I want to display them in the order they're in in the admin panel. I've read a lot about it and the simplest way seems to be to use ...
1
vote
1answer
329 views

Slow and memory problems: Refresh category with 100 products

I have a category with 100 new products. After an import I remove all products from this category and add 100 new products. This is very slow and cause memory problems, so I am doing something wrong. ...
1
vote
1answer
1k views

magento - how to show only configurable product in main category, simple product in sub-category

I want to know how can I do this. I want to when i click main category, just show configurable product in page, and when i click sub-category, show simple product in page. Please help me in this, it ...
1
vote
1answer
620 views

Get Top Subcategory Id

My category structure is set up like this: Default Category Category A Category B Category C Category D Category E Category F For each of the subcategories I'd like to retrieve the ID for the ...
2
votes
1answer
109 views

How to accelerate the list page when objects have attributes with thousands of possibilities

I'm working on a magento website that have hundreds of products with, each of them, having more than 5 thousands of options in a dropdownlist (in a custom attribute, using this plugin I know that ...
1
vote
1answer
183 views

Different Order Success Mail for Selected Category

When a customer purchase a selected category products , then the order success mail should be different I wants to customize the order status mail for selected category only, for other categories ...
2
votes
1answer
152 views

Exclude Parent category ids from array of category id's

Hi i'm having a product collection, i'm getting those categories by $item->getCategoryIds(); On print_r($categoryIds = $item->getCategoryIds()); i'm getting Array ( [0] => 12 [...
2
votes
1answer
802 views

Magento group upsell products by category

i'm a newbie to magento, default using $this->getItemCollection()->getItems() (upsell.phtml) displaying all up selling products. I'm wondering how to group these results by its category. ...
2
votes
1answer
3k views

magento : get list of category with api

i want to get list of category and subcategory (name of category) in magento , i use this API : catalogCategoryInfo (SOAP V2) . i try to get Names of direct child categories but it return id of direct ...
2
votes
2answers
2k views

Change value of custom category attribute in front end

I am installing a custom attribute through the normal Magento module install script. It is a simple select box with Yes or No: <?php $installer = Mage::getResourceModel('catalog/setup','...
1
vote
2answers
519 views

Correct syntax for multiple category ID's in array

Trying to exclude the rendering of something based on category ID using the following... <?php if ($_category_id == 2) { ?> <?php //do nothing ?> <?php } else { ?> <?php /...
3
votes
1answer
221 views

Configurable configurable products?

I'm looking for a solution to the following scenario: My store sells shirts that vary in size and color, like most clothing stores. The twist: a shirt can come with a school logo printed on it. There ...
2
votes
1answer
1k views

Unable to select category when editing products

In my magento I have a problem. Categories tab of product when you edit is looking like this. I can't select subcategories from shop. I have no idea why. What could be the problem? Store categories ...
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 ...
1
vote
1answer
2k views

Coupon code - Buy one of some products, get one different product free once [closed]

I hope you can help me out on this one :) I've tried different ways of achieving this but up untill now with no luck. I'm starting to doubt if maybe the apply coupon button isn't working or the price ...
1
vote
1answer
3k views

Magento Product Add to Cart after Login for Selected Category

In Magento, is it possible to add the product to cart after login for the selected category. The selected category products, which can be view for all user while add this product to cart it should ...
2
votes
1answer
1k views

Is there a way to add a class name to a category link

I have a menu on my Magento website generated from my categories. For this menu I am using images. The problem is when I remove a category then the image for the links are not attach to the right ...
0
votes
1answer
30 views

Can I put a timeframe on a Magento Category?

I want to add a "New" subcategory to each of my main product categories. When I enter a new product into my store I would like to set a date for how long it appears in that category. Then on the ...
0
votes
1answer
316 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 ...