In the current article, we will review how to add a unique number issued by manufacturers to identify individual products – Manufacturer Part Number (MPN) – to your products in […]
Read moreCategory: Snippets
How to Add Cart Fees in WooCommerce with PHP
One of the reasons why WooCommerce is the most popular eCommerce platform is the great flexibility it offers. There is always a solution for whatever you are trying to achieve. […]
Read moreHow 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 […]
Read moreHow 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 […]
Read moreHow 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 […]
Read moreGet 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 […]
Read more