Commit 37f7b29f authored by DM42's avatar DM42

Don't allow items to be added unless user is logged into the Grid.

parent e39cbd7e
......@@ -1312,6 +1312,9 @@ function cart_init() {
function cart_post_add_item () {
//@TODO: Add output of errors someplace
if (!get_observer_hash()) {
return;
}
$items=Array();
call_hooks('cart_get_catalog',$items);
$item_sku = preg_replace('[^0-9A-Za-z\-]','',$_POST["add"]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment