klimaapje Posted June 29, 2003 Posted June 29, 2003 I want to turnoff the notification-function, but I have no idea how to.... in the file checkout_succes.php I found this code: if ($global['global_product_notifications'] != '1') { so I suspect you can just toggle this function on or off, but where can I do this...I couldn't find it in the admin area :( I wander how long it will take before someone adds a reply to my post (this is my first post) :wink:
klimaapje Posted June 29, 2003 Author Posted June 29, 2003 sry, I wasn't specific enough... I want to turn off the option that customers have the option to be notificated about updates....right? as if the whole 'product notification tool' didn't even exist; more technically said: I want to change the variable $global['global_product_notifications'] to 0 (or 1...I'm confused now); thnx
Silencer Posted June 29, 2003 Posted June 29, 2003 Just don't show them Notifications box and cut out "Notify me" code from checkout_success. There is always more than one way to do it. And always Keep It Simple, Stupid.
klimaapje Posted June 29, 2003 Author Posted June 29, 2003 thnx for the info so far....:D there's is only one thing left I would like to know: how can I change the variable $global['global_product_notifications'] ??
Guest Posted June 29, 2003 Posted June 29, 2003 You can elimate the thing in column right, put a double slash : // in front of, require (DIR_WS_BOXES . 'product_notifications.php' if you have two lines, do them both
Guest Posted November 12, 2003 Posted November 12, 2003 Yeh OK. I can't find a straightforward answer to this either. Looks to me like 'global_product_notifications' is actually a per-user variable (rather than a global one) that's selected from the database (table customers_info) at the top of checkout_success.php. The point I think this thread (and others) is trying to make is - why test this variable at all if it's always going to return true? I can't find anywhere that's going to set this value to anything except 0, although I haven't looked very carefully through account_notifications.php yet. Well I have two suggestions, and I'd like to know what people think in terms of how it could break other things. The first is to configure your database to set the customers_info.global_product_notifications field to default to 1 instead of 0 (presuming nothing is actually physically inserting the 0 value). The second is to change all the tests to read: if ($global['global_product_notifications'] != '0') instead of if ($global['global_product_notifications'] != '1') The thing is the test occurs several times (e.g. queries are made and arrays built if it returns true), so commenting out the part that displays the notifications as suggested is only a half solution, although that's what I'll be doing for now. cb --
Recommended Posts
Archived
This topic is now archived and is closed to further replies.