Adding magento attribute with custom input renderer

Share
Posted on May 17th, 2013 | Posted by admin

This is example which will explain you, how to add new attribute with custom input render. You will be able to modify existing functionality, add javascript, some other option or change default input renderer by your wishes.

You probably will ask yourself, what is magento input renderer and I will explain. This is Magento php class which is in charge for “rendering” html form elements. In magento there are different classes for rendering, you can find them in next folder:/lib/Varien/Data/Form/Element. In this folder you will notice next classes for rendering: price, date, image and so on.
Let’s go with our example.
First of all, you should create magento setup file which will add new product attribute with custom frontend input render, example is below:

Reset use secure in front end in database magento

Share
Posted on May 14th, 2013 | Posted by admin

I ran into an issue this week where I switched on SSL on a development site and then realized the SSL cert was not installed correctly. This is a big issue in Magento because there is no way to get back to the admin to switch it back off.

If this ever happens do the following to switch back:

1. Open up your admin panel (cPanel or other)
2. Go to phpMyAdmin (if MySql)
3. Find your Magento Database
4. Find table “core_config_data”
5. Look for the columns “web/secure/use_in_frontend” and “web/secure/use_in_adminhtml”
6. Edit both values, make them equal to “0″

After this is done you will be back in action.

How to get product id from the current product page

Share
Posted on May 13th, 2013 | Posted by admin

I wanted to implement a way that products images in magento could be able to have link to open a popup when the image is clicked to show a larger image in a separate browser window
for that we would need the product id to send it with the link url and receive it by get method there
I dont want to intruct the way we would show the product instead I want to show you how to get the current product id to send it with the url let say
ur/file.php?id=884

$product_id = $this->getProduct()->getId();

or if you could not able to use $this instead of the above you can use

$product_id = Mage::registry(‘current_product’)->getId();

Magento language pack installation

Share
Posted on May 10th, 2013 | Posted by admin

Installing a second language in magento is easy as long as you follow the next steps:

1. download language files and place them into the right folders (app > local)
2. Login to admin panel and go to System > Manage stores
3. Create a new store view
4. Login to admin panel and go to System > Configuration > General
and select each store view from “Current Configuration Scope” drop down menu at the upper left corner of the window.
Set the corresponding locale for each store view

How to Clean Magento Cache Properly

Share
Posted on May 9th, 2013 | Posted by admin

One of the most important tasks you need to remember after each major change (and before Magento upgrade) is to clean up your Magento cache.

  1. Login to Admin Panel
  2. Go to System Cache Management
  3. Select all Cache Types, choose Refresh from the Action dropdown and click on Submit button
  4. Click on Flush Magento Cache
  5. Click on Flush Cache Storage
  6. Click on Flush Catalog Images Cache
  7. Click on Flush JavaScript/CSS Cache
Page 1 of 6112345»102030...Last »