I'm hoping we can sticky this (or perhaps move posts into the Wiki) just to give a place for developers to post tips and tricks they've found that haven't made it into the wiki yet. I was aiming this primarily at module developers but having a repository of snippets for site developers wouldn't be a bad idea either.
* Note - the date signifies when the item was added to the list (or edited), in order to keep track of updates easily. New items are appended to the end of the list, so that items can be referenced in this topic by # (number).
Tagged Topics
General
- 2010.10.29 - Debugging, logging, and timing the backend - tip for debugging.
- 2010.10.29 - How to play flv/f4v movies - tip on playing movies.
- 2010.10.29 - Show grouped products availability - snippet for the product details page.
- 2010.10.29 - Basic mail library integration - snippet for "integrating" a custom mailer for signing up.
- 2010.10.29 - Use 'enter key' to submit forms - how form submission works (onclick/onsubmit) and snippets.
- 2010.10.29 - Auto-generate image thumbnails - create a page that auto-generates thumbnails in order to decrease page load time.
- 2010.10.29 - Saving profile information - template to save profile information. Topic #1, Topic #2
- 2010.10.29 - How to sort categories by manufacturer
- 2010.11.01 - Hide and skip steps from the demo checkout process
- 2010.11.05 - Page to auto-generate product thumbnails
- 2010.11.06 - Extend the discount engine with pricing rules
- 2010.11.06 - Uploading a customer profile image
- 2010.11.08 - Adding a field to the checkout
- 2010.11.09 - Using the mailer from the core with email params
- 2010.11.14 - Toggle cart item on and off - snippet.
- 2010.12.05 - List blog archive menu - snippet.
- 2010.12.05 - Get page block by name - snippet.
- 2010.12.13 - How to allow non-LS directories and files - changes the default .htaccess to loosen restrictions.
- 2010.12.13 - Show the min and max prices of a product - highest and lowest prices of a product.
- 2010.12.15 - List best selling products - query snippet to find most sold/popular products.
- 2010.12.17 - List best rated products - query snippet to find highest rated products.
- 2010.12.17 - Product rating with jQuery frontend - snippets for Stars plugin usage.
- 2010.12.17 - Access $_GET variables
- 2011.01.18 - Filter products by in stock (availability) - adds a checkbox on the category page to toggle products that are out of stock.
- 2011.01.26 - Replace alert/error/exception box/light box/popup - how to style, change, or customize the frontend JavaScript alert boxes.
- 2011.01.31 - Skip payment step - how to skip payment step, useful for orders with no fee.
- 2011.01.31 - Approve customers - customize theme to support approved/pending customers.
- 2011.02.07 - Attach image upload to product (POST) - snippet and information to attach an uploaded file to a product.
- 2011.03.09 - Hide an attribute on the product page
- 2011.03.09 - Filter products of a category by a different category - query to post-filter products by category.
- 2011.03.09 - Attach a file upload to a product - snippet to attach a file to a product.
- 2011.03.09 - Get latest blog posts by category - query to get latest X blog posts by specific categories.
- 2011.03.11 - Next/Previous product - snippet for Next/Previous Product buttons. allows to navigate products circularly.
- 2011.03.14 - Allowing additional tags/attributes for HTML editor - TinyMCE configuration.
- 2011.03.17 - Get random product review - Snippet to grab and output a random product review.
- 2011.03.21 - Add products to cart manually - how to add products to cart programmatically.
- 2011.03.21 - Customize product page based on Product Type - conditionally handle products based on their type for product page, cart, checkout, etc.
- 2011.03.28 - Show grouped products on the same page
- 2011.03.30 - Manual product export for price aggregation
- 2011.04.06 - Skip the payment method
- 2011.04.06 - Generate the session key manually - snippet to generate the ls_session_key generated by open_form without it.
- 2011.04.19 - Random related products
- 2011.04.20 - List most recent products - query snippet to find most recently listed products.
- 2011.04.21 - Require login for downloadable products - snippets to require login for download products, rather than "file not found" or permission error.
- 2011.05.01 - Custom donation/invoice field - donation/invoice field to dynamically modify product price.
- 2011.05.18 - Basic how to skin theme outline - very basic instructions on how theming works.
- 2011.05.20 - Clear cart - remove all items from cart button.
- 2011.05.24 - .htaccess for SSL/multiple environments - snippet that provides HTTP/HTTPS (SSL) based on a generic hostname.
- 2011.05.26 - HTML5 in ajax - snippet and information for using HTML5 in partial replacement using innerShiv (for IE).
- 2011.06.20 - Add an item to backend Settings page - snippet to add a section to the backend Settings page.
- 2011.07.13 - Forcing https and/or www - snippet for .htaccess to force SSL and www.
- 2011.08.29 - Using multiple page actions - snippet to use multiple page actions.
- 2011.10.26 - Allowed modules configuration - specified allowed modules, automatically disables other modules.
- 2012.01.12 - Handling session cookies for SSO - snippet on checking shared cookies for single sign-on services.
- 2012.01.18 - Leverage browser caching - snippet for your .htaccess to hard cache browser resources, if the browser supports it.
- 2012.01.30 - Get local time - snippet to get the local time for a timezone.
- 2012.02.02 - Breadcrumb partial - Fairly in-depth partial to generate breadcrumbs to the current page, including the category tree or product information.
- 2012.02.07 - Efficient product query - snippet to query products efficiently.
- 2012.02.28 - Overriding LemonStand functionality - info/snippets on overloading LS hooks.
- 2012.02.28 - Required terms and conditions - snippet for requiring terms and conditions when signing up.
Theming Tips
- 2012.02.29 - Automatic page-specific body class - snippet for automatic body class for CSS usage.
Installation
- 2010.10.29 - Apache configuration for OS X
- 2010.10.29 - Installing on default Ubuntu
- 2010.10.29 - How to set permissions (chmod) in FTP
- 2010.10.29 - Command-line and permissions
- 2010.12.25 - Install LS side-by-side with WordPress
- 2011.01.02 - Force Config & Backdoor to use SSL only
- 2011.02.21 - Setting up IonCube MAMP XAMPP
- 2011.06.17 - Troubleshooting developer license - Developer license encryption can cause shop_order.php parse errors if IonCube or ZendGuard is not installed.
Knowledge Base
- 2010.10.29 - How session keys work
- 2010.10.29 - Creating a shipping method basics
- 2010.10.29 - Debug SQL queries
- 2010.10.29 - Why ImageMagick?
- 2010.11.05 - Can Templates, Partials, and Pages be edited locally in my own IDE? - refer to Modules #4 and #6
- 2010.12.03 - How order transitions/statuses work
- 2011.03.21 - How deferred session keys work
- 2011.03.21 - Use/include LemonStand from outside scripts/directory
Programmer's API
Developer's Guide
- 2010.10.29 - Displaying products on sale - explains how you can output a list of discounted products.
- 2010.10.29 - Allowing customers to provide order item specific information - explains how you can add form fields to the Cart page, allowing your customers to enter item-specific information.
- 2010.10.29 - Allowing visitors to customize products - explains how to allow visitors to customize products before adding them to the cart.
- 2010.10.29 - Supporting file uploads on the product page - explains how you can allow buyers to customize your products with their own files.
- 2010.10.29 - Automatic customer registration - explains how you can extend the checkout process with automatic customer registration and signing in.
- 2010.10.29 - Using partials instead of flash messages - explains how you can display partials with rich HTML formatting instead if standard flash messages.
- 2010.10.29 - Implementing the "Ship to the billing address" checkbox on the checkout page - explains how you can add the "Ship to the billing address" checkbox to the Billing Information page to skip the checkout Shipping Information step.
- 2010.10.29 - Simplifying the checkout process - explains how you can combine the Payment Method, Pay and Order Review checkout steps.
- 2010.11.05 - Customer image - explains how to add a custom image to the customer model and how to create a page for updating the image on the customer profile page.

Help













