![]() |
exporting gift certificate codes |
Post Reply
|
| Author | |
caughlan
Groupie
Joined: 25-September-2006 Location: Canada Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: exporting gift certificate codesPosted: 20-July-2009 at 8:54pm |
|
I'm moving my store to a new database/url and would like to bring over the gift certificates people have purchased - any idea how to export these?
Or do I have to create new ones and track down the customers that have received them in the past... thanks! stacelynn |
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
Posted: 20-July-2009 at 9:02pm |
|
Hi Stacylynn,
Could you please explain what you are doing in a touch more detail? If the store is transferring to a new URL, and you are abandoning the old URL, you should be able to make a few configuration changes after copying the site pages to the new domain, and retain the entire database. If you are adding a store and intend to honor g/c's from the first store, that might be another issue. So could you please explain what you are doing so we might guide you? |
|
![]() |
|
caughlan
Groupie
Joined: 25-September-2006 Location: Canada Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 20-July-2009 at 10:18pm |
|
Hi Greg
I'm adding a store and intend to honour the g'c from the first store... |
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
Posted: 20-July-2009 at 10:51pm |
|
Ok, we'll need someone from EI to chip in but here's my initial thoughts which may be useless.
I might consider cloning the complete database for the new store. If you are using the same products, keep them. If not, delete all but the gift certificate products and run the task that physically purges them from the db. Then write a query that identifies the orders containing gift certificates. If I recall, you are somewhat technical, so perhaps you can tackle this. Or get a developer to assist. This would give you a list of orders that have GC's on them. Then delete all the other orders. Next you may also want to nuke customers who are not on those remaining orders, or retain them at your preference. The one issue I can see is that I believe the license key is used in the data encryption mechanism. Not sure how to resolve that - EI may need to assist here as well as provide their views on the above. This is nothing I have ever done, so I'm simply "winging it" in terms of coming up with a proposed solution - but I guess that's what you were hoping for, short of someone having actually done this. Does this help? |
|
![]() |
|
ProductCart
Admin Group
ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
Quote Reply
Posted: 21-July-2009 at 3:25pm |
|
As Greg says, if you have some basic SQL skills, you can do so directly using the Import/Export tools in MS SQL. Here is an FAQ about how Gift Certificates are stored in the database: http://www.earlyimpact.com/faqs/afmviewfaq.asp?faqid=342
One thing to point out: to properly populate the "pcGC_IDproduct" field, create a Gift Certificate product in the new store database, then use that product ID for that field when you import the purchased Gift Certificate into the new store. |
|
![]() |
|
Guests
Guest
|
Post Options
Thanks(0)
Quote Reply
Posted: 21-July-2009 at 3:35pm |
Hi Greg, "Winging" it a bit here myself, but I do understand that PC does use the license key in the encryption; however, there are functions within PC to encrypt a bit of data and to decrypt it. Theoretically should be able to write a script to connect to the old database and then run data through the decryption then run it through the encryption function for the new store's database. I haven't looked at these functions yet, though. |
|
![]() |
|
ProductCart
Admin Group
ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
Quote Reply
Posted: 21-July-2009 at 3:41pm |
|
We have a script that decrypts customer passwords with the "old" key (the one used in the original store) and encrypts them again with the "new" key (the one used in the new store). We can certainly send it to you, if you need it.
|
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
Posted: 21-July-2009 at 4:05pm |
|
EI - is it practical that ONLY the GC products and the GCs themselves could be migrated, or am I correct that you would also need to retain the orders on which the certs were purchased?
|
|
![]() |
|
ProductCart
Admin Group
ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
Quote Reply
Posted: 21-July-2009 at 5:08pm |
|
Hi Greg,
No, you don't need to retain the orders. |
|
![]() |
|
caughlan
Groupie
Joined: 25-September-2006 Location: Canada Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 22-July-2009 at 6:20am |
|
Thanks - I'll give that a shot!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |