Magento
Magento: get drop down attribute text from customer
in the following code $custObj is a customer obj
Magento
Magento : Multi select box with search
Downlode the plugnin from https://harvesthq.github.io/chosen/ 1. Add the following files in your phtml file 2. Select box html looks like: 3. At the bottom add the following script and file Note: The above plugin is working on prototype so that’s Read more…
Magento
Magento :: Save Form data in session when error occurs in form submit
1. IN Your Controller Get the form data and save values in session: 2. Then in the form page get the session values: 3. And in form for each fields set the values:
Magento
Magento: Product Specific View Page
1.- Create a copy of view.phtml in your theme like your_view.phtml 2. change your your_view.phtml as per your requirement. 3.In Your product go to Design tab and inside Custom Layout Update add the following code:
Magento
Magento: Show custom image for product collection
foreach ($products as $val) : $isNewImage = $val->getResource()->getAttribute(‘product_name_logo’)->getFrontend()->getValue($val); ?>
CodeIgniter
Codeigniter : Redirect back to previous page
In the page that you want to go back to you can do: Then from controller you want to back:
Magento
Magento: Admin grid add new button
File Location: \app\code\codePool\namespace\module\Block\Adminhtml\module.php Full code Now in your controller file: \app\code\codePool\namespace\module\controllers\Adminhtml\moduleController.php