Jump to content

aliman

Newbie
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About aliman

  • Rank
    Junior Member
  1. Retirive order amount in complete page

    thank you Brian, unfortunately, as i forward directly to the payment gateway, I discovered that my complete order page is only the content of forwardpage.tpl so i can't use any hook !! any suggestion please ?
  2. Retirive order amount in complete page

    correct code is <?php add_hook('ShoppingCartCheckoutCompletePage', 1, function($vars) { /** * Redirect all orders to a different page after the order complete page is loaded. */ $amount = Capsule::table('tblinvoices')->select('total')->where('id', '=', $invoiceid)->get(); return $amount; });
  3. Retirive order amount in complete page

    thank you Brian, i have already used {debug} to get page variable, the popup shows that i can't get order amount, so i have tried to use ShoppingCartCheckoutCompletePage action hook as you said using this code in my hook: <?php add_hook('ShoppingCartCheckoutCompletePage', 1, function($vars) { /** * Redirect all orders to a different page after the order complete page is loaded. */ $amount = Capsule::table('tblinvoices')->select('name', 'email')->where('id', '=', $invoiceid)->get(); return $amount; }); but i get empty value.
  4. Retirive order amount in complete page

    any one can help !!!!!
  5. Hello, we are using whmcs V7 with SIX template, we are trying to retrieve the variable order amount (total) and show it on the complete order page, unfortunately we only can get invoiceid variable, can you please help me regards
  6. Hello aliman welcome & thank you for joining WHMCS.Community!  Please take a few minutes to review our 

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines