Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010
    Posts
    9
    Plugin Contributions
    0

    Default Updating customer session info

    I created an observer which changes entry_zone_id when a customer registers in the shop. This is because I do dot ask the zone from the customer but use zones based on customers zip code. The question is how do I update the customers current session to reflect the entry_zone change I've made? The problem is that because I do not ask the zone the prices are without taxes during that registration session. I do the zone change in the database in my observer code.

    I've tried to find an answer but with no luck

  2. #2
    Join Date
    Feb 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Updating customer session info

    So, I changed the notifier my observer uses to NOTIFY_LOGIN_SUCCESS_VIA_CREATE_ACCOUNT and changed $_SESSION['customer_zone_id'] = $zone_id to correspond to the change I've made. Hope this was the right way. At least I got it to work

  3. #3
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Updating customer session info

    Yes, that would be the correct approach.
    .

    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.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 15 Nov 2010, 08:35 PM
  2. Session info not updating for scripts outside of ZC folder after upgrade to 1.39
    By steel-track in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 15 May 2010, 06:34 AM
  3. Acessing Zen cart session info
    By edsadr in forum General Questions
    Replies: 0
    Last Post: 27 Aug 2008, 04:48 PM

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