Thứ Năm, 10 tháng 1, 2013

Free joomla template ZT Xenia

Think of valued customers with the affection born of our long friendship, we’re honored to present a free joomla template -  ZT Xenia as a thank for our long lasting relationship and a wish that this association will continue in 2012 with more strength and vigor.



ZT Xenia is made by our dedicated team of designers who know what the quality means. Being designed as one of the world's largest premium joomla template with fully support of K2 CCK, Mega Menus, RTL languages, Piecemaker 3D slideshow, Color Tools, ZT Xenia is the best combination of visual efficiency and simplicity of editing. If you're looking for premium, high quality website templates, look no further!

Joomla templates features

  • Can be used for kind corporate, portfolio, business website...
  • Build in color tools
  • Mega Menu supported
  • 100% Tableless design. 100% CSS/DIV compliance.
  • Joomla 1.5 and Joomla 2.5 native
  • Smartphone template ready
  • RTL language support
  • Well-comment CSS and PHP code files
  • Tutorial + Detailed userguide
  • Delivered with source Adobe .PSD files
  • Delivered with QuickStart Package
  • K2 CCK supported
  • Piecemaker 3D slideshow supported
  • 2 columns layout based template
  • 16 module positions ready
  • Compatible IE 7+, Safari, Mozilla Firefox, Opera 9+, Chrome
  • Javascript, Css compression and Cache supported


Free joomla template ZT Zizia

ZT Zizia from ZooTemplate is a free business joomla template with modern touch, which makes it compatible to most kind of business website.



Thanks to ZT Headlines, ZT PieceMaker, ZT Zizia becomes a modern business template with completely slick and creative design where the minimalistic needs meet the clean and freshness. Besides, ZT Zizia also provides you a completely professional corporate environment to showcase your company and products. It is totally agreeable to say that the quality of ZT Zizia exceeds most templates found in premium market.

Joomla templates features

  • Can be used for kind corporate, portfolio, business website...
  • Mega Menu supported
  • 100% Tableless design. 100% CSS/DIV compliance.
  • Joomla 2.5 native
  • Smartphone template ready
  • RTL language support
  • Well-comment CSS and PHP code files
  • Tutorial + Detailed userguide
  • Delivered with source Adobe .PSD files
  • Delivered with QuickStart Package
  • K2 CCK supported
  • Piecemaker 3D slideshow supported
  • 2 columns layout based template
  • 16 module positions ready
  • Compatible IE 7+, Safari, Mozilla Firefox, Opera 9+, Chrome
  • Javascript, Css compression and Cache supported

Thứ Ba, 8 tháng 1, 2013

What's 9MagentoThemes QuickStart Package


9MagentoThemes provides QuickStart package for each theme which aims to easy to use and comfortable for users. It will help you save much time of installing and configuring if you plan to start your site from the beginning. Installing QuickStart package is quite easy as you install normal magento. The QuickStart package included all the files needed to install magento 1.5.x latest stable version, our theme, extensions, also the sql dump content included to set the template exactly like we show on the demo showcase.
QuickStart= Magento version 1.5.x + MT themes + extensions + sql demo contents

How to install 9MagentoThemes QuickStart package?

  1. Download the QuickStart package .zip file from the 9MagentoThemes website and uncompress it (you can use winrar or winzip to uncompress files on windows machine or use unzip zipfilename.zip to uncompress files on Linux server)
  2. Upload the Magento web files to your web server via FTP
  3. Create a MySQL database and user/password for Magento This step varies by hosting provider and is out of the scope of this document. Consult your provider's support/documentation for instructions on how to do this.
  4. Ensure that the file magento/var/.htaccess, the directories magento/app/etc, magento/var, and all the directories under magento/media are writable by the web server. To do so, navigate to the directory with your FTP client. Then locate the function "Change Permissions" or "Change Mode" in your FTP client and select it. Once you find the function, you must set the permissions so the web server can write to this file. There are two typical ways of representing file permissions in Linux:
    1. As a number (eg, 755)
    2. As a series of permissions categorized into user, group, and other
    If your FTP client uses the first representation, set the permissions on each directory to be 777, or 0777. If your FTP client uses the second representation, set the permissions as shown in the image below.
  5. Folder permission
  6. Use your web browser to surf to the Magento installation wizard. If you've uploaded the Magento files to http://www.example.com/magento/, then the wizard will be located here: http://www.example.com/magento/install/.
  7. Once in the wizard, you can configure various system-level settings that are required for Magento to function. Most options will be intelligently guessed for you, but you're free to override any settings that don't look right. At the very least, change the database parameters in the first box “Database connection” to match those of the database you set up in Step 2.
  8. Success! You've installed 9MagentoThemes QuickStart package. You can now visit the administration backend and begin configuring your new online store

