Browsed by
Category: WordPress

Sorting the country select in Shopp

Sorting the country select in Shopp

This came up recently while working on a site that had a bunch of target markets selected in Shopp. The country dropdown list on the Checkout page was in a somewhat random order, and I realized that it was displaying them in the order they were selected or saved. When I checked 3 new countries, they showed up at the bottom of the list. So, knowing that, we decided it would be better for everyone if we sorted the list…

Read More Read More

Shopp Minimum Order Amounts 1.3 Released

Shopp Minimum Order Amounts 1.3 Released

I just released a new version of my Minimum Order Amounts plugin for Shopp today. This new version finally supports version 1.3 of Shopp, and allows merchants to set a minimum quantity for each product in the catalog. The product minimums are separate from the storewide minimums, and both are checked before the customer checks out. You can find it in the WordPress Plugin Directory!

Disabling Multiple Clicks to the Submit Order button in Shopp

Disabling Multiple Clicks to the Submit Order button in Shopp

Most of us who use web browsers understand that the web UI only requires a single click on links, form buttons, and input fields. However, there are people who are used to double-clicking everything in the same way you double-click icons in an OS GUI. Sometimes this causes problems, specifically with shopping carts, where double-clicking can lead to the checkout form being submitted twice which results in duplicate orders. I ran into this problem with Shopp, in a very specific…

Read More Read More

WP-Property is great

WP-Property is great

This week I’ve been working on a new website for Lava Rock Realty to promote their property management services by showing their vacation rentals on their site. My first instinct was to use custom post types to create something custom that would do exactly what we needed. I figured it wouldn’t take very long and would be better than evaluating a bunch of 3rd party plugins to find one that did everything my clients needed. Fortunately, as I was writing…

Read More Read More

Changing the default WordPress email sender

Changing the default WordPress email sender

It’s not uncommon to want to change the email sender that WordPress sets automatically, especially in e-commerce situations. It’s actually really easy to do by adding a couple of filters in your theme’s functions.php file: /** change the default WordPress email sender */ add_filter(‘wp_mail_from’, ‘my_mail_from’); add_filter(‘wp_mail_from_name’, ‘my_mail_from_name’); function my_mail_from($email) { return ‘customerservice@example.com’; } function my_mail_from_name($name) { return ‘Customer Service’; }

Filtering excerpts in WordPress

Filtering excerpts in WordPress

By default WordPress displays […] at the end of an excerpt, which doesn’t look good. Instead, I use this functions on blogs that I build, which changes it to something that looks better. Just add the following to your active theme’s functions.php: