Get the book

Go Back   Zen Cart Support > Configuring the Zen Cart Admin > Discount Groups

Reply
 
Thread Tools Display Modes
Old 1st July 2007, 07:32 PM   #1
gaekwad
New Zenner
 
Join Date: May 2007
Posts: 33
Default New customers automatically join defined pricing group

Hi there.
Is it possible to have new customers be added to a pre-defined pricing group by default? I can add them manually, but I'm using the Invoice payment mod and it requires a customer to be in a pricing group.

Thanks in advance.
P
gaekwad is offline   Reply With Quote
Old 1st July 2007, 09:50 PM   #2
Ajeh
Oba-san
 
Ajeh's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 51,207
Default Re: New customers automatically join defined pricing group

You can alter the create account so that when the record is created it sets the customers_group_pricing field in the customers table to the value that you are wanting to use as an existing discount group by default ...
__________________
Linda McGrath
If you have to think ... you haven't been zenned ...

Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here

Are you using the latest? Perhaps you've a problem that's fixed in --> [Upgrade today: v1.3.8a]
Officially PayPal-Certified! Just click here
Ajeh is offline   Reply With Quote
Old 1st July 2007, 10:27 PM   #3
gaekwad
New Zenner
 
Join Date: May 2007
Posts: 33
Default Re: New customers automatically join defined pricing group

Sweet - that makes perfect sense :) Could I ask which file needs to be edited in order to make that happen? Happy to scootch around a bit, but any pointer would be appreciated.

Thanks, Ajeh - appreciate it :)
gaekwad is offline   Reply With Quote
Old 2nd July 2007, 01:19 AM   #4
swguy
Totally Zenned
 
swguy's Avatar
 
Join Date: Feb 2006
Location: Tampa Bay, Florida
Posts: 2,837
Default Re: New customers automatically join defined pricing group

Rather than modifying the code, I would suggest you just modify the default value for customers.customers_group_pricing using phpMyAdmin.

Good luck,
Software Guy
__________________
That Software Guy - The Duke of Discounting.
Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.
Tweeting at @thatsoftwareguy. Constantly releasing new software and telling bad jokes.
swguy is online now   Reply With Quote
Old 2nd July 2007, 02:44 AM   #5
gaekwad
New Zenner
 
Join Date: May 2007
Posts: 33
Default Re: New customers automatically join defined pricing group

swguy, you're a genius - thanks. Works a treat! And thanks for making the Invoice mod, very useful.
gaekwad is offline   Reply With Quote
Old 15th April 2009, 04:26 AM   #6
jenpen
Zen Follower
 
Join Date: Sep 2007
Location: Far South Coast, NSW, Australia
Posts: 138
Default Re: New customers automatically join defined pricing group

Quote:
modify the default value for customers.customers_group_pricing using phpMyAdmin
Can anyone give just a little more detail on this? I'm pretty comfortable in phpMyAdmin, just give me a push in the right direction ... jenpen
jenpen is offline   Reply With Quote
Old 20th April 2009, 06:08 AM   #7
jenpen
Zen Follower
 
Join Date: Sep 2007
Location: Far South Coast, NSW, Australia
Posts: 138
Default Re: New customers automatically join defined pricing group

Me again - does anyone know exactly how to "modify the default value for customers.customers_group_pricing using phpMyAdmin"??
Thanks, Jen
jenpen is offline   Reply With Quote
Old 20th April 2009, 11:36 AM   #8
DrByte
Sensei
 
DrByte's Avatar
 
Join Date: Jan 2004
Location: Ontario, Canada
Posts: 39,865
Default Re: New customers automatically join defined pricing group

Open phpMyAdmin
Access the customers table structure
Edit the "default" value for the customers_group_pricing table to the value you desire.
__________________
Zen Cart - putting the dream of business ownership within reach of anyone!
DrByte is offline   Reply With Quote
Old 21st April 2009, 07:38 AM   #9
jenpen
Zen Follower
 
Join Date: Sep 2007
Location: Far South Coast, NSW, Australia
Posts: 138
Default Re: New customers automatically join defined pricing group

So now I'm nearly there ... found exactly how to change the default value but ... what to? Sorry to be a dodo. I tried "invoice" but got an error. Jen
jenpen is offline   Reply With Quote
Old 21st April 2009, 07:51 AM   #10
DrByte
Sensei
 
DrByte's Avatar
 
Join Date: Jan 2004
Location: Ontario, Canada
Posts: 39,865
Default Re: New customers automatically join defined pricing group

When you created your discount groups in your admin, they were assigned a number. Use that number.
__________________
Zen Cart - putting the dream of business ownership within reach of anyone!
DrByte is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Group Pricing for One Product Category? PattyGale Discount Groups 15 22nd September 2009 11:21 PM
group pricing kmickus Discount Groups 3 2nd May 2007 10:46 PM


All times are GMT +1. The time now is 12:48 PM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009, 2010 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads