OK ... I'm getting a bit confused here.
First you say
So you simply need to use the link between the cart_user_id column of the cart table and the user_id column of the user table of HikaShop
Now you say
Ah that's possible. we don't rely on the cart_user_id as the cart_id is directly in the user session so it's not impossible that the cart_user_id is empty.
So, should it be updating the cart_user_id by default?
If not, if I make the changes indicated I'm guessing that the changes will be overwritten upon next update?
I really don't want to 'hack' the code. And it appears that this process (storing the cart_user_id SHOULD be happening by default.
Do you have any existing sample code of what this should look like (or that you might consider adding to next release to make this work properly)?
[BTW ... I originally asked about using the data in the session and I was told not to use that.]