Search results for: woocommerce
Disable default WordPress image sizes
// Disable default WordPress image sizes add_filter('intermediate_image_sizes', '__return_empty_array'); // Disable large scaled image size add_filter('big_image_size_threshold', '__return_false');…
Customer Order Note for WooCommerce Products
Inserts a note field next to the add-to-cart button on every WooCommerce product page. Customers can…
Modify WooCommerce Coupon Message
Want to change the default WooCommerce Coupon Message? Want to show the discounts they are getting?
Prevent Wholesale Customer to Add Product to the Cart If The Product is Low on Stock
// Prevent wholesale customer to add to cart if the product is low on stock add_filter('woocommerce_is_purchasable',…
Disable WooCommerce widgets on vendor store pages
/** * Remove widgets from the vendor store and single product pages conditionally. * * You…
Untitled Snippet
{"generator":"Code Snippets v3.6.5.1","date_created":"2024-07-30 20:37","snippets":[{"id":5,"name":"No price","code":"add_action( 'init', 'wpspecial_nascondi_prezzo_agli_utenti_non_registrati' );n nfunction wpspecial_nascondi_prezzo_agli_utenti_non_registrati() { ntif ( ! is_user_logged_in() )…
WooCommerce Change "$0.00" to "Free"
/** * Snippet Name: WooCommerce Change "$0.00" to "Free" * Snippet Author: ecommercehints.com */ add_filter( 'woocommerce_get_price_html',…
Show 'NEW' Badges for Recently Added Items in WooCommerce
This code snippet adds a “NEW!” badge to products in WooCommerce, indicating that they are newly…
MemberPress: WooCommerce - Show Protected Products on the Shop Page
If we protect products using Rules, they won’t show in the Shop page. To change this…
Add the Buy on Kindle button near Add to Cart in WooCommerce PDP.
Add the Buy on Kindle button near Add to Cart in WooCommerce PDP.
Make All Users Vendors
/** * Make all new user registrations Vendors. */ add_filter( 'woocommerce_new_customer_data', 'wcv_woocommerce_new_user_data' ); function wcv_woocommerce_new_user_data( $data…
Snippet Name: Change the WooCommerce variable product drop down place holder text
How to change Change the WooCommerce variable product drop down place holder text
Apply Coupon when a radio button is clicked on The WooCommerce Product Page
Apply Coupon when a radio button is clicked on The WooCommerce Product Page
Product Expiry For Woo
Supports the Expiry for Woocommerce plugin - WC Vendor
Note Orders
add_filter( 'manage_edit-shop_order_columns', 'custom_shop_order_column', 90 ); function custom_shop_order_column( $columns ) { $ordered_columns = array(); foreach( $columns as…