Showing posts with label how to. Show all posts
Showing posts with label how to. Show all posts

Monday, March 4, 2013

How to Set Maintenance Mode Offline

Be The First To Comment
Put your site in "Maintenance" mode as Website Under Maintenance, Please Come Back Soon
1. Log in to your admin
2. Select menu  System >>Settings, click the edit link for the store.
3. Under tab "Server" tab, you'll find an option for maintenance mode choose YES to offline your site..

Wednesday, January 9, 2013

How to Customer Checkout as Guest

Be The First To Comment
Forcing customers to sign up for an account may sound appealing  because it gathers more customer data, includes more people in mailing lists and encourages repeat custom with advanced features like order tracking.
However, it can discourage sales completely! We’ve even abandoned transactions ourselves because we didn’t want another account sending us messages for a one-off purchase!
It is always best to give the customer the choice to join or not, you can always try to sell the benefits of creating an account later on with order tracking, order priorities, stock notifications or something similar. To allow customers to checkout of your OpenCart store without making an account just navigate to:
  • System -> Settings -> Edit -> Go to the “Option” tab
Go down towards the bottom of the page and ensure that the “Guest Checkout” option is set to “Yes”. From then on your OpenCart customers will no longer be required to have an account with the store to buy products and you should see your sales rise.

How to turn on SEO URL in Opencart

Be The First To Comment
Everyones who's concern with SEO of his web like SEO URL for his opencart store. This because SEO URL is one of prerequisite of rank search engine will be better. Opencart give us easy to modify URL.
 I show you how to turn on SEO URL in Opencart as:

1. Login to your OpenCart admin area and navigate to:  System -> Settings -> Edit -> Go to the “Server” tab
2. On the second row down there will be the option to “Use SEO URLs”, just make sure that the option is set to “Yes” and click “Save”
3. Now open your file manager to root of your web then give attention to htaccess.txt. Rename this file to ".htaccess".
4. Now you will have SEO URLs enabled on your OpenCart store

Let's try. Hopefully you get success.

How To Secure OpenCart Website

Be The First To Comment
OpenCart is not inherently secure, and the fact that it is open-source (with everyone being able to know it’s internal code and file/folder structure) makes it even more susceptible to attacks. Here are several methods to teach you how to secure your OpenCart website.

Essential Steps To Do After Installation

  1. Immediately delete the /install/ directory
  2. chmod the config.php file in both the root and /admin/ directories to 444

Creating A Proper 404 Error Page

Create a file named 404.html in your store root (this is the base directory of your OpenCart store). You can put anything in the file. This file will be served to anyone who tries to access something inappropriately.

Securing The /admin/ Folder

  1. To obscure the /admin/ folder, rename it to a more uncommon name, such as /hahaha/. Next, edit the file /admin/config.php and replace the folder name admin with hahaha (or whatever name you renamed the folder to). There should be 5 instances of admin that you have to change. E.g. change define(‘HTTP_SERVER’, ‘http://www.yourdomain.com/admin/’); to define(‘HTTP_SERVER’, ‘http://www.plastictravelbottles.com/hahaha/’);
  2. Password protect your admin folder with htpasswd. If you’re on cPanel web hosting, then you can do this easily with the Password Protect Directories feature. This method will require you to login twice, but it’s well worth it.

Securing The /system/ Folder

Certain files are wide-open by default. If you have installed OpenCart in your root directory, just go to http://www.yourdomain.com/system/logs/error.log and you should be able to download your error log, even if you’re a public user. You should protect these files, so create a .htaccess with the following code:
<Files *.*>
Order Deny,Allow
Deny from all
</Files>
Then put that .htaccess file in the following 2 directories:
  1. /system/
  2. /system/logs/

Securing The /catalog/ Folder

This folder contains your images, Javascript files, and template files. Anything other than that should not be served, but that’s not the case. Just look at http://www.yourdomain.com/catalog/controller/account/address.php. You can see that the file is still being attempted to run, which poses a security risk. Either a malicious user can get more clues about your system from these error codes, or if the malicious user can find a way to upload his own malicious PHP file, then your whole system could be at jeopardy.
The solution is to put a .htaccess file (we really love .htaccess) in the /catalog/ folder with the following code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !^(.+)\.jpg$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.jpeg$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.png$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.gif$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.css$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.js$
RewriteRule ^(.+)$ /404.html [NC]
This way, anything other than the allowed file types of jpg, jpeg, png, gif, css, and js are blocked. So whenever someone or something accesses any prohibited file types (such as PHP), they’ll be redirected to the 404.html file that you created in the first step of this tutorial.

Securing The /image/ Folder

As above, the /image/ folder requires protection as well, and you need a similar .htaccess file to achieve this. Create another .htaccess file in your /image/ folder with this code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !^(.+)\.jpg$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.jpeg$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.png$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.gif$
RewriteRule ^(.+)$ /404.html [NC]
Note: If you use other file types in your /catalog/ or /image/ directories such as .swf or .flv, then you have to add another RewriteCond line to the .htaccess for that specific file extension.

Source: http://www.sitefixit.com/scripts/opencart/

Thursday, November 15, 2012

How to add Background Image to Body

1 Comment
editing your css

it will be in a folder in your template

catalog/view/your template/stylesheet/stylesheet.css

and fine the body tab on there ex:

body {
background-image:url('bg.jpg'); color: #000000;
font-family: Arial, Helvetica, sans-serif;
margin: 0px;
padding: 0px;
}



and edit the colour to a image referance

or you can change the container

#container {
    background: none repeat scroll 0 0 #FFFFFF;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    text-align: left;
    width: 1000px;
}


