Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 6451

Questions about product categories in the Magento catalog

2
votes
IN the below code you pass the category ID's like 4 and got all the subcategories of category. <?php $cat = Mage::getModel('catalog/category')->load(4); $subcats = $cat->getChildren … (); foreach(explode(',',$subcats) as $subCatid) { $_category = Mage::getModel('catalog/category')->load($subCatid); if($_category->getIsActive()) { echo '<ul><a href …
answered Jul 11 '14 by TBI Infotech
1
vote
Try this: select cc.* from catalog_category_entity cc join catalog_category_product cp on cc.entity_id = cp.category_id where cp.product_id = {{your product id}};
answered Aug 4 '14 by TBI Infotech
2
votes
list.phtml Get the layout of Current Category $yourCatId = $this->getCategoryId(); echo $this->getLayout()->getBlock('root')->getTemplate($yourCatId); This is to get list of all category … and there layouts: $categories = Mage::getModel('catalog/category')->getCollection() ->addAttributeToSelect('id') ->addAttributeToSelect('name') ->addAttributeToSelect('url_key') ->addAttributeToSelect …
answered Jun 23 '14 by TBI Infotech
2
votes
In Admin: Admin -> System -> Config -> Catalog -> Search Engine Optimizations -> Use Parent Category Path for Category URLs (set to NO) Programmatically: Open the class … Mage_Catalog_Model_Url and comment the below line //if (null === $parentPath) { // $parentPath = $this->getResource()->getCategoryParentPath($category); //} //elseif ($parentPath == '/') { $parentPath …
answered Jun 26 '14 by TBI Infotech
0
votes
I guess you are looking for something like this: In CMS Pages > Home Page, add this code: {{block type="catalog/product_new" column_count="4" category_id="5" name="home.catalog.product.new" alias="pr …
answered May 12 '14 by TBI Infotech
0
votes
I hope you mean sort collection by category id, check this you may need to modify this code: $products = Mage::getModel( 'catalog/product' ) ->getCollection() ->addAttributeToSelect …
answered Jun 25 '14 by TBI Infotech
0
votes
$helper = Mage::helper('catalog/category'); // sorted by name, fetched as collection $categoriesCollection = $helper->getStoreCategories('name', true, false); // sorted by name, fetched as array … $categoriesArray = $helper->getStoreCategories('name', false, false); Via model: $_categories = Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*'); …
answered Jul 23 '14 by TBI Infotech
0
votes
It is not a default functionality, You can create custom attribute for category, if you want something manageable from admin: Create a small module : app/etc/modules …
answered Jun 5 '14 by TBI Infotech
2
votes
To get Sibling Categories: Inside your if condition $parentId=Mage::getModel('catalog/category')->load($cat_id)->getParentId(); $cats = Mage::getModel('catalog/category')->load($parentId … )->getChildrenCategories(); foreach ($cats as $cat) { // first, skip current category. if ($cat->getId() == Mage::registry('current_category')->getId()) continue; // then do something with $cat echo $cat->getName().", "; } This LINK may help you more. …
answered Jun 24 '14 by TBI Infotech
2
votes
Use product ID : $product = Mage::getModel('catalog/product')->load($productId); $categoryIds = $product->getCategoryIds(); $categoryName = ''; if (isset($categoryIds[0])){ $category = Mage … ::getModel('catalog/category')->setStoreId(Mage::app()->getStore()->getId())->load($categoryIds[0]); $categoryName = $category->getName(); } …
answered Jun 4 '14 by TBI Infotech
0
votes
help. Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); $categoryId = '3'; //replace with your category id $newPosition = 'getattribute position … '; //replace with your new position $category = Mage::getModel('catalog/category')->setStoreId(Mage_Core_Model_App::ADMIN_STORE_ID)->load($categoryId); $products = $category->getProductsPosition …
answered Aug 1 '14 by TBI Infotech
3
votes
var_dump($_collection->getFirstItem()->getData()); echo $_collection->getFirstItem()->getName(); Also how to get Last Item: echo $_collection->getLastItem()->getName(); var_dump($_collection->getLa …
answered Jun 17 '14 by TBI Infotech
1
vote
'); } $collection = Mage::getModel('catalog/category')->getCollection(); $collection->addFieldToFilter('parent_id',$parent_id); $collection->addIsActiveFilter(); $collection … ->getRequest()->getParam('category_id'); } $category = Mage::getModel('catalog/category')->load($parent_id); if ($headBlock = $this->getLayout()->getBlock('head …
answered Jun 26 '14 by TBI Infotech
1
vote
: /LICENSE.html Disallow: /LICENSE.txt Disallow: /LICENSE_AFL.txt Disallow: /README.txt Disallow: /RELEASE_NOTES.txt ## MAGENTO SEO IMPROVEMENTS ## Do not crawl sub category pages that are sorted or … /product_compare/ Disallow: /catalog/category/view/ Disallow: /catalog/product/view/ ## SERVER SETTINGS ## Do not crawl common server technical folders and files Disallow: /cgi-bin/ Disallow …
answered Jun 25 '14 by TBI Infotech
0
votes
thing when you are using category names then use same name as in admin(case-senstive) Or use same structure for id and then import file. Refresh you indexing and cache. the product will be saved. …
answered Jul 2 '14 by TBI Infotech

15 30 50 per page