Thanks for 1.7

instantflorian

Hi,

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

Nerveritheless I might have found some minor bugs.

- In view_confirmation.php I think after the lines
$tpl->pparse('output', 'canceled');
and

$tpl->pparse('output', 'email_error');
}
}

the line
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
$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

$database->query("UPDATE ".TABLE_PREFIX."mod_bakery_items SET stock = stock - '$quantity' WHERE item_id = '$item_id'");


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


BR
-Florian.

freeSbee


nibz

Just a big thanks for the effort put in 1.7! :)

Great works!!