magento

remove everything in sidebar but one menu

Hi I am integrating blog(wordpress) into our magento site. I am at the point to update handler in the blog.xml file. I want to display in sidebar only the blog menu but not other menus that are by default in the right sidebar. I know i can remove the right sidebar all together but then there is not sidebar to attach my blog menu. How ...

What is the conceptual difference between a Product and a Quote Item

Involved classes : Mage_Sales_Model_Quote_Item and Mage_Catalog_Model_Product. I get both of them as a result of listening an event ( on cart add ). I am trying to update the quantity information for a product from an external source. So far I based my code only on the product information and I am not sure if this is correct. What is ...

Magento custom add to cart process not working

REVISED QUESTION: We have tracked this down to a custom add to cart method. I have completely revised the question. I am working on a site that is using Magento ver. 1.3.2.4 as its eCommerce platform. We have built a custom "Add To Cart" process which adds multiple items to the cart via an AJAX request. After this request, some postproc...

Is it possible to make a Category page the homepage in magento?

I would like to display a catergory page as my homepage rather than a CMS page as it seems to be difficult to get a CMS page to properly display items. I have gone to Url rewrite Management and created a url-rewrite for a category Then gone to System|Configuration|Web|Default Pages| and changed Default Web URL to...

how to call a static method in a custom magento class

I have a custom model in a custom Magento model with a static function: class ABC_Module_Model_ClassName { static public function send ( $something) { // do something static } } Now I call the function like this: ABC_Module_Model_ClassName::send($something); // works and is nothing wrong with it More for consis...

Magento order import export

Is there a way to import/export orders by CSV in Magento? I thought I could do this with profiles but if i try to create a new profile it makes me choose only between customers and products. I looked for an extension but i haven't found anything (anyway i'm looking for something free). Have you got some suggestions? ...

How to Create a Downloadable Product through Magento API?

Hi... I am new to Magento, and are using their API. What I want to ask, is it possible to create a downloadable product through the API? The documentation example is just for creating a new simple product, and if I use the API to view the product.info of a downloadable product, I don't see any attribute that link to a downloadable fil...

Magento installation

I had installed Magento successfully , but when I try the checkout, it always display a "product not found". Even if I try to click to any product to get a product details, it always not able to display a product.. I take it that the database configuration and details were correct during installation otherwise it won't allow the succe...

Add to Magento admin-side global search

How can I add a database field to the Magento global search? I want to create a custom "business name" field in customers and then have it searchable with that global search bar on the administrative panel. ...

how do i hide /magento/ in my site's url?

A site has an existing system (lets call it mysite) and the client asks to put in magento. My directory structure goes something like this: ROOT -index.php (this is the app's main controller) -.htaccess /blog (runs wordpress) /assets (current system's media folder) /magento (this is where all magento files go) P...

Magento module - overridden a controller, adding templates

I am currently working on a Magento extension, and I have overridden a core controller, which works fine. I have now added a new action to my controller. Problem is that whenever I call the action a blank page is produced. If I echo something it is displayed correctly. Therefore I dug into the core of the Customer module and controller...

Custom filter is not working - Magento

I've made a custom filter 'gender' through admin panel. Unfortunately it is not showing on front like the price filter. The price filter on my site is working fine. ...

Embedding search results (or tagged products) in a Magento CMS page

I can embed a block in a CMS page without difficulty. I can also pass arguments to the block without difficulty. What I'm looking to do is embed a block in a CMS page that returns search results for a particular search phrase. Embedding all products with a particular tag would also be helpful. Neither one has been easy to do. ...

Magento: An option to sort products by sales (popularity)

Does anyone know how to add an option to product list for sorting products by their sales (popularity)? You know, currently there are three: position, price and name. It's relatively easy to make any product property sortable, but how about those, which are in different table(s)? In my situation, that would be product sales. Thanks! ...

Viewing Magento model data changes on before/after save event?

I’ve been trying to do something that seems like it should be simple: hook a MODEL_save_after event (or MODEL_save_before if that’s more appropriate) check getData() vs getOrigData() to see what changes the user has made Now, in the example of the ‘customer_address’ model, edited through the backend, I find that both the save events ...

magento getCollection() can we put where condition?

hello , i am working on a magento project and i need to get the value according to country wise like select address where country ="Nepal" can we send the where condition in getCollection() function $collection = Mage::getModel('relocator/location')->getCollection(); any help will be appreciated ...

Is it possible to get a discount on a grouped product in magento ?

Is it possible to get a discount on a grouped product in magento ? For example if i am selecting a grouped product(a set of monitor,mouse,keyboard) and i may get a discount on the price of the product (from the total amount of all the products).As i know we can give discount for simple products on the time of checkout. Is it possible to...

How to create my Magento productCollection

How can i create my own productCollection from the scratch. So i have a list of products and from those products to creaete collection. Or i need the second variant, if i take the collection with all the products $products = Mage::getModel('catalog/product'); how can i filter them by the ID. What i am trying to do is override the search...

How to override table name andprefix in Magento model?

I need to make Magento read/write data to an existing database table in order to integrate with another party system. The table cannot be renamed. If I specify it in the table tag in the model config as below magento adds the prefix. Is there a way to override the prefixing somehow? <models> <arithmetic> <class>Mc...

Magento user created attribute for products is not saved...

I am fighting an apparently simple thing for about two days now. I hope somebody can help. I created the myUpdate EAV attribute class Company_Module_Model_Resource_Eav_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup { public function getDefaultEntities() { return array( 'catalog_product' => array( ...