Using the MODX Lexicon Outside of MODX

One of the banes of my existence is writing MODX extras that will run inside and outside of MODX. Worse yet, sometimes they also run in a browser and from the command line.

In an earlier Article, I wrote about how to instantiate MODX outside of MODX. That makes things easier since you can use any MODX methods once you’ve instantiated the $modx object, but what about the parts of the program that might run before that? If they display messages to the user (possibly error messages), you might like to use lexicon strings to internationalize those messages. Learn More

Tags: , , , , , , | Posted under MODX, MODX | Leave a comment

OpenCart – Create Ajax Function

Opencart makes really good use of Ajax all throughout the framework installation. There may come a time where you will need to make your own Ajax call because you want to set something up that does “not” come with the basic installation. This tutorial will teach you how to do this so you can say money and do it yourself :).  First, let’s discuss what AJAX is first.

What is Ajax? Learn More

Tags: , , , , , , | Posted under OpenCart | Leave a comment

[WHMCS] Charge Per Operator

Sometimes (especially in the gaming industry) you need to charge per operator instead of per package. In WHMCS this can be achieved using the “Configurable Options” section in the WHMCS admin area. An example usage of this is if you sell game servers via WHMCS and charge per “seat”, or a voice server again charging per “seat”.

Step 1: Create a package Learn More

Tags: , , , , , , , , , , | Posted under WHMCS | Leave a comment