Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Location
    India
    Posts
    46
    Plugin Contributions
    0

    red flag printing session variables

    Array ( [securityToken] => 71f3cfb9f801c9cc610a10ac51c326e5 [customers_host_address] => localhost [cartID] => 06779 [cart] => shoppingCart Object ( [contents] => Array ( [733] => Array ( [qty] => 29 ) ) [total] => 3623.55 [weight] => 145 [cartID] => 06779 [content_type] => physical [free_shipping_item] => 0 [free_shipping_weight] => 0 [free_shipping_price] => 0 [observers] => Array ( ) ) [navigation] => navigationHistory Object ( [path] => Array ( [0] => Array ( [page] => checkout_shipping [mode] => NONSSL [get] => [post] => Array ( ) ) [1] => Array ( [page] => checkout_payment [mode] => NONSSL [get] => [post] => Array ( ) ) ) [snapshot] => Array ( ) [observers] => Array ( ) ) [check_valid] => true [language] => english [languages_id] => 1 [languages_code] => en [currency] => CAD [today_is] => 2009-11-26 [updateExpirations] => 1 [session_counter] => 1 [customers_ip_address] => 127.0.0.1 [customer_id] => 909 [customer_default_address_id] => 1070 [customers_authorization] => 0 [customer_first_name] => Amit [customer_last_name] => [customer_country_id] => 38 [customer_zone_id] => 74 [new_products_id_in_cart] => [valid_to_checkout] => 1 [cart_errors] => [sendto] => 1070 [payment] => [shipping] => Array ( [id] => storepickup_storepickup [title] => Store Pickup (Walk In) [cost] => 0.00 ) [billto] => 1070 [cot_gv] => 0 )


    If this is the out put when i print session variables using print_r($_SESSION); . Difficulty is how to check shipping method is store pickup selected.
    please post

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: printing session variables

    Quote Originally Posted by Amit001 View Post
    Array ( [securityToken] => 71f3cfb9f801c9cc610a10ac51c326e5 [customers_host_address] => localhost [cartID] => 06779 [cart] => shoppingCart Object ( [contents] => Array ( [733] => Array ( [qty] => 29 ) ) [total] => 3623.55 [weight] => 145 [cartID] => 06779 [content_type] => physical [free_shipping_item] => 0 [free_shipping_weight] => 0 [free_shipping_price] => 0 [observers] => Array ( ) ) [navigation] => navigationHistory Object ( [path] => Array ( [0] => Array ( [page] => checkout_shipping [mode] => NONSSL [get] => [post] => Array ( ) ) [1] => Array ( [page] => checkout_payment [mode] => NONSSL [get] => [post] => Array ( ) ) ) [snapshot] => Array ( ) [observers] => Array ( ) ) [check_valid] => true [language] => english [languages_id] => 1 [languages_code] => en [currency] => CAD [today_is] => 2009-11-26 [updateExpirations] => 1 [session_counter] => 1 [customers_ip_address] => 127.0.0.1 [customer_id] => 909 [customer_default_address_id] => 1070 [customers_authorization] => 0 [customer_first_name] => Amit [customer_last_name] => [customer_country_id] => 38 [customer_zone_id] => 74 [new_products_id_in_cart] => [valid_to_checkout] => 1 [cart_errors] => [sendto] => 1070 [payment] => [shipping] => Array ( [id] => storepickup_storepickup [title] => Store Pickup (Walk In) [cost] => 0.00 ) [billto] => 1070 [cot_gv] => 0 )


    If this is the out put when i print session variables using print_r($_SESSION); . Difficulty is how to check shipping method is store pickup selected.
    please post

    What is it that you are actually trying to do?

    As a general rule you wouldn't/shouldn't need to be extracting data from the session array. Depending on what your aim is there are probably far better and easier ways,

    Cheers
    Rod

 

 

Similar Threads

  1. Login session variables
    By xtjx09 in forum General Questions
    Replies: 5
    Last Post: 14 Aug 2010, 04:47 AM
  2. Session variables assignments
    By race1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Aug 2008, 05:18 AM
  3. Add Session Variables
    By santoshshaw in forum General Questions
    Replies: 1
    Last Post: 8 Nov 2007, 11:31 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