Magento Themes Design Book Review


Magento 1.4 Themes Design was written by Richard Carter and published by Packt Publishing. It was published in January of this year (2011). I read the eBook copy, so I have not yet been able to look at the paper copy, but if it is like every other book published by Packt, there’s not much to complain about.
This book is geared towards beginners looking to get their hands dirty with theming Magento, and understanding how it works. If you are only used to theming applications like WordPress or ZenCart, you will find Magento very difficult. Magento doesn’t just use template files. Magento is much more like a framework, and should be considered as such. They have implemented a powerful system of blocks, layout xml, and template files. The concept can be difficult to wrap your head around, and that’s where this book can really help you get started.
You’ll find the book very well organized, and the author does an amazing job explaining concepts without rambling on forever. There are many occasions where a link to a article (mostly wiki articles on Magento’s site) that better explains the concept in detail, which is nice as it doesn’t clog up the book, and allows you to choose to explore the concept further or not.
Some of the things about things about this book that I appreciate:
  • Suggests when upgrading from 1.3 to 1.4 to start the theme over from scratch. While this seems crazy, from my experience, it has been the best option.
  • In chapter 1, the author goes through 6 differently themed Magento sites (3 themes that come with a fresh Magento installation, and 3 established websites using Magento) and explains the design elements in Magento terminology. It was great to see so many examples to see how magento themes can be used differently.
  • Defined the challenges of theming with Magento.
  • Did a nice job of explaining theme hierarchy.
  • Suggests only using a single xml layout file for your custom themes. I had already learned that this is a great practice to have, and the fact that the author suggested this and gave good reason for it was appreciated.
  • Walk you through how to create a theme from scratch (though still basically based off of the base/default theme).
As you walk through the chapters in this book, it does a nice job easing you into the concepts, and keeps the flow going, building further upon what you are learning. Overall, for a beginner, I would highly recommend this book.
The only cons of this book: If you are hoping for a detailed and in-depth explanation of how layout xml works (like I was), this book won’t quite do it, though does a great job explaining the basics, which is the purpose of the book. The only other complaint I have is that the author suggests that you FTP all of the unpacked files to the server. I wouldn’t ever suggest that, but, if you are a beginner and are unfamiliar with using the command line, I guess it gets the job done (though very slowly!).

How can I transfer my Magento store from one host to another provider?

How can I transfer my Magento store from one host to another provider?


This tutorial provides detailed information how to move a Magento store from one host to another (or to a different hosting account).

Step 1 - Create a Database

First, you need to create a new MySQL database for your store. Log in to cPanel by following the instructions given in your Account Information email. Then click on the MySQL® Database Wizard icon. Type in a name for your new database (e.g. mystore) and click Next Step (see Figure 1). Now you need to assign a new user to your database. Type in a username and password then click Next Step. Finally, check the All Privileges checkbox and click Next Step to complete the database wizard.
You can now log out of cPanel and continue with the next step.

Figure 1: Create a New Database

Step 2 - Backup and Transfer Site

Now you need to make a backup of your existing store by downloading all the files in your Magento main directory to your local computer. If you have SSH (Shell) access at your current server, you can simplify the process by making a archive of your entire site first by using the 'tar' command. Run the following in your store's main directory:
  1. tar -czf backup.tar.gz *
