Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shopping cart content override?


webbernet

Recommended Posts

Posted

Hey, really appreciate it if someone can help me out here...

 

I'm trying to create a page that when someone visits; automatically empties the shopping cart and then adds one specific product.

so the cart will only have that one item whenever the customer loads that page.

 

please help =)

 

 

thanx

Posted

we are a small magazine. and I have moded Osc to accommodate subscription management.

 

the function I need is for the Subscription Renewal page. so whenever it's opened, the subscription is automatically added to the cart.

 

thanx

Posted

I posted more on my blog, but here's the relevant code in case anyone wants the same thing in the future;

 

require('includes/application_top.php');
$cart->remove_all();
$cart->add_cart(1);
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'));

Archived

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

×
×
  • Create New...