WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Discount
  • Print
Pages: [1]   Go Down

Author Topic: Discount  (Read 4349 times)

Offline Bug

  • Posts: 237
Discount
« on: May 12, 2011, 11:00:13 PM »
Two ideas

First one i thought of was to add a discountvalue in the item modifypage, save it to the database and then in both the view ovrview and the view item call the price and the discountvalue and do some math to process the new price


Works fine but as i now was making a sorting order selector it did not work well with discountprices...

I replaced the math-stuff into the save item page and made an extra db field for the dischountprice, saving either the discount price or the regular price in that field.

From that point I could call the price from the db and have the sort option working well

I guess this is rather unclear and hard to understand and this is more an anouncement that things are happening in the shopping-part of the system than a question ...

Next up is to add some datefields to set the start and end of the discount, that might be something i need help with....

Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Discount
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2