WebsiteBaker Support (2.8.x) > Bakery Shop
Thanks for 1.7
(1/1)
nibz:
Just a big thanks for the effort put in 1.7! :)
Great works!!
freeSbee:
Thank you, nibz!
instantflorian:
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: ---$tpl->pparse('output', 'canceled');
--- End code ---
and
--- Code: --- $tpl->pparse('output', 'email_error');
}
}
--- End code ---
the line
--- Code: ---echo $end_of_wrapper;
--- End code ---
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: ---$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");
--- End code ---
(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: ---$database->query("UPDATE ".TABLE_PREFIX."mod_bakery_items SET stock = stock - '$quantity' WHERE item_id = '$item_id'");
--- End code ---
the following:
--- Code: ---if ($stock-$quantity==0) {
$database->query("UPDATE ".TABLE_PREFIX."mod_bakery_items SET active = 0 WHERE item_id = '$item_id'");
}
--- End code ---
BR
-Florian.
Navigation
[0] Message Index
Go to full version