Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hook]

The tag has no usage guidance.

0
votes
1answer
23 views

Expresso store : add on, hook store_order_complete_end creates order id+1

Expression Engine 2.10.1 , Expresso Store 2.5.1 For enabling payment via Klarna we have used following Hook to create a custom add-on to handle order creation via API. https://www.exp-resso.com/docs/...
1
vote
2answers
64 views

How to get data from a hook?

How do I get the last "ID" (row) created after using the "channel_form_submit_entry_end" hook? Can the hook send me the "ID"? EE5
0
votes
1answer
37 views

Call a variable from a module that was created in an extension

Is there any way to pass a value from an extension to a module or a plugin in ExpressionEngine? I created this very useful extension to take advantage of the expresso store module: <?php use ...
3
votes
1answer
165 views

before_channel_entry_save hook

I am writing an extension on EE 3.5.11 and I am using the before_channel_entry_save hook. In the EE documentation it says and modifications to the object will be saved. I am doing something like this ...
1
vote
1answer
35 views

Custom add-on accessing method from another custom add-on …

I've got a custom add-on/extension that extends the Store module by tapping into the store_order_complete_end hook to save details of an order to an XML file stored on the server. I want to access ...
1
vote
1answer
31 views

Hook when member updates password

I can't seem to find a hook for when a member updates their password. I am using EE v3.5.4 and just using the built in member templates. I am sure on existing but I can't seem to find it. Anyone ...
0
votes
1answer
67 views

Using the cp_custom_menu hook

I can't get the cp_custom_menu hook to run. Here's my code. The activate_extension() function runs and successfully adds the extension to the db but it never gets called. public function ...
0
votes
1answer
76 views

Using hooks in EE3 calling methods in extensions from modules

I'm new to hooks, so pardon any ignorance in the questions... So in my extension, (ext.staree.php), I have the following specifying the hook: class Staree_ext { public $hooks = array('...
1
vote
1answer
51 views

freeform multipage reset some values from other pages

I have a multi-page form set up as following : question 1 > question 2 > question 3 > question 4 if answered yes > question 5 question 4 if answered no > question 6 All my questions have a return ...
1
vote
0answers
51 views

Cancel Entry Update / Display Error using EE3 Extension Hook

I am using a 'Channel Entry Model Extension Hook' in EE3 to allow me to carry out further validation of a selection of fields. This is working fine, currently with the 'before_channel_entry_update' ...
0
votes
1answer
90 views

expressionengine (expresso): How to implement existing webhooks

Hi I am really new to expressionengine and I'm currently using a module for store called expresso. Now I want to use their webhooks to update some functionalities before adding item to cart. Now, my ...
0
votes
1answer
50 views

Is there a way to get the member_id of a user that was just logged out?

I currently have the core file Session.php modified a little to keep track of login/logout information and member_ids - create_new_session() for login, destroy() for logout. I realize that this can ...
0
votes
1answer
199 views

WebHook: How to POST form data to a URL?

I'm using an external service - Unbounce.com - to manage my landing pages. Unbounce gives me the option to post to an external URL using their Webhook Integration. I'm using Freeform to manage my ...
0
votes
1answer
105 views

Get member id in ExpressionEngines session hook

How do I get the member id of the current user in my extension when I'm in the session_start hook? ee()->session->userdata('member_id'); Obviously doesn't work; this gives me a server error.
0
votes
2answers
56 views

Do something after hook

I'm making an ExpressionEngine extension that is supposed to return to a certain URL after the user logged in. I'm using this hook: member_member_login_single. This returns me to the right url, but it ...
0
votes
2answers
34 views

How to use the SQL Manager to find which extensions use a certain hook?

How would I go about using the SQL manager to find out which extensions use a specific hook? I can't find any documentation or query examples on this...
0
votes
1answer
32 views

Update field content with extension when saving or editing an entry

I have created an extension which uses the entry_submission_ready hook. It is doing some calculations which I want to add to a field in the entry. How can I add the output of the calculations to the ...
0
votes
1answer
40 views

file_after_save Hook - Does it run when Synchronising a directory of files?

I am using this plugin here to compress images throughout my site: https://bitbucket.org/bulldogcreative/tinypng/src Ideally I would like to synchronise a directory of existing images through that ...
0
votes
1answer
75 views

Hook for when status is updated

Is there a hook that could be used to check what status was before submission, and what status is submitted (changed to) whilst editing an entry? I want to check to see if a status is changed to 'x2' ...
1
vote
1answer
36 views

Cannot modify $item->modifiers in store_order_item_add_end hook

I have an extension using the store_order_item_add_end hook. I can set field values such as $item->price and $item->weight - but I cannot change the content of $item->modifiers. I've also tried ...
2
votes
2answers
105 views

Altering item data from store_order_item_add hooks (_start or _end)

