New Zenner
- Join Date:
- Jun 2009
- Posts:
- 71
- Plugin Contributions:
- 0
doing customisations - is this the best way?
Hi,
I’m planning on doing some customisations to the cart to integrate it closer to our CMS and customer database. I have a general idea of what is needed and would appreciate any thoughts on the methods below.
Goal 1 – Auto Creating User Accounts
We need to automatically set up users in zencart from user data in our CMS. Before I start coding anything i just want to make sure I know all the tables that I will need to update to create
I guess I would just need to create entries in ‘customers’ and ‘customers_info’ tables? Any others?
Goal 2 – Auto fill new account cart
Is it possible add a certain product with attributes chosen into their cart once we pre-make their accounts in goal 1?
For this i would start with the ‘customers_basket’ table. The ‘products_id’ field seems to be md5 hash or something similar. How do i generate this? Can it just be random as long as it is the same as the ‘products_id’ field in the ’cutomers_basket_attributes’ table?
The ‘cutomers_basket_attributes_id’ field auto increments but it get’s wiped so there is no reference to the previous entry, so i can’t simply just go n+1. how else can i get the latest value for this? Does this have to be auto incremented or can i pick any number since this id doesn’t seem to be saved or cross referenced anywhere else ?
Goal 3 – Auto Login
I was toying with idea (not as important goal as the other two) but i don’t want to be passing the login details via the url as that won’t be safe. Perhaps i should pass it over a form from the website to the store and place the form code on the tpl_login.php? Or is this a bad idea?
Thanks in advance!