Jump to content

Please help with hook


boogy

Recommended Posts

7 hours ago, pRieStaKos said:

Tell us when this would run. Check the Hook Indexes.

 

19 hours ago, ShaunR said:

Just to be clear... Your wanting a hook that will add a 1.00 credit to the client account when the module create function runs?

Sorry for my nonclear explanation.

I have two products with different payment types but with the same module. I want to add 1 credit to a client who orders a product with id 1 and module command has been finished after module provisioned.

I guess it should run after hook index "AfterModuleCreate"

Link to comment
Share on other sites

17 minutes ago, Kian said:

You have to use AfterModuleCreate hook point to trigger AddCredit API command.

p.s. Have you considered the consequence in invoicing? You're creating money out of nothing 😕 Are you looking for troubles? 😆

hm.. you are right. Unfortunately, it was an easier way to provide test period for a client. 

As I can see it now. 

Hook sequence should be next:

I need to create two products.

1. Test product. Payment Type is Free
2. General product. Payment Type is Free

Client order test product and test it, then he replenishes the account balance(add funds) with success and after that  product should be switched to the second one(general product)

Edited by boogy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated