Jump to content

Keith

Retired Forum Member
  • Posts

    5
  • Joined

  • Last visited

About Keith

Keith's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Almost right ... {$product.pricing.type} {$product.pricing.monthly} {$product.pricing.quarterly} {$product.pricing.semiannually} {$product.pricing.annually} {$product.pricing.biennially} {$product.pricing.triennially} {$product.pricing.rawpricing.msetupfee} {$product.pricing.rawpricing.qsetupfee} {$product.pricing.rawpricing.ssetupfee} {$product.pricing.rawpricing.asetupfee} {$product.pricing.rawpricing.bsetupfee} {$product.pricing.rawpricing.tsetupfee} {$product.pricing.rawpricing.monthly} {$product.pricing.rawpricing.quarterly} {$product.pricing.rawpricing.semiannually} {$product.pricing.rawpricing.annually} {$product.pricing.rawpricing.biennially} {$product.pricing.rawpricing.triennially} The product.pricing.monthly, quarterly, annually, etc. will only be defined if you have that pricing set up for the package. The product.pricing.rawpricing.xxxx will be defined no matter what.
  2. It's $0, but it is generating an invoice. If I later wait for InvoicePaid, it returns the invoiceid no problem. Of course if I look into the DB, I see the entries for the invoice no problem. I tried storing the OrderID, then, on InvoicePaid taking that invoice ID and looking up the corresponding OrderID in tblorders but WHMCS doesn't add the entry into tblorders until well after the InvoicePaid hook happens... so there's no way for me to look it up that way.
  3. I'm running 4.4.2 and I'm trying to do some auto-provisioning. I need the invoiceid as part of that but AfterShoppingCartCheckout is returning a blank invoiceid ... Here's my hook code: function afterCheckout($vars) { print_r($vars); exit(); } add_hook("AfterShoppingCartCheckout",1,"afterCheckout"); Here's the result as soon as I click Checkout: Array ( [OrderID] => 39 [OrderNumber] => 6781259185 [Products] => Array ( ) [Domains] => Array ( ) [Addons] => Array ( [0] => 33 ) [Renewals] => Array ( ) [PaymentMethod] => paypal [invoiceID] => ) Any ideas?
  4. I don't know of a way off the top of my head. But I do agree with you. That does not sound like a good idea at all. There could be a potential for that being abused.
  5. I tried to post this in the Tips/Tricks forum but I don't have permissions to start a new thread there. If a mod want's to move this over to that forum, cool. I was trying to add my homepage link to a site I'm on using a link tracking URL "site.com/whmcs/link.php?id=12" but they didn't allow the "?" character. So I decided to set up friendly URLs for link tracking so that I could enter it in the format of "site.com/whmcs/link/12". Just open the .htaccess that's in your root installation folder and add this code: # Link Tracking RewriteRule ^link/([0-9]+)$ ./link.php?id=$1 [L,NC] There you go. Now you can access any link tracking URL by using: yoursite.com/(whmcs_install_folder)/link/(id_of_link_tracking_url) Hope this will help someone out.
×
×
  • 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