Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    151
    Plugin Contributions
    0

    Default Mass change customer group

    Hi everybody!

    I wonder if it's possible (or how difficult it is, I mean :)) to achieve this :

    I have a long list of e-mail addresses of current customers in my zen cart database. They are currently in no discount group at all.

    I want to add all these people to a certain discount group without too much hassle. I would prefer to not do it manually as it's gonna be more than 5.000 people on this list when I'm done.

    Is there a simple and safe way to achieve this with some MySQL script? I mean, I want to import the long list of e-mails into Zen Cart and whenever there is a matching e-mail address in the database I want the script to put that customer in a certain group.

    Any ideas would be truly appreciated!

    Thanks!

    Best regards

    Peter

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Mass change customer group

    Simply set the customers_group_pricing field to whatever group_id value (from the group_pricing table) you want them to be a member of.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2014
    Location
    Vancouver, Canada
    Posts
    7
    Plugin Contributions
    0

    Default Re: Mass change customer group

    If you have access to phpmyadmin, and it is a one-time thing with the 5000 emails, you could note the current customer_id. Import the new customers, then run a query that changes all customers_group_pricing fields where customer_id is greater than XXX.

 

 

Similar Threads

  1. v151 Change "Product Qty Maximum" based on customer group
    By jwlamb in forum General Questions
    Replies: 6
    Last Post: 4 Feb 2014, 01:27 AM
  2. New customer group - auto-join a group?
    By solid in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 7
    Last Post: 8 Feb 2011, 08:44 PM
  3. Group pricing - how to assign customer to a group?
    By vito in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 12 May 2010, 06:37 PM
  4. Email to a customer group, how to create the group?
    By elishama3 in forum General Questions
    Replies: 2
    Last Post: 1 Aug 2008, 05:08 AM
  5. Mass price change not group pricing
    By darktowerhobbies in forum Customization from the Admin
    Replies: 1
    Last Post: 31 Mar 2008, 11:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg