Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Price for single purchase


birddogsgarage

Recommended Posts

Is there a way to chage the price of an item "on the fly"

 

I would like to be able to override the price for an object that is used on the shopping cart page from the database.

 

I have the price change worked out, I just need to know how to get that new price to the checkout.

Basically, if amember adds the product from a page I would give them it would be say 10% cheaper.

 

If the product page has the item for $10 and the user hits add to cart

It goes in @ $10.00

 

Id like to give them a different page that has a 10% discount, I have the new price being added to that add to cart button but the shopping cart still displays the price from the database instead of $9.90.

Hope that makes sense.

Link to comment
Share on other sites

Got it worked out but took a different approach

 

Once I got the product that I wanted to override the price for,

I add it to the specials table in the database

Give it an expiration date of 5 minutes

then they have 5 minutes to get it for that price.

 

Bonus to anyone else shopping for that same product if they checkout in that 5 minutes -

but I couldnt figure any other way.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...