Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About adw

  • Rank
    Junior Member
  1. adw

    Hook on add to cart link

    Ok, I figured it out by using an in-between PHP script that will set the cookie and then redirect to cart.php
  2. I will be linking to my WHMCS site from a couple of other websites and want to pass a site=name parameter in the URL to set a cookie so that I can show the correct logo in the header: add_hook('ClientAreaPage', 1, function () { // check $_GET['site'] and set cookie }); However, this code does not work with the "Add to Cart" link such as: http://domain.com/cart.php?a=add&pid=1&site=name This link redirects to the confproduct page and only then does the hook get fired, but then my site parameter is gone. Is there a hook that will fire on the ?a=add link, before it gets redirected?
  3. Welcome to WHMCS.Community adw! 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.


Important Information

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