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.8 is now available!


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 »
  • Thanks for 1.7
  • Print
Pages: [1]   Go Down

Author Topic: Thanks for 1.7  (Read 4313 times)

Offline nibz

  • Posts: 684
  • Gender: Male
Thanks for 1.7
« on: September 06, 2013, 04:46:59 PM »
Just a big thanks for the effort put in 1.7! :)

Great works!!
Logged

freeSbee

  • Guest
Re: Thanks for 1.7
« Reply #1 on: September 06, 2013, 05:40:46 PM »
Thank you, nibz!
Logged

instantflorian

  • Guest
Re: Thanks for 1.7
« Reply #2 on: September 06, 2013, 06:44:20 PM »
Hi,

I would like to say Thank You too. Great work really.

Nerveritheless I might have found some minor bugs.

- In view_confirmation.p hp I think after the lines
Code: [Select]
$tpl->pparse('output', 'canceled');and
Code: [Select]
$tpl->pparse('output', 'email_error');
}
}
the line
Code: [Select]
echo $end_of_wrapper;should be added.
At least my layout broke on the confirmation pages until I added this.

- The sorting of the item attributes (FE/BE) did not work for me until I changed it to
Code: [Select]
$query_attributes = $database->query("SELECT o.option_name, a.attribute_name, ia.attribute_id,
ia.price, ia.operator FROM ".TABLE_PREFIX."mod_bakery_options o INNER JOIN
".TABLE_PREFIX."mod_bakery_attributes a ON o.option_id = a.option_id INNER JOIN ".TABLE_PREFIX."mod_bakery_item_attributes ia ON a.attribute_id = ia.attribute_id
WHERE item_id = ".ITEM_ID." AND ia.option_id = '$option_id' ORDER BY a.attribute_name ASC");
(w/o the line breaks of course).

And a small improvement for my needs to deactivate a sold-out item automatically so that it does not show up in FE any more immediately : For this, I added in view.php after the line
Code: [Select]
$database->query("UPDATE ".TABLE_PREFIX."mod_bakery_items SET stock = stock - '$quantity' WHERE item_id = '$item_id'");

the following:
Code: [Select]
if ($stock-$quantity==0) {
$database->query("UPDATE ".TABLE_PREFIX."mod_bakery_items SET active = 0 WHERE item_id = '$item_id'");
}

BR
-Florian.
Logged

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

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