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

Get Product Price by Product ID in WooCommerce with PHP

blankFinal 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. […]