Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    4
    Plugin Contributions
    0

    Default Shopping Cart Session Information

    Hello,

    I'm developing a shop system where an external application posts information (in a GET url format) to Zen Cart - the external application is doing this fine but I'm having trouble getting this information into the shopping cart.

    I'm a reasonably competent PHP programmer but looking for some understanding on how this process works.

    Is there details anywhere of how cart information is stored as a session? (a structure document of the session array?) or ideally it would be useful if someone could provide some general code of how an item could be placed into the cart through the use of a script i.e what information needs to be stored each time in the cart session and assigned to which variables

    Many Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Shopping Cart Session Information

    Using GET won't work if you're doing anything other than adding a non-attribute product to cart as described below:

    If you're trying to merely tell it to add-to-cart for an existing product, a GET request with action=buy_now and products_id=xxxx will suffice.

    If your situation involves more than simply specifying a product ID number to add to cart, then please explain the bigger picture of what your external application is actually doing. What's its purpose? Why is it needed instead of using the built-in product pages? What's it doing differently? Are attributes involved? Why or why not? What version of Zen Cart?
    .

    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. v151 Shopping Cart Session (Guest/Customer not logged in)
    By philip937 in forum General Questions
    Replies: 5
    Last Post: 23 Sep 2014, 10:15 AM
  2. v151 where is shopping cart information stored?
    By nazca in forum General Questions
    Replies: 6
    Last Post: 27 Aug 2013, 10:21 PM
  3. v138a Passing addition information to shopping cart
    By royndoggy in forum General Questions
    Replies: 5
    Last Post: 20 Jul 2012, 10:53 PM
  4. How to delete products from shopping cart when user session ends
    By rohitsax in forum Customization from the Admin
    Replies: 11
    Last Post: 22 May 2012, 04:55 AM
  5. Text Information on shopping cart page
    By melissamiller8 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 23 Sep 2011, 03:13 PM

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