Skip to content
Advertisement

Tag: woocommerce

Setting custom order statuses as paid in WooCommerce

I have a custom status that I need to set as ‘paid’, in the same sense that the core statuses Processing and Complete are ‘paid’ statuses. I need to do this because WC is synced to accounting software, and the sync is unable to generate a sales receipt for an unpaid order. It works fine when using Complete or Processing

Hide shipping address in WooCommerce new order email notification depending on shipping method id

I want to hide the shipping address if the shipping label is called “Pick up at Rockefeller Store” (but to show for other pickup methods). There are too many ids such as “local_pickup:3” for me to filter through. I enabled the shipping address to be shown in emails/email-addresses.php despite it being a local pickup method. My code attempt: I need

WooCommerce: “You Only Need x pieces to Get Free Shipping!” @ Cart

Each product weighs is 1kg. From the second product onwards (so 2kg) shipping is free. how can I get this notice to appear?: you Only Need x pieces to Get Free Shipping! Thank you Answer Following from https://www.businessbloomer.com/woocommerce-add-need-spend-x-get-free-shipping-cart-page/ where I believe you got the snippet from, and based on your statement (basically if Cart is not empty and there is

Calculate and update product price in cart – WooCommerce

I’m creating a WooCommerce (Version 5.6.0) site where users can buy foam products and the prices are calculated on the archive page. Basically, the users enter the dimensions and the price is calculated based on a formula. I’m currently struggling with updating the prices in cart, I don’t have previous experience in customizing the products and prices at this level,

Several issues when using woocommerce_get_availability hook

Im trying to show an ‘out of stock message’ on the single product page for products that are out of stock. I have this code in my functions.php I get the following error: Notice: stock was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/single-product.php’), wc_get_template_part, load_template, require(‘/themes/mytheme/woocommerce/content-single-product.php’), do_action(‘woocommerce_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_single_add_to_cart, do_action(‘woocommerce_simple_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_simple_add_to_cart,

Advertisement