woocommerce

  1. L

    Change product status if prices are updated in Woocommerce 3

    I need to change product post_status in a hook. I trying to make product get back to "pending" status everytime vendor change the price. add_action( 'updated_post_meta', 'mp_sync_on_product_save', 10, 4 ); function mp_sync_on_product_save( $meta_id, $post_id, $meta_key, $meta_value ) { if (...
  2. S

    Avoid fatal error on update_checkout event when Calculating Shipping in WooCommerce

    I want to calculate shipping when update_checkout triggered. i used below code in my plugin function function action_woocommerce_checkout_update_order_review($array, $int) { WC()->cart->calculate_shipping(); return; } add_action('woocommerce_checkout_update_order_review'...
  3. O

    Avoid cart items price update for specific product categories in Woocommerce

    I am using below script under my WordPress child theme functions.php to overwrite price, but below code is affecting to all the products. Can you please help me "not to run" below code if the product is under some specific "shirts", "games" category? function calculate_cart_total( $cart_object...
  4. B

    Auto complete processing orders based on their total amount in Woocommerce 3

    In Woocommerce, I am trying to auto complete processing orders based on their total amount. For the moment I have this code that is auto-completing all orders with processing status: add_action( 'init', 'auto_update_orders_status_from_processing_to_completed' ); function...
  5. D

    Adding custom text to the variation price in Woocommerce

    I thought this would have been easy, but I am stuck. All I am trying to do is add the word each after the variation price on a product page. The solution I have found adds it on the category page and in two places on the product page. The code is: /* Adds a text Each - after price */ function...
  6. W

    Move related product to the sidebar on Woocommerce single products

    In woocommerce product page, i would like remove the related product on the product bottom page and put it on sidebar. I can remove it (on the bottom) with: remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); and add it in sidebar a widget...
  7. N

    Woocommerce Variable Product Prices prefix

    Currently I'm using a this code/plugin to show prefix and lowest price the shop: function show_only_lowest_prices_in_woocommerce_variable_products_load_plugin_textdomain() { load_plugin_textdomain( 'show-only-lowest-prices-in-woocommerce-variable-products', FALSE, basename( dirname(...
  8. R

    Add a filter dropdown for product tags in woocommerce admin product list

    I want to also add a filter tag next to the filter by category in the woocommerce products page. Below image is in ducth but I want to add another dropdown menu if possible.
Top