how to add customer photo registration profile page in magento

Share
Posted on December 27th, 2012 | Posted by admin

how to add customer photo in magento registration – profile page

I have to add 3 image upload box as per my client demand. First one was his photo , second one was his credit card front side scan copy and third one was credit card back side scan copy. He did it for his customer verification.
Now i will explain you how i fix it.
At first change the registration and edit form type to enctype=”multipart/form-data”
Add the following code in register.phtml to add photo field in database
$setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’);
$attr2 = array (
‘position’ => 1,
‘is_required’=>0 /* 0 if you want it to be a required field, 1 if not. Also, if required, add this class to the occupation input box on register.phtml class=”required-entry input-text” */
);
$setup->addAttribute(’1′, ‘photo’, $attr2);

[Magento] Add Contact Us form in any page

Share
Posted on December 1st, 2012 | Posted by admin

Magento provide contact us form functionality by default. You can find a contact form link in the footer of your Magento website. However you can add this contact form in any Magento web page that you want to.

To add contact form in Magento CMS page,

1) Log in to Magento admin panel
2) Select CMS > Pages
3) Create or Edit page for adding contact form
4) Paste the following HTML code in WYSIWYG editor:
<!–– CONTACT FORM CODE BEGIN––>
{{block type=’core/template’ name=’contactForm’ template=’contacts/form.phtml’}}
<!–– CONTACT FORM CODE END––>
5) Save the changes
6) You are Done.

Programmatically Add Grouped Product to Cart in Magento

Share
Posted on February 27th, 2012 | Posted by admin

Programmatically Add Grouped Product to Cart in Magento

Adding simple products to cart through custom PHP code is pretty straight forward. You just need to call the ‘$cart->addProduct()’ function with the product_id and quantity as parameters. But if you want to add grouped products to cart through your code, you will need to perform few additional steps. The process is very easy – create an ‘$super_group’ array of the associated products with the specified quantities. Then you need to pass the array to the ‘addProduct()’ function. See the actual code below that makes it work:

<?php
//Array for holding the associated products
$super_group = array();

//Id of the grouped product
$parentId = <grouped_product_id>;

I can’t add a product to my wishlist – Magento

Share
Posted on February 14th, 2012 | Posted by admin

I can’t add a product to my wishlist – Magento

One of our clients at the office had a store and the “wishlist” button in the product view wasn’t working.

The products he was trying to add weren’t in the root category.

You must add your products at least to the root category.

How to Add Custom Tabs to Magento Customer Edit page

Share
Posted on January 16th, 2012 | Posted by admin

Magento Provides the manage customers feature to list and edit the customers information.
The Customer edit page in the admin panel gives details about the customers account information,address,orders etc.

In some scenarios we may need to show our custom module contents related to the customer in a additional tab. To achieve this functionality we need to create a custom module and add our tab.

Step 1: We start with our config.xml file. In this file we are specifying an adminhtml xml layout file and a Block class for our custom module.

app/code/local/Mydons/etc/config.xml

Page 1 of 3123»