Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Price and Model


shemeri

Recommended Posts

Posted

Hello,

 

I have made a modification to product info php where I list several prices for the same product in product_info.php. I get the prices from an extra table I have created. Depending on what the user clicks on, the price next to the image updates itself to the selected price.

 

My problem is the cart now. When users click on Add To Cart, osCommerce gets the default price of course, therefore I need to do few modifications to the cart class and table, and few others i guess.

 

Instead of getting the price of the added product from product table through product id, I need to include both price and model of the product in the cart table, so I can easily bring up the price which was chosen in cart and when paying.

 

My only problem is, when users don't login, the cart is saved in sessions in db, which I never understood :-( Therefore I am asking anybody who does understand the session table where it is moved to customer cart table when users login.

 

Hope somebody can help, thanks

 

Joseph

Archived

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

×
×
  • Create New...