Forum Moderators: buckworks

Message Too Old, No Replies

Changing osCommerce Default Add to Cart Behavior

Need to chnage the target of add to cart button

         

greenkoi

4:36 am on Jul 8, 2005 (gmt 0)



I have experience installing several osCommerce installations so I'm no stranger to it, but this one has me stumped to the point that I'm looking for a different cart alternative to meet my needs.

So I have two questions:

First, does anyone know how to change the default behaviour of the 'add to cart' action of osCommerce to get it NOT to goto the cart and redirect to a page of choice?

Second, does anyone know of an open source cart that has the feature set of osCommerce that can provide this behaviour?

Thanks in advance,

mm

incrediBILL

4:52 am on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The behavior is trivial to add to any cart, after the cart is finished doing whatever it does, right before it exits you just slap in a redirect to a different page.

otc_cmnn

5:17 pm on Jul 11, 2005 (gmt 0)

10+ Year Member



Simple fix - I suggest you post this in the PHP forum and someone will likely post the exact code for you.

location header=XXX or some such thing after the cart finishes it's business.