Zen Cart custom software development, Zen Cart modules, Zen Cart Expert eCommerce with Zen Cart!

Zen Cart Fix Company

Zen Cart Fix Company

Fix Company resolves an issue in some versions of Chrome which causes the browser to incorrectly autofill the Company Name field with the year of birth.

Donate: This is free software. Show your appreciation by supporting my efforts. Donate

Relevance: Zen Cart™ 1.5.4 and above

Current Version: 1.0 (version history)

Support Thread: Fix Company Support Thread

Cost: Free, but donation appreciated

Installed Cost: $200.00 (non-nuclear option) Buy Professional Installation by That Software Guy

Installation Difficulty: Moderate

Installation Instructions: click here

Installation Instructions (Nuclear Option): click here

Location: Zen Cart Plugins, under Admin Tools

Download: Fix Company in Zen Cart Plugins


Fix Company resolves an issue in some versions of Chrome which autofills the Company Name field with the year of birth stored in the cache of a user's browser.

You can see how many accounts have this problem by running the following query in phpMyAdmin:

SELECT customers_id, entry_company FROM address_book WHERE length(entry_company) = 4 
AND concat('',entry_company * 1) = entry_company;

If you already have made modifications to the included template files, you can change your own files by hand:

Look for the string
in the three files. Change this to
   autocomplete="new-password" id="company" 

The string will be used in a call to zen_draw_input_field.

You may also wish to do this for the field "suburb" if you have set Admin > Configuration > Customer Details > Address Line 2 to "true".

Installation Instructions:

  1. Back up everything! Try this in a test environment prior to installing it on a live shop.
  2. Rename includes/templates/YOUR_TEMPLATE to use your actual template name.
  3. Copy the contents of the unzipped folder to the root directory of your shop. (Note: if any of the included template files already exist in your store, you will have to merge the files in this mod with the changes you have already made to the template files in this mod.)
  4. Run https://YOUR-STORE.com/fix_company.php
  5. Delete fix_company.php from your server. In the future, created or updated accounts will not have this issue.

Nuclear Option

Zen Cart Fix Company - Full Nuclear You wanna go full nuclear? This involves a lot more changes, but it should resolve the issue of accidental autofills leaving bad data in fields.

Modify your copies of the three template files included:
In each file, where you see a call to zen_draw_input_field, look at the third parameter. It will look something like,
' id="lastname" placeholder=... 
Change it to include the autocomplete="new-password" setting, i.e.
' autocomplete="new-password" id="lastname" placeholder=...
So you're just pasting in autocomplete="new-password" right before the field's id is set.

If you are nuclear-curious and just want to *try* the nuclear option, use it on the company and suburb fields. This is where most of the yield is.

Major Versions

  • Doc update - 04/19/2020 - Nuclear Option description
  • 1.0 07/01/2019 - First Release