Jump to content

Collecting information at checkout / smarty / hook

Recommended Posts

I am trying to collect info from site wide cookies after a successful check out through complete.tpl.


$foo = $_COOKIE['foo'];
$bar = time() - $_COOKIE['bar'];


Then have the order hook process the info, store it into a global variable or at least make it usable in an admin order notification email.


But whatever I do, there seems to be very little room for modifying default whmcs functionality.

You guys do realize that smarty is just a template engine and putting a business logic of sql and php kills its purpose!


Is there any way to do it?

Edited by mickylmartin
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.

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