Share » Forums » Setup & design » Changing default user information in...

Changing default user information in webshop *NOOB*

Changing default user information in webshop *NOOB*

Wednesday 22 August 2007 10:49:07 am - 2 replies

Modified on Wednesday 22 August 2007 10:54:13 am by hersnab bottle

Author Message

kracker (the)

The Doctor

Wednesday 22 August 2007 8:41:50 pm

Hello hersnab and welcome to the eZ Community!

The shop module in eZ Publish has a lot of features, yet most tend to customize it to meet their own needs as a separate module extension.

I might recommend more study of the shop module's php code, datatypes (in general) and template overrides.

In some of the cases you mention you are changing templates without changing the php code which drives them which in turn presents the errors upon submission.

It sounds like your driven to reach your goals, I urge you to continue forward, all that you wish to do is possible with the right amount of work.

This thread is loosely related, <i>http://ez.no/community/forum/developer/register_or_customer_why_not_both/</i>

Cheers,
<i>//kracker

Mansbestfriend : Poly.sci.187 : allieverwanted ... (was a place to call home)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

hersnab bottle

Thursday 23 August 2007 5:18:48 am

Hi Kraker
Thanks for the swift response. I am determined for this to work for me and it does. Its just a cosmetic thing really. To me it doesn't matter. I know 'zip' means 'postcode' so it only needs to be visable to the customer on the order registration page and order confirmation page. However I would like the whole system to accept these fields.

I've been looking at these files:

ezshopaccounthandler.php
ezshopoperationcollection.php
ezshopfunction.php

All these reference what I wish to change. Do I have to change all these or is there something I can do to change these throughout the whole system in one go?

I've been searching for a way to make the country selection redundant (as I only sell to the UK) and in another thread I saw someone mention just commenting out all references to country. Is that a good idea?

I also found this thread

http://ez.no/community/forum/install_configuration/country_selected/re_country_selected

But I can't seem to get this to work I've followed the info but to no avail. All I manage is getting United Kingdom to the top of the list but not selected by default.
I'm unsure as to where to put the default_val='United Kingdom' default_desc='United Kingdom' in the file:
design/standard/templates/content/datatype/edit/ezcountry.tpl

Thanks again Steve.

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

36 542 Users on board!

Forums menu