Taking OpenCart Live

While setting up my son’s storefront, I found that there were a lot of features that he wasn’t going to use or things that didn’t make sense (like requiring a phone number)

Figuring out how to disable various attributes are popular questions on the OpenCart support forums which seem to go mostly un, or incompletely, answered. Whilst these aren’t line-by-line instructions, they should help anyone who wants to disable these features.  I’m assuming you’re familiar with OpenCart’s folder structure, and are comfortable editing html and PHP.  Also, when I say delete, I simply appended a .bak extension to the file so that I could easily restore it at a later point.

Removing Returns Features

1) In catalog/controller
delete account/return.php
edit common/footer.php to comment out return line
edit account.php commenting out text_return lines

2) In catalog/language/english
delete account/return.php
edit common/footer.php to comment out return line

3) In catalog/model
delete account/return.php
delete localization/return_reason.php

4) In catalog/view/theme/(default|shoppica)
edit template/account/account.tpl commenting out return line
edit template/account/order_info.tpl commenting out return line
delete the three return*.tpl files
edit template/common/footer.tpl commenting out return line

Removing Gift Voucher, Reward Points, Transaction Features

1) In catalog/controller
delete checkout/voucher.php
delete account/reward.php & transaction.php
edit common/footer.php to comment out voucher line
edit account/account.php comment out reward & transaction lines

2) In catalog/language/english
edit common/footer.php to comment out voucher line
delete checkout/voucher.tpl
delete account/reward.php & transaction.php

3) In catalog/view/theme/(default|shoppica)
edit template/common/footer.tpl commenting out voucher line
delete template/checkout/voucher.tpl
edit account/account.tpl comment out reward & transaction lines
delete account/reward.tpl & transaction.tpl

Removing affiliate Features

1) In catalog/controller
delete affiliate/*.php files
edit common/footer.php to comment out affiliate line

2) In catalog/language/english
edit common/footer.php to comment out affiliate line
delete affiliate/*.php files

3) In catalog/view/theme/(default|shoppica)
edit template/common/footer.tpl commenting out voucher line
delete template/affiliate/*.php files

Making PhoneNumber an optional field

1) In the guest checkout process
catalog/controller/checkout
edit guest.php to remove phone validation logic
catalog/theme/(default|shoppica)
edit guest.tpl remove the “*” and code making it a required field from the form

2) Under the account process
catalog/theme/(default|shoppica)
edit edit.tpl, register.tpl to remove error checking
catalog/controller/checkout
edit edit.tpl, register.tpl to remove error checking

 

One Response to Taking OpenCart Live

  1. Pingback: OpenCart Project goes Live | Randy's Blog

Leave a Reply

Your email address will not be published. Required fields are marked *