magento

How to programmatically confirm a user in Magento?

Hi, I am writing a script that automatically imports users into magento. Here is a code snippet: $customer = Mage::getModel("customer/customer"); $customer->website_id = $websiteId; $customer->setStore($store); $customer->loadByEmail($riga[10]); echo "Importo ".$data[0]."\n"; echo " email :".$data[10]."\n"; $customer->setTaxvat($d...

[MAGENTO] Force customer to fullfill the address form again

Hi! I created a new attribute to the address form and it is working fine, my problem is with older customers. How can I make force them to have to edit their address? WHen they go to the checkout page, they choose the old address without knowing about the new attribute, and it is really important for us that they fill it properly any ...

Magento learning curve and best tips

Ok, magento is new to me, and in fact ecommerce site development itself is new. Magento seems to be extremely difficult to get to grips with - I have spent 3 days now going round I'm circles trying to create a custom theme and modules. The documentation is poor, the code and structure appears obfuscated - when will it get easier?! A...

Newsletter Signup on CMS page in Magento

hi, how can I add Magento's default newsletter signup module within a CMS page? thanks ...

URL to reference images in Magento

what's the best way to reference an image from within a .phtml file in Magento. I'm trying to insert an image (sitting in the 'images' folder) into footer.phtml and {{skin url='images/image.gif'}} doesn't seem to work. any ideas? ...

Column not found: 1054 Unknown column 'category_ids' in 'field list'

problem in Magento ver. 1.3.2.4 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'category_ids' in 'field list' can anyone help? i go to Add products, Edit product but i get that error when trying to save. ...

about jcaurosel jquery horizental slider in magento

hi guys i wanted to implement jquery caurosel horizental slider in current project but i dont know how to write php code for that one can any one help me how to write code for jquery carousel and i want to get images fromt the database in magento ...

Magento flat product table - retrieving "Most Viewed" product names

Hi All I currently show a collection of the "Most Viewed" products as a list in my footer. I get the collection using the following code: $_viewed_productCollection = Mage::getResourceModel('reports/product_collection') ->addAttributeToSelect('*') ->addViewsCount() ->setOrder('views_count', 'desc') $_viewed_productCollection->load(); ...

Buy One Get One Free Scripting Strategy in Magento

My objective is to create a buy xyz get xyz free, where x, y, and z are separate products. When purchasing EITHER x, y, or z, the customer can one of x, y, or z products for free. I've tried to create this function within Magento's price rules, but I have not had any success whatsoever. I've read pretty much everything on the internet r...

Magento: placing block on custom template

We are creating a custom page in which we are making something of a product wizard and the final step, we want to pull in the product page, really the catalog/product_view block. Obviously we can create the block and set it in the page with the renderview method but the problem we are having is its only that block and none of its childre...

Magento website server migration issues

Hello friends, I'm currently in the process of transferring my magento instalation, alog with its database, to a new web server. I edited the config files so they would match the new domain's database data, and uploaded the same files to the other server. When I'm trying to run the system, I get the following error: Warning: include_...

After join, cannot filter by attribute qty - getting products from inventory that are in stock

Hi, You have been so helpful in the past that I keep coming back searching for help and learning. This time I am trying to get all products that have a quantity greater than 1 and that are in stock (is_in_stock = 1) $products = Mage::getModel('catalog/product')->getCollection(); //$products->addAttributeToSelect('*'); ...

How do I place a magento autocomplete mini search box outside the magento installation?

I would like to put a magento mini search box in my main website, so that when a search is made, it redirects to the magento search results page. This global search is in the header and helps to find products fast on my Codeigniter main site. I was able to achieve part of this, by placing the following code: <form method="get" action="h...

looking up the content of site by nonuser

Hello guys! I have prepared a site in Magento ..its all about online shopping ..in this site user can't enter without log in. but i am facing a hurdel now that... there are visits from one IP, 150.70.64.199 this visitor is able to access inside categories with out loggin in when ever this guy comes, he can visit the sales as a guest mode...

CSS doesn't load after migration of magento website

Hello friends, I migrated my magento website to a different server, following the steps described here. Everything went smoothly, except for the fact that when I load the page, the CSS won't load, and I just get the page in plain text. I used firebug and noticed that the path the system is using to get to the CSS file doesn't exist in ...

How to prevent a parent category from appearing in subcategory URL

I want to access my subcategory like this: http://www.websitedevelopmentcompanyindia.info/store/subcategory.html How can I prevent the parent category from appearing in the path of the subcategory URL? Please help ...

magento example module

I'm reading through chapter 4 of the magento developers guide which explains how to build a shipping module I've built the config.xml put it in the proper place, put the MagentoBook_ShippingModule.xml file where it needs to go then it tells me I can configure it in the admin panel but it doesn't show up do I need to reboot the server or...

Magento Community Edition Capability Questions

I am just starting out with Magento and have two requirements for a private wholesale store. I realize this question is a bit open ended, but I would appreciate any recommendations for extensions or level of complexity from an experienced Magento developer. The store is private. Only available to customers entered within the Magento Ad...

How to link Magento admin menu to role resources

Here's the situation: I would like to add a Menu in the Magento backend navigation menu. I accomplished this by adding the following code in app/etc/config.xml: <adminhtml> <menu> <example translate="title" module="adminhtml"> <title>Inventory</title> <sort_order>110</sort_order> <children> <se...

Force newsletter subscription in Magento

Hello all! I am working with Magento, in which I need to require that, if any customer signs up, he/she must be automatically be subscribed to the newsletter. For instance, in the admin site, if we edit a customer, we get the newsletter checkbox for "Subscribed to Newsletter?". I want that check box to always be checked. Please help m...