country selected

country selected

Friday 07 July 2006 10:12:49 am - 5 replies

Author Message

Łukasz Serwatka

Sunday 09 July 2006 11:54:45 pm

Hi,

Override standard template design/standard/templates/shop/userregister.tpl (just copy it to your design)

Then edit your override template replace code:

{include uri='design:shop/country/edit.tpl' select_name='Country' select_size=5 current_val=$country}

with:

{include uri='design:shop/country/edit.tpl' select_name='Country' select_size=5 current_val=$country default_val='Germany' default_desc='Germany'}

You can define default country using parameters:

default_val='Germany' 
default_desc='Germany'

Please test and let us know if this work ;)

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

Martin Ulrich

Monday 10 July 2006 2:42:02 am

bad news

it doesnt work ;-(

sorry ;-/

S.

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Łukasz Serwatka

Monday 10 July 2006 2:43:12 am

Did you clear all the cache, after you did template changes? Any errors?

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

Martin Ulrich

Monday 10 July 2006 3:08:25 am

yes clear all cache.

But I mean the userregister.tpl when user is NOt login.

If user is login it works with predefined value. The last edit/changed values occurs

(It would be nice if a otherwise registered user login first time all of his personal values would be there as predefined. But only name and email the first time is there -?)

I have to spend mor time with it. ... :-)
think it over

Thanks!

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Łukasz Serwatka

Monday 10 July 2006 4:01:53 am

Do you use ezcountry datatype? Then you will need override edit template design/standard/templates/content/datatype/edit/ezcountry.tpl and add default value there.

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

You must be logged in to post messages in this topic!

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