3,351 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
67
views
Payment Method Surcharges Not Calculating Correctly in Checkout Total
I am having issues implementing a payment method surcharge on my client's e-commerce store. The goal is to add a fee for PayPal and Stripe payment methods.
I’ve tried using both plugins and custom ...
0
votes
0
answers
84
views
Woocommerce checkout hooks lifecycle with external API call for custom shipping rates
Ok I finally got all my code partially working. It only works in some specific scenarios, which I don't fully understand yet. I think the lifecycle of the checkout is not 100% clear to me. I'll ...
-3
votes
1
answer
87
views
WooCommerce Hook is not firing and seem to be deprecated [duplicate]
I know it's 2025, and this problem seems to be all over the place, and I've been trying all the recommended solutions, but it seems it's mostly old code. But I don't really know; I'll try to sum it up ...
2
votes
1
answer
111
views
Woocommerce set custom field value from API
I have setup a custom field in the Admin Orders section of my Woocommerce site
add_action('woocommerce_admin_order_data_after_order_details', function($order){
$pdf_url = get_post_meta($order->...
3
votes
1
answer
148
views
Woocommerce Custom Payment Gateway with Custom Order Status issue
I am using custom Purchase Order based payment gateway method in Woocommerce and have registered my custom status status - Pending PO Verification for all orders made using this payment method. The ...
-1
votes
1
answer
61
views
(Woocomerce) Unable To Update Order Meta
I am creating a custom field inside an order, to add tracking ids and the courier service used. However from the post few hours, i have been unable to find a way to update the order meta.
I have used ...
-4
votes
2
answers
98
views
Change button position for invoices On WooCommerce My Account Orders
In WooCommerce, I have a plugin for invoices, and it has a function to show a button inside WooCommerce My Account Orders to download it / view it.
public function show_public_invoice( $order_id ) {
...
1
vote
1
answer
119
views
Move Variation Description from original location to woocommerce_single_product_summary
I want to move the Product Variation Description from its original location to be displayed in woocommerce_single_product_summary, but I never succeeded using many different methods.
I am using the ...
2
votes
1
answer
114
views
Add WooCommerce brand term to admin order details above product name
(called "BANISH")We are using Woocommerce Brands on the site but need to show brand next to the name site wide for both customers and admins responsible for picking stock. I have managed to ...
1
vote
1
answer
104
views
Custom plugin bulk action not showing on Orders page
I’ve built a custom WooCommerce plugin to allow bulk printing of shipping labels from the Orders page. However, the custom bulk action I've added (Print Shipping Labels) does not appear in the Bulk ...
0
votes
0
answers
44
views
Can't get simple WooCommerce Memberships Filter Hook to work
I'm trying to register a function to a Woocommerce Memberships filter hook but I'm not getting any results. I'm following the docs from here. More specifically wc_memberships_member_discount_message ...
0
votes
1
answer
55
views
Woocommerce add free product if there are other products in the cart. Scrollbar disappearance problem if the free product is not already present [duplicate]
This script reads the cart, sees if the two products are present and adds another one different from the others.
The addition of the quantity of the new product depends on the quantities of the others....
1
vote
1
answer
65
views
Apply a fee per item based on product attribute size in WooCommerce
The goal is to use the cart item attribute size to calculate a fee per item.
Here is my code attempt:
add_action( 'woocommerce_cart_calculate_fees',
'wpf_wc_add_cart_fees_by_product_attribute' );
if (...
1
vote
1
answer
137
views
Woocomerce auto select product variations if only one available AFTER interacting with form / dropdown
I'm trying to find a solution for my woocommerce product with attributes AFTER user selects one option.
All solutions always lead me to this snippet that only fires on page load - not when users ...
0
votes
1
answer
107
views
How to append a clickable link to WooCommerce custom fee name on Checkout?
In WooCommerce, I have added a custom fee which applies for products with shipping class "dangerous goods" (dangerous-goods). I now want to append/add a link to this custom fee name on the ...