This will create a compressed "tarball" which can be downloaded to you local computer, then uploaded to our server. You can also transfer the file directly between the two servers by using the 'wget' command. To do this, you will need to log in to your account on our server using SSH, navigate to the directory where your site should be located. Then run the following command.
  1. wget http://your_domain_or_ip/backup.tar.gz
  2. tar -xzf backup.tar.gz
This will download your backup.tar.gz file to our server and uncompress it in the current directory. Note: you may transfer the backup file using e.g. FTP instead if you prefer.

Step 3 - Backup Database and Import

In this step you will make a backup of the current database and import it into the database you created in Step 1. To backup your database we recommend using SSH (if available) or a tool like phpMyAdmin.
Log in to your server with SSH, and then run the following command (replace hostname, dbUsername and dbName):
  1. mysqldump -h hostname -u dbUsername -p dbName > db_backup.sql
This will create a "dump" of your entire database dbName and save it as db_backup.sql in the current directory. If you don't have SSH access, contact you current host for assistance on how to backup the database.
To import the backup into your newly created database, log in to SSH on our server and run the following command (replace dbUsername and dbName with the username and database name from step 1):
  1. wget http://your_domain_or_ip/db_backup.sql
  2. mysql -h 127.0.0.1 -u dbUsername -p dbName < db_backup.sql
This will download the backup file from your old server to ours and import the data into the database named dbName. Note: you may transfer the backup file using e.g. FTP instead if you prefer.

Step 4 - Reset File Permissions

To make sure that all javascript files, CSS, and images load correctly, you should reset the file permissions to the recommended settings for our servers. Some other providers require file permission settings which are not compatible with our setup, or may even be unsecure.
Run the following commands from your Magento root directory (e.g. public_html):
  1. find . -type d -exec chmod 755 {} \;
  2. find . -type f -exec chmod 644 {} \;
This will reset permissions for all files to CHMOD 644, and CHMOD 755 for directories.

Step 5 - Modify Configuration Settings

The final step is to edit the Magento configuration file to use the new database. Open the file local.xml under the "/home/username/public_html/magento_dir/app/etc/" directory in your favorite text editor (tip: use the File Manager in cPanel). Locate the <default_setup> and make the necessary changes as illustrated below.
  1. <default_setup>
  2. <connection>
  3. <host><![CDATA[localhost]]></host>
  4. <username><![CDATA[dbUsername]]></username>
  5. <password><![CDATA[dbPassword]]></password>
  6. <dbname><![CDATA[dbName]]></dbname>
  7. <active>1</active>
  8. </connection>
  9. </default_setup>
Save the file and you are all set! You should now be able to open your site at our server. You may have to log in to the admin panel and change the Base URL for links to work if you are using a different domain.
PS: In order to use the Magento Connect Manager you may have to reset the PEAR configuration settings. To do this, simply remove the file downloader/pearlib/pear.ini, and a new one will be created automatically.
If you have any comments or questions regarding this tutorial, feel free to contact us.

How To Create CSS Image Buttons In Your Magento Themes


Many developers and store owners don’t like to use images as buttons simply because they do not wish their users to wait until the images load. Image buttons gives the flexibility to display images as per store’s requirement but these days lots and lots of stores are opting to create CSS image buttons rather than image buttons. With a very little tweak you can get rid of image buttons in your theme and switch to CSS buttons. If you are willing to change your image buttons to CSS powered buttons then follow the steps given below:


