Wednesday, February 15, 2012

How to set Width Search Input Box

Be The First To Comment
1. catalog\view\theme\default\template\common\header.tpl

find this code:
<input type="text" value="<?php echo $text_keyword; ?>" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #999;">

Replace width:
<input type="text" value="Search Keywords" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '000000'" style="color: #999;width:154px;">

2. Save & Refresh

Saturday, February 11, 2012

Adding the Facebook "Like" Button

Be The First To Comment
Adding the Facebook “Like” button to your OpenCart store’s product pages is very simple — You only need to add one line of code to one of your theme file.

This code will work with URL alias (Search engine friendly URL) turned ON or OFF.

Compatibilty: Tested on OpenCart 1.4.9.4, 1.4.9.3, 1.4.9.2 and 1.4.9.1, but should work for all OpenCart versions.

Facebook "Like" button on OpenCart product page


STEP 1

Download this file from your site to your computer:
\catalog\view\theme\YOUR_THEME\template\product\product.tpl

- YOUR_THEME is the name of the theme you are currently using.
- if you do not see that file in your theme folder, you need to download the file from the default theme’s folder
\catalog\view\theme\default\template\product\product.tpl
STEP 2

Open the product.tpl file with any text editor.
STEP 3

Copy this code and paste to around line 110



Paste code to your product.tpl file

Just re-upload the file to your server and you’re done:
\catalog\view\theme\YOUR_THEME\template\product\product.tpl
Optional Changes

The line of code that you added to your file has a few parameters that can be changed.

1. colorscheme=light – change to dark if your site design is in dark color
2. show_faces=false - change to true if you want to show the small profile pics of the persons who have liked your product
3. height:35px – if you decide to show the pofile pics, change the height to about 80px or more

NOTES:

1. Please note that the code may not work if you run your OpenCart store on Windows hosting server.
2. Facebook has recently changed the “Like” button to behave almost like the “Share” feature. If someone “liked” your product page, Facebook will add the link, summary and a thumbnail picture to his/her profile wall. But the problem is, Facebook may not always choose the right image from your product page to be posted on the Facebook wall.

Source: http://www.getopencartthemes.com/add-facebook-like-button-to-opencart-product-page.html

How to Add New Page

Be The First To Comment
1. Catalog > View > Theme > Default > Template > Common > home.tpl --> copy & rename to new-page.tpl

2. Catalog > Controller > Common > home.php --> copy & rename to  new-page.php
Edit this file, find & replace "Home" to "NewPage" dan replace "home" to "new-page"

3. Catalog > Language > English > Common > home.php --> copy & rename to new-page.php

4. In admin area, make new layout, give the name as "NewPage" and fill route "common/new-page"

Other source: http://forum.opencart.com/viewtopic.php?t=6253

Friday, February 10, 2012

Remove Modul Welcome

Be The First To Comment
1. Open catalog/view/theme/default/template/common/home.tpl
2. Find and remove these code:

<?php if ($welcome) { ?>
<div class="top">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<h1><?php //echo $heading_title; ?></h1>
</div>
</div>
<div class="middle">
<div><?php //echo $welcome; ?></div>
</div>
<div class="bottom">
<div class="left"></div>
<div class="right"></div>
<div class="center"></div>
</div>
<?php } ?>

How to change Favicon

Be The First To Comment
1. Login into admin
2. System-->Setting-->Tab Image
3. Click image Icon and put your image for favicon.
Before that you must prepare favicon in PNG and upload into path: images/data/

4. Save

How to Add Template

Be The First To Comment
1. Upload your template zip and extract into path: catalog/view/theme
2. Login into admin-->System-->Setting-->Tab Store
3. On point Template scrool down n select your template
4. Save

Thursday, February 2, 2012

How to Add Specials Offer

Be The First To Comment
1. Login to your admin page
2. Admin > catalog > products > discount > Add Special Price
3. Enter the new cost and the start and end dates.
 

© 2011 Tutorial Opencart - Designed by Mukund | Sitemap

About Us | Contact Us | Write For Us