Support

Home Forums Event Espresso Premium Hook Filter Calling to New Page

Hook Filter Calling to New Page

Posted: June 11, 2018 at 1:17 pm


Jarred

June 11, 2018 at 1:17 pm

1) How can I change link of “proceed to registration” button of the popup on MER? we want to change the link so we can send the user to our custom page from there he can login or process to checkout as a guest

Is there is any hook/filter to modify “Proceed to Registration” Link?


Josh

  • Support Staff

June 11, 2018 at 1:38 pm

Hi Jarred,

I checked and there actually is not a filter hook to modify the URLs within the cart modal that pops up. What they could do instead is use the
FHEE__EEH_Template__display_template__template_path filter hook to load in a custom template for the cart modal (instead of the default template). The custom template could have your custom URL instead of pointing to the registration page URL.


Jarred

June 11, 2018 at 1:56 pm

Thank you Josh, he said that was very helpful.

I will keep this ticket open for now in case he has any more questions.

Thanks.


Jarred

June 18, 2018 at 12:26 pm

New Question from Developer

Can you ask EE4 team for filters and hook for transactions? so we can add points in database when transaction is complete.

Thanks


Jarred

June 18, 2018 at 12:31 pm

We are creating a points rewards addon where anytime a person buys they receive points that can then later be used towards a discount.

For example

.01 cents equals 1 point.

Another example
When customer saves up 10,000 points, they will be able to deduct $5.00 off at checkout.

Hopefully that helps clarify what they want the hooks & filters for

New Question from Developer

Can you ask EE4 team for filters and hook for transactions? so we can add points in database when transaction is complete.

Thanks


Jarred

June 18, 2018 at 1:05 pm

Also, is there a place to download all the hooks action and filters. Similar to the description on this link https://eventespresso.com/features/hooks-actions-filters/

Thanks.


Josh

  • Support Staff

June 18, 2018 at 1:32 pm

Hi Jarred,

Your developer needs to install the Debug Bar plugin and its companion Debug Bar Actions & Filters add-on. Then they’ll have a list of all the hooks and filters available from Event Espresso in each request.

Along with the above, if they open up the Event Espresso 4 plugin into their IDE, they can do a search for AHEE_ (action hooks) and FHEE_ (filter hooks).


Jarred

June 18, 2018 at 2:14 pm

Hey Josh, they said that’s very helpful, but can you tell us what the exact filter or hook is that’s used when CUSTOMER makes a payment?


Josh

  • Support Staff

June 18, 2018 at 2:22 pm

There are actually many. I can point you to 3:

AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed
AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment
AHEE__EE_Payment_Processor__update_txn_based_on_payment

If none of the above are something they can use and they see a place within the core plugin where they could use a hook, the developer is encouraged to do a pull request.


Jarred

June 18, 2018 at 3:21 pm

Can you also asked him that How we apply discount using our points system in existing ee4 registration process?

Is there any hook or filter which we can use to allow discount based on our points system.


Jarred

June 18, 2018 at 3:23 pm

Thanks Josh for the answer below

There are actually many. I can point you to 3:

AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed
AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment
AHEE__EE_Payment_Processor__update_txn_based_on_payment

If none of the above are something they can use and they see a place within the core plugin where they could use a hook, the developer is encouraged to do a pull request.


Josh

  • Support Staff

June 18, 2018 at 3:33 pm

Can you also asked him that How we apply discount using our points system in existing ee4 registration process?
Is there any hook or filter which we can use to allow discount based on our points system.

I’m sorry but these questions are too vague to give a specific answer. I can point you in the general direction of the Promotions add-on. If they can review the code within the Promotions add-on they’ll see how that add-on applies discounts within the registration process.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Josh 5 days, 7 hours ago ago

Topic Tags

Tagged: , ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!