how to remove country field from User account?

Author Message

Vytautas Germanavičius

Thursday 14 April 2005 11:38:46 am

I have installed "shop". My site works only in my town, so i do not need tu select State, Place, Zip or Country.
How to remove those fields from users account? Problem , i cannot find those fields in class "User".

{set-block scope=root variable=cache_ttl}0{/set-block}

Eirik Alfstad Johansen

Friday 15 April 2005 1:58:07 am

Hi vytis,

I'm guessing that you need to modify the shopaccounthandler. Or better yet, copy it and create a new one as an extension.

There's not too much documentation in this area, but it's fairly straight forward. Let us know if you run into any issues, and we'll try to help.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Łukasz Serwatka

Friday 15 April 2005 2:00:15 am

Hi,

Look in to
/design/standard/templates/shop/userregister.tpl

I hope it will help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Vytautas Germanavičius

Friday 15 April 2005 12:49:17 pm

to Lukasz Serwatka: no, this not what i asked, because some fields are required.... Workaround can be to make it as hidden fields with dummy values...

to Eirik Johansen: what is "shopaccounthandler", where to find it and how to edit it?

{set-block scope=root variable=cache_ttl}0{/set-block}

Eirik Alfstad Johansen

Monday 18 April 2005 2:32:15 am

Hi vytis,

You can start by examining the default shop account handlers located in kernel/classes/shopaccounthandlers.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.