Take a nice background image which is blank and nothing written on it. We will use this background image to generate text over it. Basically, if you follow CSS buttons you don’t have to create separate images for each button. Download the background image given below for an example (you can create your own image background).
In your magento themes you will find various instances where you have to change image button to CSS button. For an example we will take “Proceed to Checkout” button code app/design/frontend/default/Your_theme/template/checkout/onepage/link.phtml
By default you will see something like this (if you are using default theme)
<a href="/"><img src="/" alt=""/></a>
Now, we will use CSS and HTML to tweak and change the background for this button.
<a class="css-button btn-checkout" href="/"><span><?php echo Mage::helper('checkout')->__('Proceed to Checkout');?></span></a>
Note: if you are using v 1.7 then change like this
<a class="css-button btn-checkout" href="/"><span><?php echo $this->__('Proceed to Checkout')?></span></a>
You will notice that we have called css-button class along with btn-checkout which will enable us to change font color or size later if needed. Your CSS button is ready. Now, lets write the CSS for this button
.btn-checkout {
display:block;
float:right;
background:transparent url(../images/btn_proceed_to_checkout_rad.gif) no-repeat 100% 0;
font-size:15px;
font-weight:bold;
padding-right:8px;
}
.btn-checkout, .btn-checkout:hover {
color:#fef5e5;
text-decoration:none;
}
.btn-checkout span {
display:block;
padding:0 17px 0 25px;
background:transparent url(../images/btn_proceed_to_checkout_bg.gif) no-repeat;
line-height:40px;
}
You are done, your CSS button is ready, just clear your cache and see the CSS button.
Similarly, you can change the buttons of other instances like Add To Cart etc. E.g. app/design/frontend/default/your_theme/template/checkout/onepage/review.phtml
change this
<input type="image" src="/" onclick="review.save();" value="" />
To
<a class="css-button btn-checkout" href="#" onclick="review.save();"><span><?php echo $this->__('Place Order') ;?></span></a>
Changing image buttons to CSS buttons is an easy task if you follow the steps given above but make sure that you switch to all instances of image buttons to CSS one’s otherwise your store might look awkward. Please leave me a comment and let me know if this trick helped you to convert your Magento store image buttons to CSS buttons. Don’t forget to subscribe our RSS to receive latest updates delivered to your mailbox.

How To Add Lightbox To Magento Theme


Have you ever wondered how people are showing larger images for products on mouseover or mouse click using lightbox (very popular JavaScript library). Adding Lightbox to your magento theme is not difficult and by adding very little code to your theme you can get the Lightbox functionality easily. Lightbox will give the ability to highlight your products by showing lager image of the product along with brief description. Our approach will be based on default layout, you can change the theme name based on your selection.

Steps To Add Lightbox To Magento Theme (Prerequisites)

Following are the steps to add Lightbox to your Magento Theme
  1. Download Lightbox from here
  2. Make a directory called /lightbox under /skin/frontend/default/default/js/ and copy the entire lighbox code under that directory. Once done, your directory will look like /skin/frontend/default/default/js/lightbox (all code under this directory)
  3. copy the lightbox.js under /magento/js/lightbox (create a folder under js directory and name it lightbox). If you installation is under root directory then copy it under /root/js/lightbox
  4. Now, you should copy the lightbox.css to /skin/frontend/default/default/css directory.
  5. Create a folder called lightbox under /skin/frontend/default/default/images. Your directories for images will finally look like /skin/frontend/default/default/images/lightbox. Copy all the images from source lightbox directory here.

Changing Lightbox default’s As Per Your Magento Theme

Lightbox is free open source JavaScript library to suit any kind of environment. In order to use Lightbox with Magento we have to change few default settings by assigning your theme’s original path. Following are few changes which you have to make in order to install Lightbox with your Magento theme installation.

How To Change Image Directory Location Of The Lightbox

Soon after you are done with the above pre-requisites change the following code by editing /skin/frontend/default/default/css/lightbox.css
find the following line of code
background: transparent url(../images/blank.gif) no-repeat;
and replace it with
background: transparent url(../images/lightbox/blank.gif) no-repeat;
Now find the following line of code
#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
and replace it with
#prevLink:hover, #prevLink:visited:hover { background: url(../images/lightbox/prevlabel.gif) left 15% no-repeat; }
Find the following line of code
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }
and replace it with
#nextLink:hover, #nextLink:visited:hover { background: url(../images/lightbox/nextlabel.gif) right 15% no-repeat; }
Now, lets make few changes in the lighbox.js file which will be found under /skin/frontend/default/default/js/lightbox/lightbox.js
Edit this JS file with your favorite editor and find the following line of code
fileLoadingImage: 'images/loading.gif',
fileBottomNavCloseImage: 'images/closelabel.gif',
and replace these lines with this
fileLoadingImage: SKIN_URL + 'images/lightbox/loading.gif',
fileBottomNavCloseImage: SKIN_URL + 'images/lightbox/closelabel.gif',
Now, change the head.phtml file which will be found under /app/design/frontend/default/default/template/page/html/head.phtml
Edit this file using your favorite editor and find the following line of code
<script type="text/javascript">var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
</script>
replace this code with the following line of code
<script type="text/javascript">var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
var SKIN_URL = '<?php echo $this->helper('core/js')->getJsSkinUrl('') ?>';</script>

