magento

add categories column to the product grid in magento admin

Hi, I'm trying to add a categories column to the product grid. I've modified Mage_Adminhtml_Block_Catalog_Product_Grid. Added the following to _prepareCollection: ->joinField('category_ids', 'catalog/category_product_index', 'category_id', 'product_id=entity_id', null, 'left')...

How to get all additional attributes of Magento Product without explicitly specifying them

My goal is to get and display all additional attributes for the Magento product using SOAP API. For example Gender, Shirt Size and Color for T-Shirt product. But the program shouldn't know the attribute names. In the SOAP Call: catalogProductInfo there is additional attributes parameter and it looks like I have to explicitly specify add...

Magento - check if cms page

hey, i want to check via php if a page is a cms_page in Magento. I need diffrent breadcrumbs for cms pages, so im trying to this with a condition, but i have no idea how to or where to look at. Heres my breadcrumbs.phtml so far. <?php if(this is a cms page): ?> <p>some content</p> <?php else: ?> <?php if($crumbs && is_array($crumbs)): ...

Magento - Create new user returns SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' Help?

I'm at my wits end with this one. Everything else on this new live site works flawlessly except this one issue. I can't create new customer accounts without it returning this error. I've tried everything I can think of in my own wheelhouse. Any suggestions? Magento forums are a wash for support. ...

Magento how to disable image zoom

Does anyone know how to disable the product image zoom in Magento? ...

using group() breaks getSelectCountSql in magento

Hi When I'm using $collection->getSelect()->group('entity_id') or $collection->groupByAttribute('entity_id') it breaks getSelectCountSql and I'm getting 1 record and 1 page. Magento does $countSelect->columns('COUNT(DISTINCT e.entity_id)'); Is there a way to fix it? I run into it when overriding _prepareCollection of Mage_Adminhtml_Bl...

Magento: Move product group info to the bottom in the product view

I'm trying without success to move a block with is referenced in the catalog.xml file: <PRODUCT_TYPE_grouped translate="label" module="catalog"> <label>Catalog Product View (Grouped)</label> <reference name="product.info"> <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data...

Magento - 2 or more observer on same event

Hi, 2 of my observer are observing same sales_order_shipment_save_before event. ModuleA was the one i created first and then i created ModuleB Now only ModuleB's observer is called and not ModuleA. Please let me know how can i resolve this and both of observers are called. ModuleA <?xml version="1.0"?> <config> <global> ...

Save previous data of a customer

Hi, i've made a page with a calculator for customer, they can use it without being logged in, there is a save button in that page, what i'm trying to do is: if a customer click save and it is not logged in, will be redirect to the register form, and if the user successfully register, i need to save the data he wrote in the calculator to ...

Integrating wordpress with magento

Hi, I am trying to integrate wordpress into a magento install but keep getting the following error when trying to include Fatal error: Cannot redeclare __() I assume this is because both magento and wordpress use this. How can i get around this. I have tried things like: if(!function_exists('__()')) { function __() {} } in b...

How do I create a product attribute out of my custom module in Magento?

How do I create a product attribute out of my custom module in Magento? I'm working on a "record store" in magento and I've created an "artists module" to store artist information. Now I want to have an "Artist" dropdown attribute for the catalog items that is fed from this module. I understand how to create custom attributes in the m...

adding multiple products at once along with assigning attributes to all of them.

I swear this probably might the most complicated magento cart ever. But this is what the client request. We are creating a web application that allows the customer to type in some letters. These letters appear on in a picture as if it was a sign. Each word represents a products. The size of the word changes pricing. Also the custom can...

Pulling Products from a category and their attributes in magento

what type of block would i use and what method would I call. Also what type of array would it return and where would I find the attributes , price and all that good stuff. Thanks ...

How in magento add manufacturer in the URL of the product?

How can I change magento so that: {site}/category-name/sub-category/product-name becomes {site}/category-name/sub-category/manufacturer/product-name Where is the standard Magento manufacturer attribute? Thanks :) ...

Magento saving multiselect in controller ?

$fieldset->addField('brand_id', 'multiselect', array( 'label' => Mage::helper('expertbrand')->__('Merk:'), 'name' => 'brand_id[]', 'values' => $aOptionsMerk, )); I have this multiselect box with some 600 options. I would like to know how to save this in the controller? I have tried everything and worked on ...

Magento: How to tell if you're on a category page, or product page in .phtml file(s)

Hi everyone, I am trying to program into my .phtml files an if statement if the guest is on a category list page, or on a product page. For example this code: <?= Mage::app()->getFrontController()->getRequest()->getRouteName(); ?> Returns "catalog" whenever l'm on a page other than a CMS page. Is there a way l can use a similar m...

Magento catalogCategoryAttributeList SOAP API call doesn't return all attributes

My goal is to get all attributes listed in Catalog -> Attributes -> Manage Attributes Admin Panel section using SOAP API call. When I am calling stub.catalogCategoryAttributeList(sessionId) Note: Java, Apache Axis used to make this call. In php it's related to this call - http://www.magentocommerce.com/wiki/doc/webservices-api/api/c...

magento - Image type and information need to be specified for each store view

Hi, I have a working Magento 1.4.1.0 installation that is due to go live next week, all was well until yesterday when I noticed the following message when uploading images to a product 'Image type and information need to be specified for each store view'. The image uploads fine and is visible on my server, the preview works when I hover...

eCommerce Framework, Currently looking at Magento

Hey guys, I kind of wanted to ask an opinion based question to start off with. I'm going to be picking up an eCommerce project in a month or two so I've been trying to decide which PHP framework, if any at all, I should go with. What does everyone recommend? Currently, I've been working through some Magento tutorials. One of the things...

magento configurable product behaviour

I am having the following issue with my magento, custom unfortunately, development. The scenario is that the client wants the price of a configurable product to be calculated using a specific formula that involves multiplications, while magento has only sums. for example one of the attributes is "material" and the other one is number of ...