Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Need to extract data from the shopping cart contents

    Hi,

    I'm working on a mod and i need to extract some data from the array that is passed to the shopping cart.
    If i use $products = $_SESSION['cart']->get_products(); and then check the contents using print_r then i can see that the field i need is present, but i don't seem to be able to extract the exact data required.
    I need to be able to compare the ['id] field with some data from another query.
    What is the best way to get the ['id'] field data for comparison?

    Thanks for any advice.

    Steve

  2. #2
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: Need to extract data from the shopping cart contents

    I've found a solution to this problem.

 

 

Similar Threads

  1. shopping cart contents and new properties to the products
    By stitchnkitty in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Nov 2009, 05:50 PM
  2. Require Search Field to extract more data from a different table
    By callingrohit in forum General Questions
    Replies: 4
    Last Post: 12 Oct 2008, 02:35 PM
  3. Adding the Shopping Cart Contents Directly On The Product Listing Page
    By watzursn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Sep 2008, 12:18 AM
  4. The word 'array' appears in my shopping cart contents ?!
    By katiekin in forum Managing Customers and Orders
    Replies: 4
    Last Post: 21 May 2008, 02:14 PM
  5. Skipping the Shopping Cart contents page
    By qubit in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Apr 2007, 09:00 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