Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Question


Sumisu

Recommended Posts

Trying to add an array to the cart products array before they get removed from database after successfull sale

 

BUT, I cant seem to find the file where this takes place...

 

Anybody any idea where this is?

 

Thanks

Link to comment
Share on other sites

Depends on the payment system .. if "success" directs to checkout_success.php then the cart is reset ( 2.3.2 ) on line 288: -

 


$cart->reset(true);

 

Other payment systems direct to their own handlers in ext/modules/payment/some_payment_system/some_payment_system_filename_etc.php

Link to comment
Share on other sites

hmm.. didnt think of that... will they all use $cart->get_products(); by default .. the get_products function built from classess/shopping_cart.php?

 

In which case I can build from that point.

 

Or is a different array built from elsewhere that they'll get the cart details from?

 

thanks for your help

Martin

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...