Edit # container

#container {
    background: none repeat scroll 0 0 #FFFFFF;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    text-align: left;
    width: 1000px;

    background-image: url("../image/bg-body.jpg");
    background-position: center top;
    background-repeat: repeat-x;
 

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.

Thursday, November 4, 2010

How to add Category

Be The First To Comment
Now, i 'll show you how to add category in opencart store

1. Enter into your admin area ex: http://www.yourstore.com/admin. Use your username and password which you made at installation process.

2. Select the menu Catalog and click at Categories.

3. Fill all the form with your category and atributes.
On tab general there are several information:
Category name: write your category
Meta Tag keyword: use for SEO, write with keyword of category
Meta Tag Description: write your description of category. This description is not display at your store. This tag use for SEO
Description: write your description with your category. Your description will be display at your store.

Second Tab Data:
Parent category is used to add subcategory
SEO keyword use for Search Engine Optimation. Write your keyword here
Image use for upload image for category. Click on image and upload your image for category
Change status is used for activate or inactivate your category. Thera are two option: enable and disable
Sort order is used for arrangement of category. Fill this with numeric


4. After All, Click Save button.

How to change default language

Be The First To Comment
It is simple way to change language from default (English) into your language. Firstly open your cpanel and go to your file manager.

1. Find this path:
public_html/catalog/language/english

2. To make easy in editing Your folder english can be zip and Download.

3. Extract all folder and its content. Edit the value of variable into your language with editor like Macromedia Dreamweaver. After that, Save and upload again appropriately with path so old file will be overwrited.

4. Refresh your page. You can see all of yor page change into your language.

How to install opencart

Be The First To Comment
Opencart is one of the leading opensource ecommerce platforms available. It is simple, fast and easy to use whilst still being as full featured as a modern ecommerce platform is required to be.



In this tutorial we will go through the installation process in the simplest manner.

You will need to have the following information to complete this tutorial:-

1. A hosting account with PHP, MySQL.
2. Your cPanel username and password.

Step 1 – Download Opencart

Goto http://www.opencart.com/index.php?route=download/download and grab a copy the latest version of Opencart.

Step 2 – Log in to CPanel

Log into your hosting site using the link to cPanel that your hosting company has sent you. Generally it will be something like www.yourwebsite.com/cpanel.

Step 3 – Create Database

Now before we start uploading files and beginning the actual Opencart installation process we will need to create our MySQL database to store all of our Opencart information. Note that at this stage Opencart only supports MySQL as the data storage method.

Ok, so look for the database section in cPanel and click on the MySQL Databases application. Here we are we are prompted to choose to either create a database, create a user or add a user to a database. This may vary slightly between versions of cPanel but the basic options are the same. So, first of we need to create the database. We do this by entering the name of the database we would like to create.

Next we need to create a user and give them the permissions needed to install Opencart and work with the data. So create a user and give them a password (Be sure to write down the database name, user name and password for later). Once we have done this the last step is to grant the user we have just created access to the database and set their permissions. As a rule until you understand permissions better it is best to just give the user all permissions.

Step 4 – Upload Opencart

Now that we have downloaded the Opencart packaged, create a database and created a user with the correct permissions to access our database we need to upload the Opencart zip file and begin the installation process.

There are two ways to accomplish uploading the Opencart package and the easiest way is to use the file manager application within the cPanel script. Once we open up the file manager application we need to navigate our way to the installation directory (folder) on our server that we want to install Opencart in. For simplicity we will say that our Opencart store is going to be installed in the root directory of our host (/home/user/public_html/ or similar).We need to goto the directory public_html/ and click on the upload file button.

Once there it is now time to upload the Opencart zip file that we downloaded in step 1. We do this by clicking on the browse button, selecting our file and uploading it.

Now we can see that in the public_html/ directory we have the Opencart zip file. To extract the file we simply select the file and click extract.

After the file has finished extracting we should be left with a few text files that contain install instructions, licenses and some technical jargon known as the changelog but also we should be left with a folder called Upload. What we need to do is click into the Upload directory and then select the contents (Select All button) and copy the content back into the public_html/ directory which we do by dragging those files over to the left had side folder (public_html/).

Step 5 – Run Opencart Install

Now that we have created our databased and user, uploaded and extracted our Opencart zip file to the correct place on our server we can now run the Opencart install script. Remember you will need the name of the database you created as well as the username and password to access the database.

