Search found 7 matches

Go to advanced search

by RobinvdA
Wed Nov 08, 2017 10:15 am
Forum: Development Chats
Topic: Event handling Billing module
Replies: 0
Views: 112

Event handling Billing module

Is there a way to hook into the save event of the Order model? I'm trying to save a value to, for example, customer_address when a new order is made, but it looks like the event doesn't fire. This is my module: <?php namespace GO\Uniquekeygenerator; use GO; class UniquekeygeneratorModule extends \GO...
by RobinvdA
Thu Feb 21, 2013 2:24 pm
Forum: Development Chats
Topic: Check if user is logged in
Replies: 3
Views: 998

Re: Check if user is logged in

Hmm i've been trying some things but this is getting weird.. I have this piece of code: require("../../GO.php"); $userid = array('1', '47'); $go = false; for($i=0;$i<count($userid);$i++){ if($userid[$i]==GO::user()->id){ $go = true; } } if(!$go){ print_r("Niet ingelogd"); exit();...
by RobinvdA
Wed Feb 20, 2013 10:03 am
Forum: Development Chats
Topic: Check if user is logged in
Replies: 3
Views: 998

Re: Check if user is logged in

Thanks for your reply.

I tried this but it doesn't return anything.

Code: Select all

require("../../GO.php");
print_r(GO::user());

shows nothing
by RobinvdA
Tue Feb 19, 2013 9:19 pm
Forum: Development Chats
Topic: Check if user is logged in
Replies: 3
Views: 998

Check if user is logged in

Hi, I have an external page which needs to check if a user is logged in in doc-office. My approach (to get the account id of the user that is logged in): require_once("../../Group-Office.php"); print_r($GO_SECURITY); However this doesn't seem to work all the time... Is there another way? T...
by RobinvdA
Tue Feb 19, 2013 9:16 pm
Forum: Development Chats
Topic: Add WHERE statement to query
Replies: 4
Views: 1087

Re: Add WHERE statement to query

Thanks, i'll get more into this when i have the time.
by RobinvdA
Thu Feb 14, 2013 5:05 pm
Forum: Development Chats
Topic: Add WHERE statement to query
Replies: 4
Views: 1087

Re: Add WHERE statement to query

Thanks for your reply!
Should i put this in beforeStoreStatement?
by RobinvdA
Wed Feb 13, 2013 11:16 am
Forum: Development Chats
Topic: Add WHERE statement to query
Replies: 4
Views: 1087

Add WHERE statement to query

Hi, I've been trying to select categories from my own table. Now i can select the categories but i want to select only a few categories based on a column value. So that i have a query like SELECT * FROM tableName WHERE columnName = 1. Problem is i don't know how to achieve this... I've found this pi...

Go to advanced search

cron