Skip to the content

nano.cat

Snippets of Mălin Cenușă

  • Home
  • Categories
  • Malware Samples
  • mălin.ro
  • blackhat.pm
  • palma.solutions

Append text to product price in WooCommerce

Date: March 13, 2021
Tags: append text to price, free shipping, product, snippet, WooCommerce, Wordpress
Categories: CMS, Wordpress

Add the following snippet to append text to product price depending on the price:

For single product pages only you…

[root@nano.cat]# Check it out!

Create custom order status in WooCommerce

Date: March 13, 2021
Tags: custom order status, snippet, WooCommerce, Wordpress
Categories: CMS, Wordpress

Use this code to create a custom order status in WooCommerce:

Custom colors for custom order statuses in WooCommerce

Date: March 13, 2021
Tags: custom, order status, snippet, WooCommerce, Wordpress
Categories: CMS, Wordpress

Add the following code and replace your order names and color codes as needed:

More statuses can be…

[root@nano.cat]# Check it out!

Add shipping insurance for WooCommerce orders

Date: March 13, 2021
Tags: shipping insurance, snippet, WooCommerce, Wordpress
Categories: Wordpress, CMS

Custom code to add shipping insurance option to WooCommerce orders:

Create a private product called Shipping Insurance or…

[root@nano.cat]# Check it out!

Hide product prices when out of stock

Date: March 13, 2021
Tags: product price, snippet, WooCommerce
Categories: Wordpress, CMS

Hide the price of WooCommerce products when they are out of stock:

References: https://stackoverflow.com/questions/22897709/woocommerce-hide-prices-when-inventory-is-set-to-0-or-out-of-stock

Snippets navigation

Older snippets
1 2 3

Categories



© 2022 nano.cat. All rights reserved. Powered by WordPress.