By opening a web browser and typing in the domain name of our shop such as www.myshopdomain.com we will be automatically taken to the start of the Opencart install script. Here we are presented with a license agreement that we need to agree to followed by an automated test of our hosting enviroment to make sure that our hosting package has all the basic requirements for Opencart to run. Most hosting packages should mee all the requirements but if you see that your hosting package does not meet the requirements you have two options. Either use another hosting company or contact your existing hosting company and ask if they can upgrade your hosting package to meet the minimum requirements of Opencart.

Now that we have met all the requirements and have clicked next we are presented with our settings page in which we will need to enter our database information and the name of our admin user, their password and email address.

Enter the database name, the database username and password that we created in Step 3. Finally type in the name of the admin user give them a password and type in the admin users email address and click next.

Step 6 – Delete Install Directory

Before we log into our brand new Opencart store we need to make sure that we have deleted the install directory. We do this by using the same cPanel file manager application that we used previously and going to t=our install directory (public_html). From here we need to select and delete the public_html/install directory.

Step 7 – Finish

That’s it! Congratulations! We have now successfully install our Opencart ecommerce shop. We can see what our store looks like by visiting our domain such as www.myshopdomain.com or we can log in and start running our shop by visiting www.myshopdomain.com/admin.

If you have any question about this posts or have seen something that we need to correct feel free to leave a comment.

Tuesday, November 2, 2010

How to set up default currency

1 Comment

Goto Admin>Configuration>Settings>Local> Change Currency from USD to what ever currency you want.

It's very simple you know..Don't forget to clear your cookies of your localhost.

Thursday, October 28, 2010

How to remove coupon from cart

Be The First To Comment
Find and Open this path file:
catalog/view/theme/template/checkout /confirm.tpl

Find this code:
<div class="content">
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="coupon">
<p><?php echo $text_coupon; ?></p>
<div style="text-align: right;"><?php echo $entry_coupon; ?>&nbsp;
<input type="text" name="coupon" value="<?php echo $coupon; ?>" />
&nbsp;<a onclick="$('#coupon').submit();" class="button"><span><?php echo $button_coupon; ?></span></a></div>
</form>
</div>

Delete it and refresh your page. The coupon in cart will be removed

Sunday, October 24, 2010

How to Clonning Modul Opencart

Be The First To Comment
It is very rare that this will be needed. Even when you think you have to duplicate a module like "flat rate", it is actually best done using one of the zone based options like weight-based or zone plus.

But in any case, for those that are hell bent on duplicating existing sideboxes, payment, or shipping modules. This hi-level breakdown should get you going.

1. CHOOSE THE FILES
First think of which module you new module is most similar too. In this example, we will make a clone of the "Cash on Delivery" payment module and name it "Cash on Pickup".

There are generally 6-8 files that need to be cloned for each module, and they follow a similar structure:
1. admin/controller/payment/cod.php
2. admin/language/english/payment/cod.php
3. admin/view/template/payment/cod.tpl
4. catalog/controller/payment/cod.php
5. catalog/language/english/payment/cod.php
6. catalog/model/payment/cod.php
7. catalog/view/theme/default/template/payment/cod.tpl


2. CLONE & EDIT THE FILES
Use your favorite FTP client (like ftp wanderer)
1. Goto the path for each file above
2. download the cod.* file to your local pc (e.g. c:\cop)
3. rename it to "cop" (be sure to note the extension as either .php or .tpl)
4. Use a good (free) text editor like notepad++ to edit the file.
5a. In the notepad++ menu, Goto "Search->Replace..."
- Find what: cod
- Replace with: cop
Click "REPLACE ALL"
5b. For language files, be sure to change wording as appropriate. Example "Cash on Delivery" should be changed to "Cash on Pickup".
5c. For modules that use underscores (i.e. pp_standard) You must ensure that the class name at the top of the controller & model files does NOT have this _ after doing the replace all.
Correct: class ControllerPaymentPPStandard extends
Incorrect: class ControllerPaymentPP_Standard extends
6. Save the file.
7. Now reupload the new file to the same directory path. Now you should have a cod and cop file next to it.
8. Delete the local file in c:\cop
9. Repeat for each file, one by one.

3. INSTALL THE NEW FILES
Now that we have the new files uploaded, they should likely be seen by the OpenCart payment module system.
1. In the OpenCart Admin section, goto Extension->Payment
2. If everything is right so far, you should see the new "Cash on Pickup" module waiting to be installed
3. Click Install
4. Click Edit. If there are no errors then configure it appropriately. If there are errors, you likely missed a step in the edit. Note what file the error is in and check that file, tracing back your edit steps above
5. Save the configuration
6. Goto the customer checkout process and verify there are no errors. You should see a new Cash on Pickup payment option.

Done.
 

© 2011 Tutorial Opencart - Designed by Mukund | Sitemap

About Us | Contact Us | Write For Us