| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Export Users 4.0.x Solution | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Export Users 4.0.x Solution
I've poured through the forums here and have seen many requests for a method to export user information from within the administration interface. As I need this too, I developed a solution that is working for me in 4.0.17 - 4.0.19. There are a few steps but they're relatively simple to follow.
Step 1 - Add Language Variable (Administration > Languages > English >) Variable: lbl_export_users Value: Export Users Step 2 - Create New Directories your_xcart_dir/modules/Export_Users your_xcart_dir/skin1/modules/Export_Users Step 3 - Create Admin Wrapper File (your_xcart_dir/admin/export_users.php) Complete file content: Code:
Step 4 - Create Admin Processing File (your_xcart_dir/modules/Export_Users/export_users.php) Complete file content: Code:
Step 4 - Create Skin File 1 of 2 (your_xcart_dir/skin1/modules/Export_Users/export_users_admin.tpl) Complete file content: Code:
Step 5 - Create Skin File 2 of 2 (your_xcart_dir/skin1/modules/users_export.tpl) Complete file content: Code:
Step 6 - Add Export Users Link to Admin Menu Modify your_xcart_dir/skin1/admin/menu.tpl: Add: Code:
Code:
Step 7 - Add Export Interface Modify your_xcart_dir/skin1/single/home.tpl: Add: Code:
Code:
Notes: 1. This only exports the usertype of Customer (not Admins or Providers). If you want to change this, just modify the SQL statement in your_xcart_dir/modules/Export_Users/export_users.php. For example, you can remove the "WHERE usertype LIKE 'C'" to get all users. 2. If you want to add/remove exported fields, modify the SQL statement in your_xcart_dir/modules/Export_Users/export_users.php AND add/remove lines in the same file from the section containing code like: $data .= "Company" . $delimiter; Just remember if you add a field, add a line and vice versa for deleting. The last line though must have the newline character ( i.e. $data .= "Fax" . $delimiter . "\n"; ). Well, that's it for my first posted mod. I hope it helps as I've received great assistance from this forum as well.
__________________
XCart4.0.19 |
|||||||
#2
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
Thanks for creating this mod - I just had a client ask me for this feature. There are a couple of minor tweaks, basically just inconsistencies in the instructions:
Quote:
Quote:
Otherwise, works great! |
|||||||
#3
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
Good catches on the steps - thanks smrtsu. I've updated my first post to include your edits. I'm glad it was of help too.
__________________
XCart4.0.19 |
|||||||
#4
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
It's the curse of being an instructional designer
|
|||||||
#5
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
Hello all,
I wanted to check in a see how this mod is working for folks. We want to export about 13,000 customer names and email addresses to allow for import into Constant Contact. We've decided to give our email newsletter management to service provider, rather than run it through our service provider. Is this the best way to tackle the customer export requirement? Thanks. FB
__________________
X-Cart Gold 4.0.17 DSEFU BCSE Product Keywords Fed Ex Label Mod X-Cart Affiliate Altered Cart On Sale User Export Mod Marketing Manager Pro Pizza Peel Outdoor Fireplaces |
|||||||
#6
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
Hello again,
I am installing the mod and have encountered this error. I will try to see what I did wrong, but does anyone have an idea. Thanks. FB <b>Warning</b>: Smarty error: unable to read resource: "modules/Export_Users/users_export.tpl" in <b>/home/store-directory/Smarty-2.6.9/Smarty.class.php</b> on line <b>1088</b><br />
__________________
X-Cart Gold 4.0.17 DSEFU BCSE Product Keywords Fed Ex Label Mod X-Cart Affiliate Altered Cart On Sale User Export Mod Marketing Manager Pro Pizza Peel Outdoor Fireplaces |
|||||||
#7
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
Help!
Any ideas here? Thanks, FB
__________________
X-Cart Gold 4.0.17 DSEFU BCSE Product Keywords Fed Ex Label Mod X-Cart Affiliate Altered Cart On Sale User Export Mod Marketing Manager Pro Pizza Peel Outdoor Fireplaces |
|||||||
#8
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
The instructions have an error, move this file:
skin1/modules/users_export.tpl to this location: skin1/modules/Export_Users/users_export.tpl Quote:
|
|||||||
#9
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
Thanks. I finally caught that -- I should have said something.
FB
__________________
X-Cart Gold 4.0.17 DSEFU BCSE Product Keywords Fed Ex Label Mod X-Cart Affiliate Altered Cart On Sale User Export Mod Marketing Manager Pro Pizza Peel Outdoor Fireplaces |
|||||||
#10
|
|||||||
|
|||||||
Re: Export Users 4.0.x Solution
I too have installed this error, when i try to open the .xls file i get an error that says "unable to read" and when i try to export to a .csv, it goes to a blank screen. any ideas?
__________________
X-cart version 4.6.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|