How to remove fields from checkout correctly?

Tagged: 

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeHow to remove fields from checkout correctly?

This topic has been marked as not a support question.

I disabled “Company ID” and “Tax ID” fields thru Customers group menu.
But also I want to completely remove “Fax”, “Company” and “Account” fields.

I’ve already deleted the code from .tpl files but when I try to complete checkout I get errors like this:


2012-08-30 14:56:43 - PHP Notice:  Undefined index: fax in D:\wamp\www\shop\catalog\controller\checkout\guest.php on line 264
2012-08-30 14:56:43 - PHP Notice:  Undefined index: company in D:\wamp\www\shop\catalog\controller\checkout\guest.php on line 268
2012-08-30 14:56:43 - PHP Notice:  Undefined index: company in D:\wamp\www\shop\catalog\controller\checkout\guest.php on line 319

 rozze
August 30, 2012 at 6:15 pm #13171

Hi,

Unfortunately, this is not a trivial modification and could not be covered by the free support offered by this forum. You could post your question in the official opencart forums, or seek a freelancer to do the job for you.

P.S. We have found these topics, which discuss a similar modification. Hope they will be useful:

http://ffct.cc/removing-checkout-fields-in-opencart/
http://www.backonoc.com/2012-4-10-how-to-remove-unwanted-fileds-in-opencart-checkout-and-register

Best,
ThemeBurn team

September 3, 2012 at 11:44 am #13232

Hi,

A little late probably for you Rozze, but there is a way to do this which I pieced together from other posts/forums and it’s not too hard.

Won’t go through all the fields and will use Fax as an example.

Find the code input type=”text” style=”display:none;” name=”fax” value=”" size=”30″ /> in catalog/view/theme/shoppica2/template/checkout/guest.tpl and replace with

<input type="text" style="display:none;" name="fax" value="” size=”30″ />

Only difference is style=”display:none;” is added. Then delete the line above this which starts off with and all should be fine.

Do the same for Company and any other field. This will need to be done for register.tpl in the same folder and a few tpl files in the template/account folder.

Hope this helps for others.

Disclaimer – This has worked for me as far as I can see, but will need to be tested fully by others to make sure there are no errors :)

Adrian

  • This reply was modified 4043 days ago by  adsw.
  • This reply was modified 4043 days ago by  adsw.
 adsw
April 11, 2013 at 10:51 pm #21925

Thanks for the tip Adrian,

We should test this as well.

Best,
ThemeBurn team

April 15, 2013 at 6:32 pm #22077
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.