Adding Stylesheet & JavaScript To Your Magento Installation

Open page.xml from /app/design/frontend/default/default/layout/page.xml using your favorite editor.
Under the following line of code
<block type="page/html_head" name="head" as="head">
....
</block>
Add this
<action method="addItem"><type>skin_js</type><name>js/lightbox/lightbox.js</name></action>
<action method="addCss"><stylesheet>css/lightbox.css</stylesheet></action>
AFTER the prototype.js. It is recommended to add the two lines where the list of js and css files intersect so it will look something like this:
     ...
<action method="addJs"><script>mage/cookies.js</script></action>
<action method="addItem"><type>skin_js</type><name>js/lightbox/lightbox.js</name></action>
<action method="addCss"><stylesheet>css/lightbox.css</stylesheet></action>
<action method="addCss"><stylesheet>css/reset.css</stylesheet></action
...

How To Add Lightbox To Magento Product Detail Page

Edit media.phtml from /app/design/frontend/default/default/template/catalog/product/view/media.phtml using your favorite editor
Find the following line of code
<?php foreach ($this->getGalleryImages() as $_image): ?>
<li><a href="#" onclick="popWin('', 'gallery', 'scrollbars=yes,width=200,height=200,resizable=yes');return false;">
<img src="/" alt="" title=""/></a>
</li>
<?php endforeach; ?>
and replace the above lines with this
<?php foreach ($this->getGalleryImages() as $_image): ?>
<li><a href="/" rel="lightbox[rotation]" title=""><img src="/" width="68" height="68" alt=""/></a>
</li>
<?php endforeach; ?>
Now, you are all set. You will see the Lightbox opening up for your product images. Leave me a comment and let me know if you run into any difficulty.

MT Slideshow setup userguide

MT Slideshow setup userguide


magento slideshow
In this tutorial, we will show you how to setup and configure the MT Slideshow extension
Step 1: Download MT Slideshow package .zip file from download section.
Step 2: Uncompress it (you can use winrar or winzip to uncompress files on windows machine or use unzip zipfilename.zip to uncompress files on Linux server)
Step 3: Using your FTP client to upload 'app', ‘media’, ‘skin’ and ‘js’ directories to your store root. This would not overwrite any file, just adding the extension to its folder.
Step 4: Enable / Disable MT SlideShow
Go to System -> MagenThemes -> MT SlideShow -> Configuration, you can see a field setting named ‘Enable’, choose ‘Yes’ to use MT SlideShow. Then click Save Config to save your change.
Step 5: Add Slide
Go to MagenThemes -> MT SlideShow -> Manage SlideShow, click “Add Slide” button
A. Slide information:
+ Identifier: set unique identifier for your slideshow, ex: slideshow1
+ Position: select the position which you want to show your slideshow.
+ Status: Enable
B. Image:
+ browse to your images and press Upload button to upload them.
+ Fill all information for your images slideshow: title, image link, description
C. Display on Category / Display on CMS page: select the category and cms page which you want to disable the slideshow
After all above task done, press the Save button.
Step 6: Refresh the front-end of your store to see how it work.

MT Product setup and configure guide

MT Product setup and configure guide


