{"id":158,"date":"2012-01-02T10:59:05","date_gmt":"2012-01-02T14:59:05","guid":{"rendered":"http:\/\/www.rumfordhills.com\/?page_id=158"},"modified":"2012-01-02T11:17:38","modified_gmt":"2012-01-02T15:17:38","slug":"taking-opencart-live","status":"publish","type":"page","link":"https:\/\/www.rumfordhills.com\/?page_id=158","title":{"rendered":"Taking OpenCart Live"},"content":{"rendered":"<p>While setting up my son&#8217;s storefront, I found that there were a lot of features that he wasn&#8217;t going to use or things that didn&#8217;t make sense (like requiring a phone number)<\/p>\n<p>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&#8217;t line-by-line instructions, they should help anyone who wants to disable these features. \u00a0I&#8217;m assuming you&#8217;re familiar with OpenCart&#8217;s folder structure, and are comfortable editing html and PHP. \u00a0Also, when I say delete, I simply appended a .bak extension to the file so that I could easily restore it at a later point.<\/p>\n<p><strong>Removing Returns Features<\/strong><\/p>\n<p>1) In catalog\/controller<br \/>\ndelete account\/return.php<br \/>\nedit common\/footer.php to comment out return line<br \/>\nedit account.php commenting out text_return lines<\/p>\n<p>2) In catalog\/language\/english<br \/>\ndelete account\/return.php<br \/>\nedit common\/footer.php to comment out return line<\/p>\n<p>3) In catalog\/model<br \/>\ndelete account\/return.php<br \/>\ndelete localization\/return_reason.php<\/p>\n<p>4) In catalog\/view\/theme\/(default|shoppica)<br \/>\nedit template\/account\/account.tpl commenting out return line<br \/>\nedit template\/account\/order_info.tpl commenting out return line<br \/>\ndelete the three return*.tpl files<br \/>\nedit template\/common\/footer.tpl commenting out return line<\/p>\n<p><strong>Removing Gift Voucher, Reward Points, Transaction Features<\/strong><\/p>\n<p>1) In catalog\/controller<br \/>\ndelete checkout\/voucher.php<br \/>\ndelete account\/reward.php &amp; transaction.php<br \/>\nedit common\/footer.php to comment out voucher line<br \/>\nedit account\/account.php comment out reward &amp; transaction lines<\/p>\n<p>2) In catalog\/language\/english<br \/>\nedit common\/footer.php to comment out voucher line<br \/>\ndelete checkout\/voucher.tpl<br \/>\ndelete account\/reward.php &amp; transaction.php<\/p>\n<p>3) In catalog\/view\/theme\/(default|shoppica)<br \/>\nedit template\/common\/footer.tpl commenting out voucher line<br \/>\ndelete template\/checkout\/voucher.tpl<br \/>\nedit account\/account.tpl comment out reward &amp; transaction lines<br \/>\ndelete account\/reward.tpl &amp; transaction.tpl<\/p>\n<p><strong>Removing affiliate Features<\/strong><\/p>\n<p>1) In catalog\/controller<br \/>\ndelete affiliate\/*.php files<br \/>\nedit common\/footer.php to comment out affiliate line<\/p>\n<p>2) In catalog\/language\/english<br \/>\nedit common\/footer.php to comment out affiliate line<br \/>\ndelete affiliate\/*.php files<\/p>\n<p>3) In catalog\/view\/theme\/(default|shoppica)<br \/>\nedit template\/common\/footer.tpl commenting out voucher line<br \/>\ndelete template\/affiliate\/*.php files<\/p>\n<p><strong>Making PhoneNumber an optional field<\/strong><\/p>\n<p>1) In the guest checkout process<br \/>\ncatalog\/controller\/checkout<br \/>\nedit guest.php to remove phone validation logic<br \/>\ncatalog\/theme\/(default|shoppica)<br \/>\nedit guest.tpl remove the &#8220;*&#8221; and code making it a required field from the form<\/p>\n<p>2) Under the account process<br \/>\ncatalog\/theme\/(default|shoppica)<br \/>\nedit edit.tpl, register.tpl to remove error checking<br \/>\ncatalog\/controller\/checkout<br \/>\nedit edit.tpl, register.tpl to remove error checking<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While setting up my son&#8217;s storefront, I found that there were a lot of features that he wasn&#8217;t going to use or things that didn&#8217;t make sense (like requiring a phone number) Figuring out how to disable various attributes are &hellip; <a href=\"https:\/\/www.rumfordhills.com\/?page_id=158\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":122,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-158","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=\/wp\/v2\/pages\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158"}],"version-history":[{"count":4,"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=\/wp\/v2\/pages\/158\/revisions"}],"predecessor-version":[{"id":166,"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=\/wp\/v2\/pages\/158\/revisions\/166"}],"up":[{"embeddable":true,"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=\/wp\/v2\/pages\/122"}],"wp:attachment":[{"href":"https:\/\/www.rumfordhills.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}