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.

eZ debug

Timing: Jan 31 2025 08:03:13
Script start
Timing: Jan 31 2025 08:03:13
Module start 'layout'
Timing: Jan 31 2025 08:03:13
Module start 'content'
Timing: Jan 31 2025 08:03:13
Module end 'content'
Timing: Jan 31 2025 08:03:13
Script end

Main resources:

Total runtime0.0188 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.2734151.2266
Module start 'layout' 0.00660.0030 739.500036.6797
Module start 'content' 0.00960.0075 776.179794.1875
Module end 'content' 0.01710.0017 870.367237.9922
Script end 0.0188  908.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.6662140.0002
Check MTime0.00105.4883140.0001
Mysql Total
Database connection0.00105.435110.0010
Mysqli_queries0.003317.585830.0011
Looping result0.00000.079810.0000
Template Total0.00136.810.0013
Template load0.00095.024710.0009
Template processing0.00031.721310.0003
Override
Cache load0.00052.890410.0005
General
dbfile0.002513.289480.0003
String conversion0.00000.051940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs