Magento: Change default sort order for catalog pages?

The easiest thing to do to change the default sort order, so that the newest products show first, simply change line 98 in Toolbar.php
/**
* Default direction
*
* @var string
*/
protected $_direction = 'desc';

\app\code\core\Mage\Catalog\Block\Product\List\Toolbar.php

add the products from catalog at magento page

Add the below code to cms page:
{{block type=”catalog/product_list” category_id=”43″ template=”catalog/product/list.phtml”}}

Top 10 blog software

1, WordPress

2, Movable Type

3, ExpressionEngine

4, Drupal

5, Textpattern

6, Joomla

7, b2evolution

8, Nucleus CMS

9, Serendipity

10, Mephisto

More reviews of this top 10 blog software, please visit http://www.smashingmagazine.com/2008/08/29/10-weblog-engines-reviewed/

magento: add register link at top links

I want to change default “Log In” to ” Log In or Register”,  so how to add register link at top links for magento site?

It’s easy.

At app/design/frontend/default/your-template/layout, find customer.xml, and, find this:

<reference name=”top.links”>
<action method=”addLink” translate=”label title” module=”customer”><label>Log In</label><url helper=”customer/getLoginUrl”/><title>Log In </title><prepare/><urlParams/><position>100</position></action>
</reference>

and just replace the code to:

<reference name=”top.links”>
<action method=”addLink” translate=”label title” module=”customer”><label>Log In or Register</label><url helper=”customer/getLoginUrl”/><title>Log In or Register</title><prepare/><urlParams/><position>100</position></action>
</reference>

That’s OK.

how to add google analytics to magento site

Google analytics is the most useful tool for wesite webmaster to analytics the site. It is easy to add google analytics to magento site. Please just at the adminend, at System>Configuration>Sales>google API>google analytics>, enable it, and just write your account number.

Note: account number is not your google account, such as “yourgoogleaccount@gmail.com”, it is such as “UA-19999034-1″.

Good luck.

Magento: how to add a Static Block to a page

Static Block of Magento is a very useful tool for us to add some static content. Copy the line of code below where you want the static block to appear and change the ‘identifier’ to the identifier of the static block you created.

getLayout()->createBlock('cms/block')->setBlockId('identifier')->toHtml() ?>

Fox example, you just add a static block named “header_content”, and named the identifier “header_content”, then you will add it at the top menu of every page of your website, so, do it like this:

1, look the header.phtml at app/design/frontend/default/your-template/template/page/html

2, add the code:
getLayout()->createBlock('cms/block')->setBlockId('header_content')->toHtml() ?>
to header.phtml.

3, upload the header.phtml to your server, that’s all.

5 Addons and Modules to Promote your Zen Cart site

There are so many addons and modules at zen cart offical site. I will tell you the best 5 addons to improve your zen cart sites.

1, Name: ultimate_seo_urls function: pseudo-static web site url. This is almost a must, unless you do not want to get good rankings.

2, Name: Fckeditor effect: zen-cart is the default text editor, you can choose to become htmlarea, but still not work. FCKEDITOR solve this problem.

3, Name: Newsletter_Subscribe We know the exact e-mail marketing, said “permission-based email marketing.” How to get approved? This is to allow customers to subscribe to your site content. When you have a long, long, long enough mailing lists, that means there is no ranking, your site can still order.

4, Name: column_layout_grid_for_product_listing : zen-cart product list changes the default display style. zen-cart product list is the default style for each product line, just like Ali did. This may not good. If you want to have more than one product line, such as 4 or 5, you use this plugin.

5, Name: Zen_lightbox : that of a cow will not have seen his picture in a pop-up enlarged, dark background to show the way? Called lightbox technology. zen-cart product pictures can also be used to the technology. Compared Hyun, has a good user experience.

Free zen cart template 001

This is my first zen cart template and it is free to download and use.

You can preview it here: Free Zen Cart Template 001.

It was designed with two columns: left boxes and center. And it is black style.

If you want to sell watches or some shine products, this suits you better.

Download this free zen cart template!


Installation Instructions:

  1. Back up everything! Try this in a test environment prior to installing it on a live shop.
  2. Copy the contents of the folder you have unzipped to the root directory of your shop.
  3. Login to admin and in Tools –> Template Selection you will see edit button at the right of page.
  4. Click edit button, and at the DropDownList, choose “templateisall001″.
  5. Click update button.
  6. Go to the Tools->Layout Boxes Controller.
  7. Click on the ‘Reset’ button on the bottom or configure them yourself.
  8. Enjoy!

You can configure template using ‘Tools->Layout Boxes Controller’ and ‘Configuration->Layout settings’ sections in the admin area.

If you have any trouble or suggestions about this free zen cart template, please feel free to post comment at the below. I will reply as soon as possible.

How to remove your ip address

When you had installed your zen cart, you found at the bottom/footer of page, shows that “your ip address is:”. How to remove or delete it?

Remove it:

Go to your admin home, and then “configuration”, and in the drop-down list, click “layout settings”, and then click “Footer – Show IP Address status”, and set it to “0″,  and update.

Delete it:

Go to your FTP, and then go to your zen cart template directory, for example “template_default”, and go to “common” directory, and download “tpl_footer.php”.

Then use DreamWeaver to edit it.  Look up “<!–bof-ip address display –>”, and then you will see the below:

<!–bof-ip address display –>
<?php
if (SHOW_FOOTER_IP == ’1′) {
?>
<div id=”siteinfoIP”><?php echo TEXT_YOUR_IP_ADDRESS . ‘  ‘ . $_SERVER['REMOTE_ADDR']; ?></div>
<?php
}
?>
<!–eof-ip address display –>

And delete these codes.

Now “your ip address is” had removed or deleted at your zen cart website.

Hello Zen Cart!

Hello world!

Hello zen cart!

TemplateIsAll.info  wants to provide some free zen cart templates.

And I will write some tutorials of zen cart.

Zen Cart is one of the best free e-commerce softwares.

So many people use zen cart to build themselves online shop to promote their business.

At the zen cart offical website, there are so many free add ons you can download and use.

I had build more than 20 websites by zen cart software and zen cart hosting.

I hope you can enjoy your zen cart and your business.

I hope TemplateIsAll.info can help you.