Category Archives: Lemonstand

Fixing Google Analytics integration in Lemonstand V1

With Lemonstand V1 now unfortunately unsupported, we’re starting to see a few random errors appearing now and then that won’t be fixed — e.g. braintree payments fix. One such problem is the recent deprecation of Google’s auth login system and switch to oAuth2 which throws an error in the dashboard. Fear not, someone has already created a fix for it and published the code on Github: https://github.com/TuzBot/LS-V1-Google-Analytics-oAuth2 Effortlessly applied to a few sites. Thanks Michael…

Read More

Deprecated error with Lemonstand V1 and Braintree Payments

If you’re running an eCommerce website using Lemonstand V1 (which is now unsupported since their V2 is the new hot stuff) and have recently upgraded your server to PHP 5.5+, you may run into a deprecated error when using Braintree Payments. The error is in /modules/shop/payment_types/shop_braintree_transpredirect_payment/Braintree/Util.php and is pretty easy to fix. There are two functions using the deprecated /e modifier: delimiterToCamelCase & camelCaseToDelimiter. The fixed versions of these methods are: delimiterToCamelCase public static function…

Read More

LEMP vs LAMP

Interesting results trying to optimise a website for a client. This is the blitz.io results before and after. In both cases the website run the same Lemonstand installation. The before setup had a standard cPanel installation with: Apache 2.2.25 PHP 5.4.21 with XCache MySQL 5.0.96 2GB Ram The after setup has: nginx 1.0.15 PHP 5.5.15 with Zend OPcache (running as php-fpm) MySQL 5.5.39 6GB Ram There is obviously a lot of difference between the two…

Read More

Lemonstand Module – Dog Tools

Started a Lemonstand Module where I plan to add a few helpful developer items. Just one helper in there, the Dumb Gateway payment type: Dumb Gateway was never the smartest in class. Dumb Gateway goes nowhere and does as it feels. Add Dumb Gateway and set the mood. When Dumb Gateway is Happy, payment goes well. When Dumb Gateway is Sad, payment goes poorly. Sometimes Dumb Gateway is undecided. Dumb Gateway likes developers, but Dumb…

Read More

Lemonstand Module – Filebrowser

So I wrote a lemonstand module a while back. We needed a way for a project to give admin users a different way to upload images and insert them in their content area. Essentially, it gives a kind of wordpress-like image upload feature to the rich editor.. It’s very experimental, use at your own risk. Lemonstand Module Filebrowser on Github When writing it, I ended up stuck trying to hack into existing views. I ended…

Read More