View Single Post
  #8  
Old 07-29-2013, 06:00 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Anonymous to registered customer conversion

Thinking out loud:

Expecting X-Cart to fix or change this? We know the answer.

OT: I reported a bug about x-payments connector log files not being visible in the admin, and they tell me [9 months after I reported it] that this is a feature request, not a bug - after many years, I've learned that "if the programmer wrote the code so that it does exactly what the interface designer specced, it's done". Even if the design or spec is defective. X-Cart thinks like programmers, and not designers. Accept it.

So let's take a look at an order from an anon vs. an order from a registered customer...

I have a 4.5.5 default with no customers and no orders. I did the following:

1. placed order as an anon customer. phone ordering. then set status of order to "complete"
2. registered user ID #5 (other IDs are admins). Placed an order as customer #5 logged in. set status of order to "complete".
3. search for all orders: order #1 is anon; order #2 is registered cust #5 -- ok, let's have some fun now...

4. REGISTER the anon customer -- same name, address, email -- anon customer is now registered as ID 7

5. phpMyAdmin...
table: xcart_customers
evaluate customer IDs... anon customer ID = 7

table: xcart_orders
evaluate both orders -- the anon order does not have a userid set (it's empty)

6. edit the anon order. set userid to 7

That's all folks... so this can be done.
- phone order (least complicated order)
- what if order was with paypal
- or x-payments
- or other payment methods?

Is it possible to make a button or function that edits an order and sets a userID? The "OBVIOUS" place would be here:

/admin/order.php?orderid=2&mode=edit&show=customer

Ah, the AOM can of worms.

What is tricky here, the anon customer must FIRST become a registered customer before setting the userid in the orders table.

SO what is the ideal workflow?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote