Jump to content

sonuyos

Members
  • Content count

    71
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sonuyos

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. sonuyos

    Registration after Payment and order?

    With that, the problem is how would it differentiate between the clients who did register or not. I was thinking to setup the hook with the first code you provided and replace it with SENDMAIL API, but i cannot set it up on random timing.
  2. sonuyos

    Registration after Payment and order?

    Problem is gonna be that it is just gonna keep sending mails till they do it, every hour, so i guess doing it once a day would be better option.
  3. sonuyos

    Registration after Payment and order?

    I am already looking into SendEmail API 🙂
  4. sonuyos

    Registration after Payment and order?

    Oh well, i just did something else. I just let it be blocked. And now trying to setup a hook that would send mail to users to remind them to complete registration 1 hour after registration. Wonder if it is possible. Anyways, thanks for your help mate, you are as usuz the best <3.
  5. sonuyos

    Registration after Payment and order?

    Ok, i dont know, but it works now. LOL. <?php # Force Client Details Completion v1.1 # Written by brian! function force_client_details_completion_hook($vars) { $client = Menu::context('client'); $requiredfields = array($client->address1,$client->city,$client->postcode,$client->state,$client->country,$client->phonenumber); $validpages = array("clientareadetails","supporttickets","viewinvoice","clientareainvoices","submitticket"); if ($client && !in_array($vars['templatefile'],$validpages) && in_array("", $requiredfields)) { header("Location: clientarea.php?action=details&status=incomplete"); exit; } } add_hook("ClientAreaPage", 1, "force_client_details_completion_hook"); HOWEVER. supporttickets & submitticket doesnt not work. I thnk cuz of vars for templatefile? Now here is the freaky stuff, viewinvoice works fine for some reason.
  6. sonuyos

    Registration after Payment and order?

    Even with FRR or Basic, it doesn't work. I think there is some problem here - !in_array($vars['templatefile'],$validpages) I think that vars is wrong for me i think.
  7. sonuyos

    Registration after Payment and order?

    No, No, redirection happens when i try to substitute the $validpages parameters in the prvious code, Ifjust putting the code in as you gave, that simply doesn't do anything at all. Tested in 7.7.1 with SIX too.
  8. sonuyos

    Registration after Payment and order?

    It indeed is, Brian? more like Brain :v
  9. sonuyos

    Registration after Payment and order?

    Nah mate, it straight right doesn't work. I tried to just update pages in $validpages too, still wouldn't work, would just stuck at redirection.
  10. sonuyos

    Registration after Payment and order?

    Brian, the solution you gave works, but i do not want the user to be able to access clientarea at all, except invoice and the details page, and to use the method you provided would give access to the whole site, and if i remove clientarea, it will stuck in redirection loop.
  11. sonuyos

    Registration after Payment and order?

    As usual, you are the best, but i have figured a better option 😛 {if $smarty.get.status eq incomplete} {include file="$template/includes/alert.tpl" type="info" msg="Please fill the form to continue with our services."} {else} {/if} After locking them to the place where they have to add registration, i am just gonna add 1 parameter on the url i.e. status=incomplete. And till they fix it out, that parameter they gonna see on that page, i am yet to look into the invoice, but i think it should work there as well. I think i have to unlock 2 pages, invoice, and cart complete page.
  12. sonuyos

    Registration after Payment and order?

    Brian, you mah man, you are genius. And your script works flawlessly except for 1 problem. Once the user registers, instead of going to the invoice the user gets locked right away in the My details area, rendering everything quite uselss 😕 I am trying to find a solution for this.
  13. sonuyos

    Registration after Payment and order?

    Alright i tested the hook i created and the one you created, both aint working. Weird.
  14. sonuyos

    Registration after Payment and order?

    <?php # Force Security Questions Hook # Written by brian!-The Lord function force_security_questions_hook($vars) { $client = Menu::context('client'); $address1 = $client->address1; if ($client && $vars['templatefile'] != "clientareaaddress1" && $address1===0) { header("Location: clientarea.php?action=details"); exit; } } add_hook("ClientAreaPage", 1, "force_security_questions_hook"); Something like that @brian!? Also this is for like 1 variable, any tip on adding multiple variables?
  15. sonuyos

    Registration after Payment and order?

    Are you planning to sell your code?
×

Important Information

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