I'm not sure if is deliberate, but the way hooks have been implemented in Exp:resso Store don't seem to allow the modification of data? Using pass by reference has no effect (because of EE's hook ...
0
votes
2answers
78 views

Hooks for custom module

I'm using Solspace favorites module and am looking to automatically add new entries+comments to the DB in a separate Favorites Collection to mark entries as either read or unread (fav or not fav). ...
0
votes
1answer
95 views

DataGrab - is there a hook?

Is there a hook at the completion of a DataGrab import? I need to run a script after an import.
1
vote
1answer
41 views

Get IDs of deleted entries

I’m creating an ExpressionEngine extension. I want to get the IDs of any records that are deleted. I’m aware of the delete_entries_end() and delete_entries_loop() hooks, but they both return void ...
0
votes
1answer
26 views

member_delete hook isn't deleting member after my code

I've got an extension that is using the member_delete hook which checks a specific entry field for the deleted member's ID and removes it if found. This is working fine (field cleared of member ID) ...
0
votes
2answers
55 views

user_delete_account_end hook doesn't appear to be working

Firstly apologies for my explanation and terminology, this is a relatively new area for me. I've built an extension which uses three hooks: user_register_end user_edit_end user_delete_account_end ...
0
votes
3answers
157 views

Programmatically Adding an Item to an Expresso Order

I have a client that needs to add a "free gift" to their customers' orders for every $100 that a customer purchases. I'm using ExpressionEngine 2.9.0 and Expresso Store 2.3.1. I've created an ...
0
votes
1answer
617 views

entry_submission_end hook with ee()->api_channel_entries->save_entry

EE v2.9.0 Build Date: 20140715 This error displays about 44 times after submitting an entry with a white screen when using the entry_submission_end hook. I have roughly 20 field types enabled, and 37 ...
1
vote
1answer
54 views

Error on Postmaster Parcel or Hook save

I'm working in EE v2.9.0 and Postmaster 1.5.0. Every time I save a parcel or a hook, I get the same error: Error The page you requested was not found. The information saves, however, I need to go ...
1
vote
0answers
58 views

How do I add custom styles to Wygwam using a hook?

I want to add an extension to wygwam that allows me to add my own customized dropdown to the toolbar with different css styles. No idea where to start. I want simple styles for pull-quotes and lists. ...
0
votes
1answer
85 views

problem with publish_form_entry_data expressionengine hook

I'm trying to develop an expressionengine extension which uses "publish_form_entry_data" hook to change some default features such as customized datepicker , etc. problem is it works perfectly in the ...
0
votes
1answer
100 views

Clear cache when Expresso Store Sale is created

I think this question is probably more directed at the guys from Expresso Store, but maybe there's someone else out there that has had to deal with something similar before and can point me in a ...
1
vote
1answer
34 views

Solspace Friends - Friend Request Hook

Is there a hook I can use when a friend request is made in Solspace Friends add-on? After a friend request is made, I want to send a notification to the "friendee" (e.g. by email, Ajax notification, ...
1
vote
1answer
65 views

cp_menu_array hook : nav_ not getting picked up

I am hooking in to cp_menu_array - which seems light on the old documentation - to stick up a menu for my module. All works as expected, except the language strings. public function cp_menu($menu) { ...
2
votes
1answer
294 views

Expresso Store Hook store_order_complete_end

I am very new to EE2 and using Expresso Store in one of my websites in EE2 and need to use this hook when the order has completed and payment has been made successfully. The code I need to call is ...
0
votes
2answers
118 views

Structure of an Extension

I am trying to learn how exactly hooks and extensions are used. I am using expresso-store and have a function I need to call when the order is complete and gets to the success page (on hook '...
0
votes
1answer
26 views

`email` field in exp_comment_subscription table

I disabled the sending of notifications for comments because I created a custom solution that triggers when a user makes a comment. I am trying to get emails of the subscribers via the ...
2
votes
2answers
263 views

Expresso Store tax hook help?

I’m creating an AvaTax Tax Calculator extension for Expresso Store utilizing the ‘store_order_taxes’ hook. After getting a response from the API, I'm modifying the value of the tax rate as follows: ...
1
vote
1answer
60 views

Addon - Forget Password Email Hook [duplicate]

Is there an add-on that can provide a hook to change the forget password email?
0
votes
0answers
136 views

Expresso Store - Order Status Change on DB level (via Datagrabber) send out email notification to customer

Working on a project where there is a need to be able to take data provided in the form of an xml file, from an AS400 mainframe, which updates information relating to certain orders placed in Expresso....
1
vote
2answers
103 views

Expresso Checkout conditional (use hook?)

So, at the end of the checkout process (where it becomes an order) I want to fire off an SQL query wrapped inside AJW export (which creates an xml file). However, within the confines of ...
2
votes
1answer
131 views

is there a hook when a member resets it's password?

is there a hook when a member uses the forget password feature? Looking at the hooks documentation, I don't see any hook in there that might do this.
0
votes
1answer
38 views

EE Hook where I can change language to be displayed?

Is there hook in ExpressionEngine where I can change the language to be shown before the page is rendered?
1
vote
1answer
242 views

Check if user is logged-in inside sessions_start hook handler

I am aware that in sessions_start handler function, the session object is not yet set. Since I can't use the session object, are there alternative ways to check if you are logged in in this function ...
3
votes
2answers
344 views

Updating status with hook does not trigger email

First, thanks in advance for any insight. I'm using the following in a simple extension to set the status for new orders with the aim that I can send an email template based on the customer's member ...
1
vote
1answer
43 views

New comment email notification and ‘insert_comment_insert_array’ hook

I hame some input fields on my comment form, that I show for non-registered members. They are: ‘name’, ‘email’ and ‘comment text’. And my task was to add string “Guest” to text user typed in the ...
0
votes
1answer
170 views

Manipulate custom order data with CT hook during checkout

I'm using CT. When a customer checks out they are required to select a location for where they want to pickup their order. I would like to save both the location's ID and the location's pickup date to ...
1
vote
2answers
135 views

Hooks when a member is moved to another member group

Is there a hook in ExpressionEngine that triggers when any one member is moved from group to another?
1
vote
2answers
286 views

$this->EE->api_channel_entries->data (via entry_submission_ready hook) not working on front end

I have the following entry_submission_ready method in an extension to update a field's data. This works fine when saving an entry in the control panel, but it doesn't change the field value on the ...
1
vote
1answer
158 views

Change cart subtotal in cartthrob using hook

I've set up the cartthrob_pre_process hook to look something like this: public function cartthrob_pre_process($data) { $data['subtotal'] = 500.00; } It then goes to PayPal, which is the selected ...