Want to show a link to log out only if a user is logged in and vice versa?
Try the below code, paste it directly into your template on WordPress.
Sometimes, you want a good old simple way to restrict customers who don’t have accounts to view your products on your WooCommmerce website. A reason why I’m setting this up for a client is because they have two websites. One of them is for the public, the second is for wholesale customers who need to have accounts before they can access the products. Rather than purchasing another plugin, there’s a fast way to make this work without spending a cent.
Bootstrap is an awesome grid system and is the one of the most popular choices for web designers worldwide. Mostly because it’s such an easy system to learn.
WooCommerce is a different story, tonight I was almost ripping my hair out trying to “bootstrapify” a custom theme with WooCoommerce, and I ran into a big problem.
On the products category page, I wanted Bootstrap to spit out a row every 4 products so that they are all in line and they don’t play up if one of the product titles are larger. Three hours later after a lot of trial and error, I finally figured it out.
One of my pet hates is plugin notifications on WordPress, especially the ones you can’t remove without the click of an exit button. WooCommerce plugins tend to put a message at the top of the screen on your dashboard enticing you to install the “WooThemes updater plugin”. I can see how the plugin is useful, as it will allow you to ensure all of your WooCommerce plugins are up to date…but it’s really annoying, especially if you’re making the website for a client who will see that and wonder what it’s all about..
So I set up an e-commerce site for a client using WordPress and WooCommerce and used a theme called Flatsome. It’s a pretty cool theme, probably one of the best themes on WooCommerce. Mind you, I don’t really like using themes, I think most themes are too bloated, have WAY too many settings and also restrict you with their shortcodes should you decide to move to a new theme, anyway – that argument is for another day.
Basically, my client was having problems with a lot of her customers not being able to select the state dropdown menu on their iPads and iPhones – so there may be some sort of issue on that end, however, the easiest fix of them all was to just disable the fancy Select2 coding so that the drop down is just a standard drop down menu.
One of my clients runs a WooCommerce website on WordPress and has 450 products on it, he went in and added a sale price for every single product, so basically every product now is at sale price, not regular price. He now wants to remove all of the sale prices completely and return the website to how it was before.
The problem with removing sale prices is there’s really no fast way of completely removing them, especially if you’ve set up a schedule, you need to go into every product individually and remove them so that it returns to the normal prices. I figured out a way to do it fast, using phpMyAdmin and a free plugin.
WooCommerce is a fantastic plugin for WordPress, it allows anyone to sell their own products quickly and is reasonably easy to set up with a theme, or a bit more complex when you’re creating your own theme.
I was setting up a client’s website the other day and noticed that WooCommerce doesn’t have (unless I’m mistaken) a loader/spinner animation show when you click on the “place order” button.
On the current website i’m working on, when “place order” is clicked, the screen changes to a lighter opacity but nothing else happens until obviously the confirmation screen appears. With some websites, communicating between your website and the credit card processor may take longer than anticipated, your customer may think the website has frozen and be tempted to hit the back button which could affect the order.
I had this small, annoying problem the other day which is contributing to my hair loss. It was the ability to CC a user into WooCommerce e-mail correspondence. So basically, when WooCommerce sends an e-mail to your customer when their order is placed and completed, I want it to send the email to another user too. That’s all and well if you want to send it to one user for every order, but what I needed was a bit different.
When a customer sets up an account in WooCommerce, they can specify their account login (this is the login / username they use to log into your website), they can also specify a billing e-mail, which would basically mean that any billing related emails, like confirmations from your online shop would go to just the billing e-mail that this customer has provided. That’s fine! BUT – if you for some reason want your user account e-mail and your billing account e-mail to both receive this e-mail, that’s where WooCommerce falls short. I spent hours on end trying to figure out how I can make it work, and I have finally have.
WordPress is an amazing CMS, being used by beginners to experts – it’s a very robust system and can be used for simple blogging (like this website) or complex websites and e-commerce stores.
I love WordPress myself, I find it very simple to use and because there’s such a large community of users and contributors you can usually find a plugin that will help you achieve a goal on your website with the minimum of cost or fuss. With that being said, you also need to be careful about which plugins you use.