Posted on Leave a comment

How to Add Custom Content Under Each Post in WordPress with PHP

Adding content after each WordPress post can be a great way to capture a user’s attention. You can use the area to display signatures, ads, give users important updates or affiliate disclosures. This can also come in handy when your affiliate links are changed or updated. You can easily keep all your affiliate links updated […]
Posted on Leave a comment

How to Customize the “Add to Cart” Button in WooCommerce with PHP

The “add to cart” button is probably the most important one in any E-commerce store. By default, WooCommerce allows little customization to the button. Often users end up in a situation where they need to change the text on the button, change colors, add text below or above it. Depending on the WordPress theme you […]
Posted on Leave a comment

How to Use Wish Lists for Your E-commerce Store

Running an E-commerce store is an art. Many people buy online because of convenience but convincing your store‚Äôs visitors to purchase from you and not from your competitors can be a daunting task. There are several tricks and techniques you can use to increase visitor conversion. In the last article, we looked at how you […]
Posted on Leave a comment

How to Get Started with WooCommerce

If you are looking to start an online store to sell physical or digital products, one of the best platforms available at your disposal is WordPress. WordPress combined with WooCommerce is the perfect combination for an ecommerce website. There are numerous advantages of using WooCommerce over other platforms. The main one is the availability of […]
Posted on 6 Comments

How to Hide Products by User Role in WooCommerce with PHP

Sometimes you need to hide a product or make it non-purchasable depending on the visitor’s user role, for example, make all products non-purchasable for not logged users, i.e. “guests”. You can use a plugin for that or add a PHP snippet to your (child) theme’s functions.php file. There is a number of ways we can […]
Posted on Leave a comment

Get Product Price by Product ID in WooCommerce with PHP

Final Product Price Use this snippet, if you need to retrieve WooCommerce product’s final price by product’s (i.e. post’s) ID. For variable products, the snippet will return the lowest variation price. The returned price will be “raw”, i.e. not formatted, without currency symbol, etc. You can use the wc_price() function to format the final price. […]