Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add to shoppingCart object session


Guest

Recommended Posts

I am working on a modification of the osc 2.3.1 that needs to pass information through the shoppingCart object

 

I am having difficulty finding out where in the code osc is actually pulling the information for the $cart object in shopping_cart.php

 

There is an additional field in the products database that I need to pull into the cart object along with the product ID.

 

 

my cart object needs to look something like this when correct.

 

shoppingCart Object
(
   [contents] => Array
       (
           [3] => Array
               (
                   [qty] => 1
                   [my_custom_field] => 100
               )

           [25] => Array
               (
                   [qty] => 1
                   [my_custom_field] => 300
               )

       )

   [total] => 109.98
   [weight] => 15
   [cartID] => 29729
   [content_type] => 
)

 

 

any help would be great.

 

thanks,

C

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...