Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to display price based discount in shopping cart?


gaussboy

Recommended Posts

I've got an 2.2 OSC site up and running. Everything is working and my customers are very very happy with it!

 

One of the modules I'm using is Ian's Price Break Discount module.

 

I need to figure out if there is an easy way to get the discount savings and the discounted total to display in the shopping cart.

 

Does anyone know a quick and easy way?

 

Thanks for any help!

 

Dave

Link to comment
Share on other sites

Hrmm, I should clarify. What I need to have reflect the discount is the shopping cart info box. I've looked for mods that have this without any luck. Does anyone know of a contribution where I get the code to do this?

Link to comment
Share on other sites

So I'm looking around through includes/classes/shopping_cart.php, and I'm thinking that I need to add a $this->discount line to the calculate function.. Hopefully I should be able to grab the code from whatever is responsible for calculating the discount at checkout...

 

Is this the right way to do it? I suspect that once I find the checkout code I'll see a better way...

 

I noticed the code in ot_lev_discount.php, but quite frankly I'm a php newbie some I'm not quite certain of what the poper way to call it is.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...