In this tutorial, we will show you how to setup and configure the MT Products extension
Step 1: Download MT Product package .zip file from download section.
Step 2: Uncompress it (you can use winrar or winzip to uncompress files on windows machine or use unzip zipfilename.zip to uncompress files on Linux server)
Step 3: Using your FTP client to upload 'app', ‘media’, ‘skin’ and ‘js’ directories to your store root. This would not overwrite any file, just adding the extension to its folder.
magento products list
Step 4: Enable / Disable MT Products
Go to System -> MagenThemes -> MT Products -> Configuration, you can see a field setting named ‘Enable’, choose ‘Yes’ to use MT Products. Then click Save Config to save your change.
Step 5: Add MT Product List to the home page
To setup your homepage, you will need to go to (CMS → Manage Pages). Select "Home Page", with the identifier as "home". Scroll down and look for "Content", inside that you will have to input your homepage code. Please copy and paste the code below:
{{block type="mtproducts/MtProducts" before="-" name="mtproducts" template="magenthemes/mtproducts/mtproducts.phtml"}}
After all above task done, press the Save button.
Step 6: Refresh the front-end of your store to see how it work.

Basic SSH Commands for Magento Developers

Basic SSH Commands for Magento Developers


During my long time developing with Magento I’ve very rarely had to use SSH to make changes to the server environment for the benefit of my store. However, as you look around the Internet it quickly becomes apparent that Magento can make real use of actions provided by shell. Some examples are:
  • Setting up Magento on multiple domains with SSL certificates
  • Installing / upgrading Magento
  • Installing extensions
  • Resetting file permissions
ssh commands
I’m not going to go into how to do all these things because it’s documented very well on the Internet already. However with my experience, here’s a few basic SSH commands a Magento Developer should know before going in with shell.

Navigating Folders

ls 
List all items in current directory
cd foldername 
Change directory to specified folder name (e.g cd httpdocs/downloader)

Creating Editing Files

vim filename
Create specified file in current directory (e.g vim vhost.conf)
vi filename
Go into and edit the specified file (e.g vi vhost.conf)
Esc + :wq 
Save and quit when you’re editing a file, press Escape key followed by :wq to get out of file editing mode.

Removing Copying Files

rm filename
Deletes the file specified within current folder (e.g rm vhost.conf)
rmdir
Removes the specified directory (e.g rmdir /httpdocs/var/session)
cp filename
Copies the file specified within current folder (e.g cp vhost.conf)
cp –a /var/www/public_html/* /var/www/public_ftp/
Copies all files from one directory into a new specified directory (e.g above all files from public_html go into public_ftp)
This is all stuff that helped me out so hopefully it will for you too. My one word of caution will be to be very careful when creating important server files in shell, as one wrong move can bring your server down. You often need to restart your server after making such changes, so remember to do that after you’re done.

Magento’s Three Milestones

Magento’s Three Milestones

I’d just like to take a few moments to comment on Roy Rubin’s official post about Magento’s 3-year anniversary. Read article here… There certainly seems to be a lot of fascination over the number 3 for Magento on it’s third birthday. Here’s why:
  • Magento was released on the 31st of the 3rd month, 3 years ago
  • Magento has had over 3 million downloads!
  • Magento has over 3 thousand extensions
In that 3 years, there’s also 3 editions of Magento available (Community, Professional Enterprise), and there’s also 3 versions of Magento (Magento Commerce, Magento Mobile Magento Go). Also if you rotate the Magento logo 90 degrees clockwise, the ‘M’ becomes ’3′. OMG!!1!
Before I start thinking with the same numeric obsessive compulsiveness as Jim Carrey in the Number 23, I’ll drop the figures and focus on Magento’s biggest achievement: the Magento community.
The beauty of open source is the fact that anyone can contribute to it, and therefore everyone can feel like a part of its success. Magento has brought together developers from all over the world, and we all have the same goal: to have the best and most flexible ecommerce system available. I’ve been in touch with a large number of developers since beginning with Magento over two years ago, and the selfless attitude of many of the people I have spoken to is remarkable.
If Magento was an off-the-shelf solution it would still be a great product, but without the strength of the Magento community behind it there would never have been the same driving force behind its success.
I hope the community continues to grow in the next 3 years as the Magento product matures and firmly establishes itself in the mobile market. It means that there will never be a ‘finished product’. Hence the tagline: “Ecommerce Software for Growth”…