Skip to main content

Posts

Showing posts with the label Opencart

Set New Indian Rupee Currency Symbol in Opencart

In 2010 Indian Govt. has launched it's new currency symbol  ₹ . To use this new symbol in your website you can use  &#8377; in your HTML, or if you are using font-awesome library then use  <i class="fa fa-inr"></i> In Opencart you can set currency symbol in localisation setting. If you have tried to copy new rupee symbol from somewhere and paste in Opencart setting. This will not work in some browsers because its not in UTF-8 format. So to use it change the currency.php file in opencart-root/system/library/cart/currency.php (in case of opencart v2.3.x) public function format($number, $currency, $value = '', $format = true) { $symbol_left = $this->currencies[$currency]['symbol_left']; $symbol_right = $this->currencies[$currency]['symbol_right']; $decimal_place = $this->currencies[$currency]['decimal_place']; if (!$value) { $value = $this->currencies[$currency]['value']; } $amount...

How to deploy Opencart application on Hostgator or any Hosting site

Opencart hosting on shared hosting/ Hostgator Opencart is a PHP open source e-Commerce solution. Building an eCommerce application using Opencart is easy but hosting an Opencart application on any shared hosting site such as hostgator requires some little modification to your config files. On your localhost, you would have PHPMyAdmin and PHP configured on your system. You can easily build application and run it on the browser easily. In case of hosting it on shared hosting you can't just upload your application files to the public_html directory of shared hosting. It requires to configure Opencart config file for database and directories setting. I will provide you awesome trick to upload and run Opencart application without much settings and configuration. I have tried it and well tested. Just follow these below steps: Step 1: Copy your Opencart application to any other directory (Lets say /home/opencart-demo). (Just for your backup because we are going to change som...

Enable SEO URL in Opencart

How to enable SEO URL in opencart 1.To use URL Alias you need to be running apache with mod_rewrite enabled.     sudo a2enmod rewrite    sudo service apache2 restart 2. In your opencart directory rename htaccess.txt to .htaccess. contain of .htaccess file Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">  Require all denied </FilesMatch> # SEO URL Settings RewriteEngine On RewriteBase /shop/ RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_...