Jump to content

mojtaba sabet

Member
  • Posts

    1
  • Joined

  • Last visited

About mojtaba sabet

mojtaba sabet's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I write a costume phone verification module for WHMCS and i used the following hook to redirect clients to verification module before they check out their order. add_hook('ShoppingCartValidateCheckout', 1, "PV"); function PV($vars) { $clientID = intval($_SESSION['uid']); $isVerified = //check from database if ($isVerified != 'true') { return '<a href="index.php?m=module">send code</a>'; } this hook works fine when client is logged in but for new clients that register in page cart.php?a=view this hook not work because $_SESSION['uid'] returns 0 . which hook should i use for the above exception?
  2. Welcome to WHMCS.Community mojtaba sabet! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×
×
  • 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