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 5692 times)

Offline Shefra

  • Posts: 90
  • Gender: Male
Discount
« on: March 08, 2012, 04:10:48 PM »
Hello,

Is there a possibility to add a discount ? And if so is it also possible to use the disccount only when buying 4 or more peaces of 1 product.

Thanks in advance 
Logged

jacobi22

  • Guest
Re: Discount
« Reply #1 on: March 08, 2012, 04:29:59 PM »
its possible, if you change the code, 3,4 ours if you know something about PHP and the bakery-code

Its not possible with the actuell Version of bakery without code-work
Logged

Offline Bug

  • Posts: 237
Re: Discount
« Reply #2 on: March 08, 2012, 08:33:44 PM »
Basically:

Add a field to the database in the bakery items table called something like discount

Add an input field to the modify item phph and do not forget to add it to the save item php

Now you can fill in a discount amount

In overview php and view item php get the new values and do some math

$price = $price - $discount;

You also need to add these new things to

- view cart and templates cart

- view summery and templates summary





Once you get into it you will come up with amazing extra features

Discount in percentages,

Display the discount, display new and old price, change the layout depending on wheter the item has a discount etc etc

Logged

Offline Shefra

  • Posts: 90
  • Gender: Male
Re: Discount
« Reply #3 on: March 09, 2012, 08:51:40 AM »
Thanks Bug....This helps.
Logged

Offline Bug

  • Posts: 237
Re: Discount
« Reply #4 on: March 12, 2012, 07:17:10 PM »
Are you making a new shop or is it an existing bakery page...

I got something that has all the discount options (even a time scheduler for the discount)...

Logged

Offline Shefra

  • Posts: 90
  • Gender: Male
Re: Discount
« Reply #5 on: March 12, 2012, 08:10:28 PM »
With existing bakery page you mean the standard bakery module? I'm using the standard bakery shop. If you want the share it, it would be appreciated.

Thanks in advance.

Logged

Offline scratch

  • Posts: 9
Re: Discount
« Reply #6 on: May 02, 2012, 12:20:19 AM »
Does any bogy have the modified files or code that they could post to enable the discount code please?
I'm really struggling to implement it...

Many thanks
Logged

Offline Shefra

  • Posts: 90
  • Gender: Male
Re: Discount
« Reply #7 on: May 02, 2012, 08:29:22 AM »
Scratch,

I modified the view, add and modify files. When a customer add more than X pieces there is a discount of Y procent discount.

Frank
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