Posts

Showing posts from March, 2018

How to get rid off Wish List and Compare Product from Category page in OpenCart

Image
Opencart  Version 2.3.0.2 Some online shops like restaurants may not require 'Add to wish List' and 'Compare the Product' buttons on the category view page. Go to category.tpl which is the template file for category view and comment out the two lines of code. Where is the template file located? pbulic_html/catalog/view/theme/default/template/product/category.tpl Where is the code? Approximately  at line no:130 you will see the following <div class="button-group">                 <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>                 <button type="button" data-toggle="tooltip" title="...

Order email not sent in opencart

Image
Sending emails form Opencart has been a problem from earlier versions. Latest version  2.3.0.2  is not an exemption. There are few things to be taken care of to sort this out. PHP version: Change the PHP version at the hosting control panel to 7 or 7.1 Log into the admin panel and add email properly. There are two places where you have to do this.  2.1 First is at Settings / Store /  - Make sure you enter your email address correctly. Assume your email id as info@domainname.com 2.2. Second is Settings / Mail / - See how it is filled in the image Opt the following Mail Protocol: Mail Mail Parameters:  F info@domainname.com ( put 'F' in front of the email address ) SMTP Hostname: smtp.domainname.com (This is your SMTP server address which you can get from the hosting control panel - look for email section. This could be different for different hosting companies) SMTP Username: info@domainname.com SMTP Password: (the email password you set in the ...