Search results for: woocommerce

Set Minimum total purchase amount

add_action( 'woocommerce_check_cart_items', 'required_min_cart_subtotal_amount' ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount =…

Remove Gutenberg Blocks Library CSS

Remove Gutenberg Block Library CSS from loading on the frontend

Make Product Non Purchasable for Wholesale Customer if Product Stock is Less Than Certain Amount

This snippet will allow you to make a product unavailable for purchase by wholesale customers if…

login redirect changed from default my account page to home page

/** * WooCommerce My Account Page login Redirect */ add_action( 'wp_login', 'owp_redirect_after_logout' ); function owp_redirect_after_logout() {…

تغيير عمله

/** * Change a currency symbol */ add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency )…

Livrare 20kg plus

Cheltuielile de livare nu sunt incluse în prețul total la comenzile care depășesc 20 kg !…

Remove Gutenberg Blocks CSS

add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…

exclude meta key from duplicating products

exclude meta key from duplicating products

Add Vendor Ratings / Feedback to Product Page

add_action('woocommerce_before_add_to_cart_form','vendor_feedback_product_page'); function vendor_feedback_product_page() { $vendor_id = get_the_author_meta('ID'); $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) ); if (…

Change Method Label

add_filter( 'woocommerce_cart_shipping_method_full_label', 'wcv_override_vendor_shipping_label', 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = 'Flat-rate'; // cost;…

Remove Method label

add_filter( 'woocommerce_cart_shipping_method_full_label', 'remove_shipping_method_title', 10, 2 ); function remove_shipping_method_title( $label, $method ){ $new_label = ''; if (…

Redirecting Vendors to Vendor Dashboard on Login

Snippet To Redirect Vendors to their Dashboard on login

Single Vendor Purchase

Limits the customers purchase to a single vendor

Auto register guests that purchase

function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…

Carla Mawyin
<10

Noindex Product Search Pages

This code snippet can be used to set noindex on WooCommerce product search pages.

<10
1 2 3 4 5