Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I would like to regularly get rid of inactive customers who havent clicked for say 6 months. Sounds easy but ....

 

Did anyone make a contribution on this or know the code??

Ian-san

Flawlessnet

Posted

Does osc track/log when a customer logs in/out?

 

If it does then you could just have some sort of counter for each customer or something.. and at the end of the counter(say 6months) it would delete "specific" records. You would not want to delete the customers buying records, but maybe just account or something. . .. .

 

Good Idea... I think it would be very helpful for stores!!

Posted

OS records the date of last click but the customer data is spread across 3 files. When you add a customer to the database, it is obviously added at the end of the file. But when you delete, you need to store the customer ids of all deletions and perform on all 3 files. (or more if you add in orders, reviews etc).

 

This makes the code a little more tricky - and risky!

Ian-san

Flawlessnet

Posted

Create a simple php file

that selects all customer_id's from table customer_info where customers_info_date_of_last_logon = whatever time

Then in the while loop delete the appropriate records in all the tables you want deleted....

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

customers_info_date_of_last_logon < whatever time that is :D

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted
customers_info_date_of_last_logon < whatever time that is/quote]

 

I would like to use:

 

< now()-6 months

 

Any idea what format the 6 months should take? e.g is 6 months expressed in seconds, milli-seconds, as a real date etc etc??

Ian-san

Flawlessnet

Posted

Cheers Burt

 

Nightmare == challenge!

 

I need this facility so I will take a look at it and see if I can come up with a contribution. Another problem might be that the date is stored in different formats depending on the country so the solution has to be general.

 

If the date function can be solved, then the rest of it should be reasonably straightforward I think - maybe ....

Ian-san

Flawlessnet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...