WooCommerce Change the Serbian Dinar currency symbol from рсд. to RSD. - 🛍️ WooCommerce: Change the Serbian Dinar currency symbol from рсд. to RSD.

🛍️ WooCommerce: Change the Serbian Dinar currency symbol from рсд. to RSD.

For years WooCommerce was showing the Serbian currency as дин. but this was recently changed to рсд. and now Serbian currency is available in WooCommerce only in Cyrillic script (РСД). You’ll see more details here. But because the Serbian language can be written both in Cyrillic as well as in Latin script, and almost 100%, of … Read full article →

Display the total number of WooCommerce products - Display the total number of WooCommerce products

Display the total number of WooCommerce products

To display the total number of WooCommerce products, you can use the following code snippet: <?php $products = wc_get_products(array( ‘limit’ => -1 )); echo count($products); ?> This code uses the wc_get_products() function to retrieve all published products, with no limit on the number of products returned. The count() function is then used to count the … Read full article →

Bulk Delete Millions of WooCommerce Products using WP CLI - 🗑️ Bulk Delete WooCommerce Products with WP CLI

🗑️ Bulk Delete WooCommerce Products with WP CLI

Here are a few useful one-liners that you can use to quickly remove all WooCommerce products from your store. Another approach: PRO TIP:If you are considering deleting items in WooCommerce, please be aware that this action cannot be undone. Once you have deleted an item, it will be permanently gone from your store. Before taking … Read full article →

Bulk Delete Millions of WooCommerce Products using SQL - 🗑️ Bulk Delete WooCommerce Products using SQL

🗑️ Bulk Delete WooCommerce Products using SQL

While building and testing WooCommerce addons, I find myself in need of quickly deleting all WooCommerce products from the database. WPCLI is the easiest way to go, as you can achieve the desired results via a single line. NOTE:  if your database prefix isn’t the default wp_, you’ll need to change it with your actual database … Read full article →