Archive: catalog category

 

Posts Tagged ‘catalog category’


I’m using the Magento API to get product data for products from a certain category from another domain. I have made the API call etc… The code I’m currently using to get the product data looks like this: $productList = $client->call($session, ‘catalog_category.assignedProducts’, 7); foreach ($productList as $product){ $theProduct = array(); $theProduct['info'] = $client->call($session, ‘catalog_product.info’, $product['sku']); [...]



 

I have configured a multi website like bikestore. So right now i have a folder bikestore inside my main magento installation which contains index.php file and a .htaccess file. I have created few categories withen my bikestore website and i have the following url to access my bikestore website http://localhost/magento/bikestore/. and it shows me the [...]



 

I am new to magento and I am customizing some changes to product, catagory and home pages. I have writen the following Code to show all categories on home page public function getRandomCategory() { $categoryCollection = Mage::getModel(‘catalog/category’) ->getCollection() ->addAttributeToSelect(‘*’); $categoryCollection->getSelect()->order(‘RAND()’); return $categoryCollection; } How would i restrict the data by using a condition in case [...]



 

RT @alanstorm: Am I correct that Magento 1.6 only has 4 EAV entity types left? (customer/customer, customer/address, catalog/category, catalog/product) RT @alanstorm: Am I correct that Magento 1.6 only has 4 EAV entity types left? (customer/customer, customer/address, catalog/category, catalog/product) Possibly Related Posts: New #Job: Fix Our Magento Store http://t.co/2s5I0S9F そうやったmagentoはxmlやった. Magento lovers, there’s still a good [...]



 

$category = Mage::getModel(‘catalog/category’)->load($currentCategory->getId()); $_productCollection = $category->getProductCollection()->addFieldToFilter(‘genre’, array(‘finset’ => ’126′))->addAttributeToFilter(‘category_ids’,array(‘finset’=>’14′)); Mage::getModel(‘catalog/layer’)->prepareProductCollection($_productCollection); $_productCollection = $_productCollection->load(); The above statement is giving an error, please help me run this. Magento Category Filter Error Possibly Related Posts: Magento admin route extension resulting in 404 Sort algorithm: Magento totals sorted wrongly causing wrong shipping tax calculation Create a WYSIWGY field in [...]



 

I don’t really understand how Magento collections work, so hopefully this is a simple question… As the old adage goes, you can’t observe an experiment without somehow altering it. This seems to hold true for Magento collections. I have a Featured Products module that I’ve written that works quite well. We have recently added Customer [...]



 

by Dx3Webs (Posted Mon, 16 May 2011 10:38:46 GMT)take a look your database.. Take a look at the eav_entity_type table and make sure the record for “catalog/product” has the value “catalog/product_attribute_collection” instead of “catalog/category_attribute_collection”. If you change this, there is no need to change any core files! http://magento-forum.co.uk/viewtopic.php?f=8&t=726#p2471 Magento Forum Possibly Related Posts: New #Job: [...]



 

if i have two product collections is there a way to merge them into one? for example (my final intent isn’t to actually just get a collection of 2 cats, this is just to illustrate the issue): $collection1 = Mage::getModel(‘catalog/category’)->load(148)->getProductCollection(); $collection2 = Mage::getModel(‘catalog/category’)->load(149)->getProductCollection(); $merged_collection = merge_collections($collection1,$collection2); any help would be appreciated! Magento: how to merge [...]



 

Hi I have in my header, several calls to Mage to get the catalog categoery model and get a collection of items. My problem is, this seems to make my page twice as slow, even with HTML Block caching turned on in the admin. What I thought I could, was by using: $cache = Mage::getSingleton(‘core/cache’); [...]



 

I have the following: $products = Mage::getModel(‘catalog/product’) ->getCollection() ->addAttributeToSort(‘id’, ‘RAND()’) ->addAttributeToSelect(‘small_image’) ->addCategoryFilter(Mage::getModel(‘catalog/category’) ->load($catId)); But I need to order by id RAND(), how can I do this? (The code shows how I’ve tried with no luck) magento get products from category, order by rand() Possibly Related Posts: Magento admin route extension resulting in 404 Sort algorithm: [...]