Post by gerganad » Mon Jun 22, 2015 2:24 am

Hi,
I am trying to show custom fields in the "View/edit address" screen. I have 3 custom fields, but the problem is that I don`t know how to declare them in the Localization/Country/Address:
Name={firstname}
Last name: {lastname}
Company: {company}
VAT: {custom_field}

Obviously {custom_field} is not correct, but what shoud I put instead?

Thanks very much for the help!

Newbie

Posts

Joined
Mon Jun 22, 2015 2:14 am

Post by IP_CAM » Tue Jun 23, 2015 10:28 am

If you do not need to add another Form/Field Section, by use of your, i.E., Registration FAX-Field, you can easy change it's Language TITLE by Use of one of the below mentined FINE Language TOOLS for this, to change FAX: to TAX/VAT-Number, or whatever, as long as it's a Value, accepted by the OC FAX-Field Filter Routines.

There should be a Version for OC v.2.x as well, hopefully, otherways, you would have to change it,
by the Texteditor 'search and replace' routine, in the language files, related.

The most efficient 5 Star Magic Translations - OpenCart v.1.5.6.x Language Translator.
Download Link for the genious OC v.1.5.6.x Magic Translations Version:
http://www.opencart.com/index.php?route ... n_id=24320

OpenCart v.1.5.6.x SQL-based Database Language Editor FREE:
http://www.opencart.com/index.php?route ... n_id=10875

Just an Idea... ;)

Good Luck
Ernie

PS, I just changed this Site, from Fax to Tax Number, to test the two Mods:
http://www.hitline.info/shop/index.php? ... t/register
Last edited by IP_CAM on Thu Oct 22, 2015 2:46 am, edited 2 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by gerganad » Tue Jun 23, 2015 6:24 pm

Thanks :)
This could be an easy solution if you have 1-2 different fields. I have 3 now and I need more, so I need another solution. These fields should have a name like {...........}, but I can`t find it.

Newbie

Posts

Joined
Mon Jun 22, 2015 2:14 am

Post by IP_CAM » Tue Jun 23, 2015 7:41 pm

Usually, there are more in the address-section, one could re-use some Company-Fields, as well.
Just to mention it...
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by gerganad » Tue Jun 23, 2015 8:05 pm

I will check this.

Thanks :)

Newbie

Posts

Joined
Mon Jun 22, 2015 2:14 am

Post by IP_CAM » Wed Jun 24, 2015 2:23 am

we just had a Discussion on this, SO, whatever you do, just make sure, that the
Sections, you want to display, DO CONTAIN a Value, in the DB, when testing for function.
OPTIONAL FIELDS, not required by Default, are usually 'filtered' by a PHP IF EXIST... Routine,
as I call it, and 'display' only on a Page, if a valid content does exist in the DB!
Just to mention it, as one of those little 'things', able to make Life a little harder.... :D
Good Luck
Ernie
read here:
http://forum.opencart.com/viewtopic.php?f=21&t=146431
and links, I found in my Favourites, as well, on such doings:
http://nikolaloncar.com/how-to-add-cust ... min-panel/
http://karlmac.com/2011/07/how-to-add-c ... ncart-1-5/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Amazon [Bot] and 33 guests