Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2010
    Posts
    55
    Plugin Contributions
    0

    Default securityToken and $zco_notifier

    Please explain the following code used in the Zen Card code?

    1. What is this securityToken in shopping cart page form?

    2. What is the purpose of this line? Why is should be in the first line od the script?
    PHP Code:
    // This should be first line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_START_NO_ACCOUNT'); 

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: securityToken and $zco_notifier

    1. is a security device to prevent third parties from hijacking visitor's shopping cart.
    2. It's a notifier providing a point at which add-on modules can extend the functionality through an observer class without having to hack into the core code. That one is designed to be the first line, so that if an add-on were designed to change how the cart works when there's no account, it can do so before Zen Cart starts normal processing.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. v151 jQuery ajax with type POST and securityToken
    By pasi in forum Contribution-Writing Guidelines
    Replies: 2
    Last Post: 26 Mar 2013, 10:38 AM
  2. $zco_notifier and Paypal
    By fotofx in forum General Questions
    Replies: 4
    Last Post: 18 Dec 2009, 03:10 PM
  3. How to swith off the securityToken?
    By der Hund in forum Basic Configuration
    Replies: 1
    Last Post: 26 Sep 2008, 10:02 AM
  4. Problem with zco_notifier->
    By maniac1349 in forum General Questions
    Replies: 2
    Last Post: 8 Aug 2007, 04:35 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