WooCommerce – Show different terms and conditions for different user roles

The Wholesale role was created as part of a plugin that’s been installed (WooCommerce Wholesale Pro Suite). Currently, the T&C link is being displayed using the standard WooCommerce functionality. But what I’ve done is amend the terms.php file, within the checkout folder of the WooCommerce templates (copying it to my theme folder) and I’ve found … Read more

Add Previous | Next arrows near to related products

Not sure how your Previous and Next arrows are setup and/or being pulled in, but at a basic level you can add in the product_cat to the previous_post_link() and next_post_link() calls: https://codex.wordpress.org/Function_Reference/previous_post_link <?php previous_post_link( ‘Previous: %link’, ‘%title’, true, ”, ‘product_cat’ ); ?>

How to invoice Woocommerce customer the remainder balance amount for additional items to an already paid order

I think you can detect order status change and store the current order total to be used as negative fee so that it can be deducted from order total before calculating total. To make it less confusing the code should be something like this: add_action(‘woocommerce_order_status_changed’, ‘add_credit_fee_if_editing’, 10,3); function add_credit_fee_if_editing($order_id, $old_status, $new_status) { $order = wc_get_order( … Read more