Search found 85 matches

Search found 85 matches

Re: trigger event after customer login

@straightlight and @daveyoi thanks for your reponses. I already found a workaround but it is just puzzling why it doesn't work. The "updateCustomer" function does get executed but not "after login" event. It ran sometime before the end of account/login function. I tried this even...

Jump to post
  • Thu Nov 09, 2017 9:25 am
  • Replies 14
  • Views 5057
Re: trigger event after customer login

Well I didn't want to use vqmod or ocmod. Using the event system should have worked, shouldn't it? Why wouldn't it work? Am I missing something or is this a bug?

Jump to post
  • Thu Nov 09, 2017 5:29 am
  • Replies 14
  • Views 5057
Re: trigger event after customer login

My function is supposed to be run after the login event but it doesn't look like it is. Using opencart event system, how do I get customer ID after the customer login?

Jump to post
  • Thu Nov 09, 2017 4:57 am
  • Replies 14
  • Views 5057
Re: trigger event after customer login

Code: Select all

$this->log-_write
was a typo. My actual code is

Code: Select all

$this->log->write
. The problem is the function is supposed to run after customer logged in but for some reason I can't get $this->customer->getId() to give me customer_id.

Jump to post
  • Thu Nov 09, 2017 4:47 am
  • Replies 14
  • Views 5057
Re: trigger event after customer login

What is the line of code you added in the account/login.php controller file? Nothing ... original files are not modified. I just want to run updateCustomer function after the customer is logged in. It looks like updateCustomer is run but I couldn't get customer_id using $this->customer->getId()

Jump to post
  • Thu Nov 09, 2017 4:23 am
  • Replies 14
  • Views 5057
trigger event after customer login

Opencart 3.0 I would like to run a function that uses the customer_id after the customer is logged in. Here is my setup event: 'my_event', 'catalog/controller/account/login/after', 'extension/module/my_event/updateCustomer' function updateCustomer($route = '', $args = array(), $output = '') { $this-...

Jump to post
  • Thu Nov 09, 2017 3:26 am
  • Replies 14
  • Views 5057
Re: Official Opencart v2.3.0.2 bug reports

Thanks JNeuhoff. I have heard of Override Engine but never have a chance to try it, I'll look into it.

Jump to post
  • Wed Oct 12, 2016 6:45 pm
  • Replies 229
  • Views 241559
Re: Official Opencart v2.3.0.2 bug reports

I think you won't get a customer_id because, before it reaches the end of the execution of method index in catalog/controller/account/login.php , it would have re-directed to method index of catalog/controller/account/account.php . It only reaches the end of method index in catalog/controller/accou...

Jump to post
  • Wed Oct 12, 2016 7:51 am
  • Replies 229
  • Views 241559
Re: Official Opencart v2.3.0.2 bug reports

I need to get customer_id after customer login event. So I have this for my trigger

Code: Select all

catalog/controller/account/login/after
and then run a script with the following code to get customer_id

Code: Select all

$this->customer->getId()
customer_id doens't show anything. Anyone has issue with this?

Jump to post
  • Tue Oct 11, 2016 9:41 pm
  • Replies 229
  • Views 241559
Events (script notifications) 2.1

Is this Events (script notifications) 2.1 working in opencart 2.1.0.1? I tried to follow the instruction for setting the trigger as described in the document (application / type / folder / file / method / before or after) and it doesn't seem to work. Can someone give a working example of trigger and...

Jump to post
  • Tue Dec 29, 2015 8:05 pm
  • Replies 1
  • Views 489
Re: [vqmod] Customer VIP Program

This extension is now available for opencart 2 http://tlecoding.gurleegirl.com/vip_customer

Jump to post
  • Tue Aug 18, 2015 9:09 pm
  • Replies 43
  • Views 18259
Re: [vqmod] Customer VIP Program

Sorry it cannot do what you described. If you need something like this done I can customize it for you but it's not default functionality

Jump to post
  • Mon Jul 13, 2015 8:12 pm
  • Replies 43
  • Views 18259
Re: [vqmod] Customer VIP Program

Sorry not done yet. It'll be a bit longer.

Jump to post
  • Thu May 28, 2015 9:13 am
  • Replies 43
  • Views 18259
Re: [vqmod] Customer VIP Program

Yes I'll upgrade it to 2.0 probably in a couple of weeks.

Jump to post
  • Tue Apr 28, 2015 6:07 pm
  • Replies 43
  • Views 18259
Re: [vqmod] Customer VIP Program

No. Think of it as customer group. Certain group has certain discount. Customer will be automatically placed in certain discount group based on their spending habit within a certain period.

Jump to post
  • Thu Jan 29, 2015 10:06 pm
  • Replies 43
  • Views 18259
Re: [vqmod] Customer VIP Program

I think you misunderstand how this VIP membership discount works. Customer is eligible for VIP discount if they spend a certain amount within a certain period, it is not a product that customer can buy.

Jump to post
  • Thu Jan 29, 2015 9:42 pm
  • Replies 43
  • Views 18259
Re: [vqmod] Customer VIP Program

What do you mean by "floating" badge?

Thanks,

Tri

Jump to post
  • Sat Jan 24, 2015 4:24 am
  • Replies 43
  • Views 18259
Re: [vqmod] Customer VIP Program

No not yet. I'm working on it.

Jump to post
  • Fri Jan 16, 2015 1:09 am
  • Replies 43
  • Views 18259
Re: SQL query to get all categories in wich a product exists

@Jay6390 You're correct, that's not what OP is asking for. How about this code public function getCategoriesByProduct($product_id) { $query = $this->db->query("SELECT DISTINCT *, (SELECT GROUP_CONCAT(cd1.name ORDER BY level SEPARATOR ' > ') FROM " . DB_PREFIX . "category_path cp LEFT ...

Jump to post
  • Wed Dec 31, 2014 2:47 am
  • Replies 5
  • Views 6415
Re: SQL query to get all categories in wich a product exists

Try this function public function getCategory($category_id) { $query = $this->db->query("SELECT DISTINCT *, (SELECT GROUP_CONCAT(cd1.name ORDER BY level SEPARATOR ' > ') FROM " . DB_PREFIX . "category_path cp LEFT JOIN " . DB_PREFIX . "category_description cd1 ON (cp.path_id...

Jump to post
  • Wed Dec 31, 2014 2:23 am
  • Replies 5
  • Views 6415

Search found 85 matches