{"id":49894,"date":"2015-06-30T01:11:32","date_gmt":"2015-06-30T05:11:32","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=49894"},"modified":"2016-02-17T06:14:58","modified_gmt":"2016-02-17T11:14:58","slug":"opencart-2-x-how-to-remove-fields-from-checkout-process","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-how-to-remove-fields-from-checkout-process.html","title":{"rendered":"OpenCart 2.x. How to remove fields from checkout process"},"content":{"rendered":"<p>\r\n<p>In this tutorial you will learn how to remove checkout fields in <strong>OpenCart<\/strong>.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=2C2XsLQNPYQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to remove fields from checkout process<\/a><\/p>\r\n<p>By default, OpenCart requires your customers to specify some personal information and address fields while checkout. However, sometimes we might want to simplify the checkout process by removing some fields from the checkout page.<\/p>\r\n<ol>\r\n<li>\r\n<p>In this example we will show you how to remove the <strong>Fax<\/strong> field from <strong>Guest Checkout<\/strong> and <strong>Register Account<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>There are two main templates responsible for input fields during checkout in OpenCart template(s): <strong>catalog\/view\/theme\/themeXXX\/template\/checkout\/register.tpl<\/strong> for <strong>Register Account<\/strong> and <strong>catalog\/view\/theme\/themeXXX\/template\/checkout\/guest.tpl<\/strong> for <strong>Guest Checkout<\/strong>. Both of the files follow a similar structure, so the process of modifying guest checkout template and the new user registration template will be similar:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-01.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-01-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-01\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49895\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-01-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-01-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-01.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Let&#8217;s start from editing <strong>Guest Checkout<\/strong> fields. Connect to your server using FTP client or File Manager within your hosting cpanel.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>catalog\/view\/theme\/themeXXX\/template\/checkout\/guest.tpl<\/strong> file: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-02.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-02-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-02\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49896\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-02-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-02-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-02.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>In order to remove the <strong>Fax<\/strong> field, find the following code:<\/p>\r\n<pre class=\"brush:php\">&lt;div class=&quot;form-group&quot;&gt;\r\n\t\t\t&lt;label class=&quot;control-label&quot; for=&quot;input-payment-fax&quot;&gt;&lt;?php echo $entry_fax; ?&gt;&lt;\/label&gt;\r\n\t\t\t&lt;input type=&quot;text&quot; name=&quot;fax&quot; value=&quot;&lt;?php echo $fax; ?&gt;&quot; placeholder=&quot;&lt;?php echo $entry_fax; ?&gt;&quot; id=&quot;input-payment-fax&quot; class=&quot;form-control&quot; \/&gt;\r\n\t\t&lt;\/div&gt;<\/pre>\r\n<p>Remove this code or comment it out:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-03.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-03-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-03\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49897\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-03-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-03-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-03.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Next file which we need to edit is <strong>catalog\/controller\/checkout\/guest.php<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-04.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-04-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-04\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49898\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-04-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-04-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-04.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Find the following code and remove it:<\/p>\r\n<pre class=\"brush:php\">$data['entry_fax'] = $this-&gt;language-&gt;get('entry_fax');\r\n\t\tif (isset($this-&gt;session-&gt;data['guest']['fax'])) {\r\n\t\t\t$data['fax'] = $this-&gt;session-&gt;data['guest']['fax'];\r\n\t\t\t} else {\r\n\t\t\t$data['fax'] = '';\r\n\t\t}<\/pre>\r\n<p>\r\n<pre class=\"brush:php\">$this-&gt;session-&gt;data['guest']['fax'] = $this-&gt;request-&gt;post['fax'];<\/pre>\r\n<\/p>\r\n<\/li>\r\n<li>\r\n<p>Save both files and upload them to the server replacing the original files:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-05.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-05-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-05\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49899\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-05-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-05-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-05.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Now let&#8217;s change the <strong>Register Account<\/strong> fields.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>catalog\/view\/theme\/themeXXX\/template\/checkout\/register.tpl<\/strong> file:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-06.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-06-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-06\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49900\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-06-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-06-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-06.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>In order to remove the <strong>Fax<\/strong> field, find the following code:<\/p>\r\n<pre class=\"brush:php\">&lt;div class=&quot;form-group&quot;&gt;\r\n\t\t\t&lt;label class=&quot;control-label&quot; for=&quot;input-payment-fax&quot;&gt;&lt;?php echo $entry_fax; ?&gt;&lt;\/label&gt;\r\n\t\t\t&lt;input type=&quot;text&quot; name=&quot;fax&quot; value=&quot;&quot; placeholder=&quot;&lt;?php echo $entry_fax; ?&gt;&quot; id=&quot;input-payment-fax&quot; class=&quot;form-control&quot; \/&gt;\r\n\t\t&lt;\/div&gt;<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-07.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-07-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-07\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49901\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-07-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-07-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-07.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>the next file which we need to edit is <strong>catalog\/controller\/checkout\/register.php<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-08.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-08-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-08\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49902\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-08-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-08-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-08.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Find the following code and remove it:<\/p>\r\n<pre class=\"brush:php\">$data['entry_fax'] = $this-&gt;language-&gt;get('entry_fax');<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-09.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-09-300x210.jpg\" alt=\"open_cart_2_remove_checkout_fields-09\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49903\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-09-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-09-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/open_cart_2_remove_checkout_fields-09.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Save both files and upload them to the server replacing the original files.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Thank you for reading this tutorial. Now you know how to remove checkout fields in <strong>OpenCart<\/strong> template(s).<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=2C2XsLQNPYQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to remove fields from checkout process<\/a><br \/>\r\n<\/p>","protected":false},"excerpt":{"rendered":"<p>In this tutorial you will learn how to remove checkout fields in <strong>OpenCart<\/strong>.<\/p>\n","protected":false},"author":12,"featured_media":49906,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1307,907,1157,997,642],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/49894"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=49894"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/49894\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/49906"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=49894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=49894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=49894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}