Google Chart over ssl in magento admin

Share
Posted on September 26th, 2014 | Posted by admin

Turning on ssl in magento admin pages requires extra effort.

Magento uses google chart to generate order diagrams making requests to http://chart.apis.google.com/chart.

Up until now google apis can’t use ssl, but now there is a possibility – https://chart.googleapis.com/chart. So all we have to do is to overwrite Mage_Adminhtml_Block_Dashboard_Graph class, which is responsible for charts generation.

Touching core files is a very bad practice, so we copy some files:

How to change the number of columns on the product listing page?

Share
Posted on September 24th, 2014 | Posted by admin

All you need to do is open the catalog.xml file under app/design/frontend/default/YOUR THEME/layout/catalog.xml and add this piece of code

<action method="setColumnCount"><columns>2</columns></action>

under the Category Default Layout:

<!--
Category default layout
-->

inside the “product_list” block

<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">

Market – Premium Responsive Magento Theme

Share
Posted on September 23rd, 2014 | Posted by admin

Market is a responsive multipurpose Magento theme which is fully customizable and suitable for any kind of store. This responsive theme is a general purpose responsive theme which can be highly customized and tailored for any heavy Magento store such as digital store, hitech store, watch store, men store, women store, cothing store, furniture store, book store, cosmetics shop, luxury jewelry and accessories store…

Market - Premium Responsive Magento Theme

Magento – Captcha in Magento 1.7.

Share
Posted on September 22nd, 2014 | Posted by admin

In Magento 1.7. Captcha basically uses for security reason to prevent spam
now a days captcha in website is very much popular so magento is also one of them now
you will fing the configration for captcha in

System » Configuration » Client » Configuration client » Captcha

you will find several options there on which page you want to add the capcha code

magento themes

Magento – Upload file code

Share
Posted on September 19th, 2014 | Posted by admin

<?php
$post = $this->getRequest()->getPost();
//var_dump($post); die;
if(isset($_FILES['file']['name']) && (file_exists($_FILES['file']['tmp_name']))) {
try {

$uploader = new Varien_File_Uploader(‘file’);
$uploader->setAllowedExtensions(array(‘pdf’,'doc’,'png’,'jpg’)); // or pdf or anything

$uploader->setAllowRenameFiles(false);
// setAllowRenameFiles(true) -> move your file in a folder the magento way
// setAllowRenameFiles(true) -> move your file directly in the $path folder
$uploader->setFilesDispersion(false);

Page 1 of 3123»