Questions tagged [category-attribute]

Denotes questions related to attributes of categories.

Filter by
Sorted by
Tagged with
1
vote
1answer
370 views

Excluding one or more subcategory in a Category Page that displays Subcategory list

I have the following code that will display list of subcategories in a category page and I want to exclude several subcategories from displaying but is active in the Navigation Menu. Category Tree ...
2
votes
0answers
172 views

Looking to create a Category Attribute that will allow me to change the style of my dropdown navigation

I am wanting to be able to have three different styled drop downs in my Menu. I would like to be able to change the style type using a category attribute. What I imagine is to be able to go to a ...
7
votes
1answer
1k views

Filtering category collection producing incorrect behaviour with flat catalog enabled

I have some code to perform a basic search of categories. It works by searching the category name and description - attributes that are both core. The code I have is as follows: $_categories = Mage:...
1
vote
0answers
302 views

Category attributes in collection without default value

I created attribute custom_attribute for category with some default value. If I save category(for example for store 26) with some value for this attribute I can get via: Mage::getModel('catalog/...
0
votes
1answer
460 views

Anchor Option is not showing in Admin

I'm experiencing this issue with Magento 1.9.1 single store, probably my database got damaged: When I edit an existing category or add a new one the option to select if the category is anchored or ...
1
vote
0answers
206 views

How to resize image when click attribute on color swatches change image

In file list.html image when load page resize 230. but when i click attribute color. size images from 230px to 300px. how can resize images 300px -> 230px < img id="product-collection-image-getId()...
2
votes
2answers
480 views

Method to Update Category Attribute Without Loading the Category Model

When updating product attributes, this method would suffice so that it would prevent loading the whole product model: Mage::getSingleton('catalog/product_action')->updateAttributes( array(1,2,...
0
votes
1answer
928 views

MySQL-Query: GROUP_CONCAT() doesn't work correctly

I try to execute this SQL-query, but I don't get the right result: SELECT k.product_id, product.sku, group_concat(i.value) FROM catalog_product_super_link AS par LEFT JOIN staging....
0
votes
2answers
403 views

Building Category Attributes Image and Text (and get them to work)

I need to add 2 attributes to category. What I've done so far is in config.xml: <?xml version="1.0" encoding="UTF-8"?> <config> <modules> <[...
1
vote
2answers
1k views

Get current category id of the product in search result

Is it possible to get the category id from which the product is loaded in search result?
0
votes
1answer
175 views

Create custom image attribute for category size chart

I want to create an image attribute in category which maps to size chart in PDP. Following is my install script and config.xml file. My attribute is created in eav_attribute table but it is not ...
1
vote
2answers
4k views

Adding Category Attribute to Select

I'm trying to add a custom category attribute to the category collection: $product = Mage::getModel('catalog/product'); $product->setId($productId); $categories = $product->getResource() -&...
1
vote
0answers
215 views

Remove custom category attribute from observer [closed]

I m removing custom category attribute from the form for second level category. I m using magento observer for it and the event is adminhtml_catalog_category_edit_prepare_form I m using below code ...
0
votes
2answers
271 views

(Silently) failing to create custom attribute for category

I am trying to add some custom attributes to my categories in Magento. So Ive created my first ever module which would add a single custom attribute, by following the tutorial here: http://gauss-...
1
vote
1answer
340 views

Category Attributes, Setup Script and Flat Tables

I have created a setup script that creates new category attributes. It works quite well, however after the setup did run, the flat tables are missing the columns and when the Magento API creates the ...
0
votes
1answer
78 views

Category and Attribute relationships and possible circular logic

I have a Magento storefront that is selling different colored rubber balls. I have the following categories: Product Ball Red Green Blue I have the following attributes: Ball ...
2
votes
0answers
137 views

plugin create seo question attribute default title product [closed]

I downloaded this plugin, and in default meta title product, I would select the attribute category. I do not know how to create it and how to set it. I wish in SEO product and the name and the name of ...
2
votes
1answer
711 views

Magento how to set attribute seo meta title and description product

I have a catalog of 30,000 products on Magento, and I would make sure that the plugin I of seo (free) all products have tag, store name, category name. I turned on the network, to see how to build an ...
7
votes
1answer
2k views

How to add serializable attribute to category?

I tried this $installer->addAttribute( 'catalog_category', 'ser_attr', array( 'input_renderer' => 'namespace_module/block', 'backend' => 'adminhtml/...
0
votes
1answer
1k views

How to use Category Heading instead of Category name in Magento?

There is a field in the backend called "Category Heading" that I would like to use instead of "Category Name" under View. Current code is like <h1 class="cate"><?php echo $_helper->...
3
votes
2answers
405 views

Unable to pull Category Description, Mage 1.9 with multiple stores,

so I am not sure how to debug this. I can pull all information from a category but I cannot get the 'description' attribute to pull through. It just appears blank. This doesn't work: <?php ...
0
votes
1answer
114 views

Pull admin text value to display on Catalog/ Product/ List

I'm trying to pull the text value from the product page in admin to display under grid mode on catalog/ product/ list.phtml. Its not pulling the value. <?php if ($_product->getAttributeText('...
3
votes
4answers
3k views

Magento as a product information management (PIM) tool for multiple marketplaces (ebay, amazon, Rakuten, etc)

We are selling products on over 10 different platforms, each of which has different category sets. Also, we are selling internationally and a product can belong to different categories on different ...
2
votes
1answer
309 views

Remove store level value for category attribute

On our shop we have a customer category attribute that has been set against each store. Now we want to remove the store level values and replace it with one global level. Now I know how to do this via ...
3
votes
1answer
654 views

How to create and display custom category attributes

As the title says, i want to be able to create and display custom category attributes. I tried this extension: http://www.magentocommerce.com/magento-connect/manage-category-customer-and-customer-...
2
votes
1answer
153 views

Hide attribute type dropdown if no value

I use this code to hide attributes when they do not have data: <?php foreach ($_additional['items'] as $_data): ?> <?php $_attribute = $_product->getResource()->...
3
votes
2answers
243 views

Any category created does not show the title Correctly

i have a problem, any category created in my store not show the correct page titles, for example: Page title in category: "Smartphone Sony" What appears in the title of the page ....: "sign in now by ...
8
votes
1answer
7k views

Remove category attribute

I inserted 2 category attributes using a module with the file mysql4-install-0.1.0.php in a sql folder: $installer = $this; $installer->startSetup(); $installer->addAttribute('...
5
votes
2answers
17k views

How to get the CategoryId using the name in Magento 1.9?

Looking to find the category ID using the Name attribute programmatically. My script returns a 1 when it should be a 19. Here is my code: $collection = Mage::getModel('catalog/category')->...
5
votes
1answer
1k views

How to get first product from category in 1column.phtml?

I'm searching for a way to get the main image from the first (or random) product from the current category and use it as a background for the category title. As the title is created in 1column.phtml (...
0
votes
2answers
2k views

Category saveAttribute only saves on store scope

I'm making a setupscript in Magento 1.7 CE to move some category data from one attribute to another. The script is working, but somehow it only saves on store view scope (just store view id 1), ...
1
vote
1answer
309 views

Adding a custom attribute to magento backend category pages on second category levels

I am trying to display a custom attribute in the backend of magento on the category pages where the category levels are 2nd level. I found an tutorial online which enabled me to add a custom ...
0
votes
1answer
818 views

Get attribute count

I'm using bellow code for displaying the amount of product/s in specific category on my home page: <?php $products_count = Mage::getModel('catalog/category')->load(4) ...
1
vote
2answers
453 views

Magento hide attribute group if included attribute got no data

We use this way to display attribute group names on the additional information tab on product page. Currently when a attribute got no data, the entire attribute will be hidden. I want to do the same ...
7
votes
1answer
5k views

Display custom attribute on category page

On our category page I want to echo an custom attribute with attribute code "homepage_description". I tried this, but that does not work: <?php echo $_product->getHomepageDescription() ?> ...
0
votes
0answers
26 views

Get Filtered attribute collection using getFilterableAttributes() [duplicate]

using below code i can able to get all filterable attributes for a category, $json = array(); $layer = Mage::getModel("catalog/layer"); $category = Mage::getModel("catalog/category")-&...
2
votes
1answer
2k views

Custom Category Image Attribute Preview

I've created a custom image attribute for the category. The image will be saved in media/catalog/category/example location. When I upload the image, preview showing as a broken image even though ...
0
votes
3answers
3k views

Remove Custom Category From Database (Query)

Can any body tell me where is category attribute stored in magento database ? And how could I remove it from MySQL?
6
votes
3answers
4k views

Admin Category Insert Thumbnail field has disappeared

I have recently installed Magento 1.9.1 and trying to make use of the category thumbnails (as well as the main image). However, I have gone to Admin >> Catalog >> Manage Categories and it ...
2
votes
2answers
733 views

Change Category Order Programatically

I am currently working with a client who has a large catalogue with hundreds of categories. We are in the process of restructuring their category tree and are finding that the Magento admin area is ...
2
votes
2answers
2k views

Creating Custom Category Pages design in Magento

I need the "Main Categories" should have their own landing pages. For example, I am clicking on "Category 1" then it should take me to the landing page for categoriy 1 and should have its own design ...
2
votes
1answer
2k views

Add color picker to category attribute

Does anyone know how to add a custom color picker attribute to categories? I've tried the following code in an upgrade-script, unhappily without success. $this->startSetup(); $this->...
5
votes
2answers
3k views

Custom Category attribute created but not saved

I've created a custom extension in order to add a custom attribute on product Categories. Here's the code I've used to create it: $installer = $this; $installer->startSetup(); $attribute = array( ...
1
vote
1answer
313 views

Validate Category Attribute

I have extended Mage_Catalog_Model_Category_Attribute_Source_Mode (and it's Resource model) to add two new modes display_mode values for Categories. Now I want to validate the value of that attribute ...
0
votes
1answer
928 views

Adding code for create attributes in category general information Tab in adminsidde error

app\design\adminhtml\default\default\template\page\header.phml adding code for create attributes in category general tab i adding this code require_once('app/Mage.php'); Mage::app()->...
0
votes
0answers
12 views

how can Add a extra category attribute under general infomation tab [duplicate]

I want to create yes/no attributes in magento category in gerenraltab. can you please tell me where to change in file any module create for it. or any tutrorial give me suggetion. adding attributes ...
0
votes
1answer
965 views

addCategoryFilter() not working or working wrong

I want the top sellers from magento store. I become the bestseller but when I want to using a category i get nothing. Here is my code I use: $category = Mage::getModel('catalog/category')->setId($...
0
votes
1answer
177 views

Adding category attribute (select) via installer. Set defaut not working but get additional empty value

I'm trying to add a custom attribute to the category page. It will already show up but I only want to have the values Yes/No in it. Unfortunately there is always an empty, preselected value. So ...
2
votes
2answers
14k views

Magento 1.9: Remove Category Filter in Layered Nav

After a few minutes of search, I found the solution that I'm looking for, and it's here: How can I disable filter "category" from Sidebar I followed this method by editing the catalog.xml ...
0
votes
1answer
71 views

Extension installation

I have created an extension following these instructions: http://www.marketingadept.com/blog/2014/01/magento-developers-add-a-custom-field-to-the-category-admin-page/ to attempt to add a field to the ...