Improve Popup Cart Feature in TomatoCart

In the default glass gray template of TomatoCart, it is necessary to click the popup cart to show it. And the popup cart can’t be closed automatically when the customer’s mouse leave out it. So, I have improved the popup cart feature as follows:

– When the customer put the mouse on the popup cart, the popup cart will be displayed automatically.
– When the customer put the mouse on the popup cart, the cart contents will not be closed automatically unless the customer’s mouse leave from it. Learn More

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

Understanding addPackage(), loadClass(), and getService() in MODX

I have never completely understood the differences between getService(), addPackage(), and loadClass(), and I find most descriptions of them somewhat thin and misleading (including the ones in my book). I recently ran some tests, and although my understanding is still imperfect, I thought I’d share what I learned. Learn More

Tags: , , , , | Posted under MODX | 2 Comments