KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: Ted on October 27, 2009, 08:15:46 am

Title: New customer. Association with a shop possible?
Post by: Ted on October 27, 2009, 08:15:46 am
We're mimicking the Struts/JSP logic of the KonaKart frontend in our own Wicket frontend by using KKAppEng for most purposes.

We have customers and products shared in Multi-Store Single DB Mode and developing currently to support multiple stores. Now since customers are shared (and can use their account created at store 1 to log into store 2) it's essential for commercial purposes that we track at what shop a customer is registered as a new user initially.

Can this be configured? If not, any suggestions as to what approach can be taken best will be greatly appreciated.
Title: Re: New customer. Association with a shop possible?
Post by: julie on October 27, 2009, 08:29:06 am
When you register a customer, you could save the store info in one of the custom fields.
Title: Re: New customer. Association with a shop possible?
Post by: Ted on October 27, 2009, 09:06:16 am
I see there's a customers.store_id field which seems to be set to the default store ('store1') when a customer is added - instead of the actually store. There's however no field in e.g. CustomerRegistrationIf to set that manually. Would that field be a good candidate to use instead of a customer field - or are there consequences when that field is used?
Title: Re: New customer. Association with a shop possible?
Post by: julie on October 27, 2009, 09:14:11 am
No, don't use that because there are implications. Use the custom field which can be set through the api.
Title: Re: New customer. Association with a shop possible?
Post by: Ted on October 27, 2009, 10:12:28 am
Can you give me an indication as to what implications? They may or may not coincide with our requirements :)
Title: Re: New customer. Association with a shop possible?
Post by: greg on October 27, 2009, 10:22:58 am
The store_id column is used in where clauses to support the multi-store implementation..  If you populate that yourself you could get problems.  I'd use a custom field instead.