Today I updated the plugin I wrote almost a year ago, bringing to to version 1.1. It’s not a huge accomplishment but I am proud of it. The plugin is used by several of my co-workers and it’s pretty cool that it’s useful enough to continue adding to it. I came across an http header that allows me to guess a little bit more about the proxy or load balancer in use, so I added detection for that.
I finally got around to adding a simple icon to my plugin on WordPress.org. It was very easy! Here is how to can do it in just 5 simple steps.
Before you start
In your plugin folder you should have an assets folder. This is where you can add files for things like the Plugin’s icon, the header, screenshots, etc. The folder should be a top level directory, so it’s not going to be in trunk or tags. It sits right at the top. Keep in mind that images can only be in the JPG or PNG format, nothing else.
From the WordPress.org documentation: Image sizes should be the same as implied by the names. That is, banner-772x250.png should be 772 pixels wide by 250 pixels high. Similarly, icon-256x256.png should be a 256×256 square.
5 Steps
Step 1. Create an icon file, which is a JPG or PNG that is 256X256 pixels. Then name it icon-256x256.png.
Step 2. Add your new icon to the assetsdirectory.
Step 3. Use the following svn command to add the icon so you can check it in.
svn add icon-256x256.png
Step 4. Check in your changes.
svn ci -m "Adding icon for plugin"
Step 5. Check out your plugin’s page on WordPress.org. It should now have your new icon!
WooCommerce: Send a coupon! Send a coupon to a customer as a reward for subscribing to a list and/or creating an account during checkout.
With Follow Up Emails you can create a list for your customers to subscribe to, create a sign up form to subscribe to that list, and send them a coupon for doing so!
This is what you do.
Create a new coupon in Follow-Up Emails
Create a new Signup Email in Follow-Up Emails
Create a list in Follow-Up Emails
Create a signup page for your list
Install a plugin that will create a pop-up or splash page
First, create a new coupon in Follow-Up Emails Just head to Follow-Up Emails in the side menu and navigate to Coupons -> Add Coupon.
In our example it’s a 25% off coupon. Configure as desired.
Next create a new Sign Up Email in Follow-Up Emails and attach the coupon
As you can see there are a few things you need to be sure to configure.
The Follow-Up Type needs to be Signup Email.
Configure the sending delay.
Set the trigger to be after user signs up to a list.
Choose Any List. You can be specific if you would like and select a list by name.
You will need to add this variable {coupon_code} to the email, or nothing will be shown.
Thirdly, create a list in Follow-Up Emails Head over to Follow-Up Emails -> Mailing Lists -> Lists and create a list.
The fourth step is to create a signup page for your list We are almost there. Now you need to create a page to be used for signups. Create a new page similar to this using Follow-Up Emails shortcode.
[fue_subscribe list="Store Updates" submit_text="Subscribe" success_message="You have been subscribed! The 25% off coupon is on it's way!"]
Link: http://cld.wthms.co/gmdfw6
Lastly, install a plugin that will create a pop-up or splash page Just for this example I installed this plugin which creates a splash page.
The resulting form looks like this.
And finally, the email that the customer will receive for joining the list.
Often times WooCommerce Subscriptions will fail to renew for a recurring Subscription because Cron is either not working correctly on a site or because of this. For traffic based firing of Cron, I suggest using JetPack Monitor. It solves this limitation easily and effectively.
For troubleshooting when WooCommerce Subscriptions Not Renewing (or other Cron based scheduled events) I like to use WP Crontrol. It’s great for getting a better idea of what’s happening with your site’s Cron jobs and most times the plugin will print an error on the WP Crontrol configuration page that will give you the right direction to head in for troubleshooting. Often times you will need to work with your hosting provider to resolve the issue. If you are running your own server, then this will be the same error that shows up in system logs.