Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2007
    Location
    singapore
    Posts
    25
    Plugin Contributions
    0

    Default group pricing based on domain name

    hi ,
    i been trying to get the domain info from email address during registration and pass it to the field - domain ,which i created in customer table...

    ($userName, $mailDomain) = split("@", $email_address);
    $sql_data= 'customers_domain' => $maildomain;


    can some please guide on this ....

    i tried its not updating the domain colum ....

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: group pricing based on domain name

    Are you using that *exact* code?

    If so, you have a typo:
    Code:
    ($userName, $mailDomain) = split("@", $email_address);
    $sql_data= 'customers_domain' => $maildomain;
    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 to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2007
    Location
    singapore
    Posts
    25
    Plugin Contributions
    0

    Default Re: group pricing based on domain name

    Quote Originally Posted by Ajeh View Post
    Are you using that *exact* code?

    If so, you have a typo:
    Code:
    ($userName, $mailDomain) = split("@", $email_address);
    $sql_data= 'customers_domain' => $maildomain;

    hi,
    oh mistype but still doesn't work ..do i need to connect to database directly after passing these values.. is that safe ?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: group pricing based on domain name

    Where are you when you get the $email_address?
    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 to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Oct 2007
    Location
    singapore
    Posts
    25
    Plugin Contributions
    0

    Default Re: group pricing based on domain name

    Quote Originally Posted by Ajeh View Post
    Where are you when you get the $email_address?
    The email address from the createaccount.php , registrion page ..
    basically i want to get the email address and pass it to another column , so that i can use that from group pricing to give discount to client instantely after they register ...

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: group pricing based on domain name

    Try this instead and I put this in the:
    /includes/modules/create_account.php

    Code:
    list($userName, $mailDomain) = split('@', $email_address);
    echo 'username: ' . $userName . '<br>domain: ' . $mailDomain . '<br>';
    die('I AM HERE!');
    
        zen_db_perform(TABLE_CUSTOMERS, $sql_data_array);
    It is running just before anything is committed this way so you can test things and then alter what you need properly ...
    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 to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. online group pricing vs group pricing per item working with sale maker
    By giftsandwhatnot in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 Oct 2011, 09:22 AM
  2. Showing Categories Based On Pricing Group?
    By bi11i in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Mar 2011, 08:34 AM
  3. Dual Pricing - Link based on pricing group
    By gfogleman in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Jul 2010, 05:08 PM
  4. FreeShipping based on Group Pricing per Item
    By RFree190 in forum Built-in Shipping and Payment Modules
    Replies: 19
    Last Post: 13 Apr 2010, 04:07 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR