150 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
59
views
Add a progressive fee based on WooCommerce cart total weight
Summarize:
I'm using the following code that allow customers know calculation of an extra cost depending on product weight and then add to the cart summary.
Problem:
Code rendundant. I think there is ...
0
votes
1
answer
96
views
Add a fee for specific product categories in WooCommerce
I have a client who has a WordPress + WooCommerce store. He asked me to include a fee in the store, but that not all categories would be charged. I would like to insert a fee of 7.40 (Receipt Notice ...
2
votes
0
answers
128
views
How to subtract negative fee from cart total/subtotal to set shipping rates programmatically when reaching threshold in WooCommerce
I am trying to subtract a negative discount fee from the cart total/subtotal in the WooCommerce cart, in order to set the shipping price to 0 when reaching a total/subtotal of 750 excluding coupons ...
0
votes
1
answer
82
views
Remove Woocommerce handling fee if cart total is zero
I am using the following snippet to add a flat rate handling fee to physical items in my cart. My company offers free books with free shipping to our employees via use of a coupon, so I need this fee ...
2
votes
1
answer
167
views
Add a fee in WooCommerce checkout based on the chosen shipping method, payment method and postcode
I want to add an extra charge when the customer chooses geniki taxydromiki as the shipping method and pays cash on delivery or by card or bank deposit and if the customer belongs to specific zip codes....
0
votes
1
answer
58
views
Displaying a custom woocommerce cart fee based on a custom datepicker field selection
Party Rental Equipment website. Using the JQuery datepicker in 3 woocommerce_form_field, one for Event Date, One for Delivery Date, and one for Pickup Date. I am trying to charge a 440ドル extra fee if ...
1
vote
1
answer
231
views
Exclude some products from calculated additional fee in WooCommerce
I wrote This function to add a 9% extra fee on a gateway just on the checkout page.
Now, I want to exclude some products by ID from increasing additional fees in a function.
How can I simply do this ...
0
votes
0
answers
113
views
Getting cart fees in WooCommerce not working in my header.php
I have some code in my Wordpress header.php to create a side cart.
But the line $fees = WC()->cart->get_fees(); returns an empty array while there are fees applied because if I look in the ...
1
vote
1
answer
43
views
Add a fee to WooCommerce Total Cart based on an URL query variable
In the following code, I add a percentage fee to WooCommerce Total Cart, but the condition in the IF statement, doesn't work. I somehow checked everything.
// Adding Nutritionist Fees
add_action('...
0
votes
0
answers
400
views
How to add additional fee for specific payment method on checkout page with Woocommerce Gutenberg block?
When the checkout page is generated by 'woocommerce_checkout' shortcode, we can use 'woocommerce_cart_calculate_fees' hook to add an additional fee for any specific payment method with this js code to ...
1
vote
1
answer
148
views
Add a Percentage Fee and a Fixed Fee For specific Product type in WooCommerce
I am trying to add TWO fees to all WooCommerce orders when and if the cart has "auction" products in it.
I need to add a "clubbing" fee of 20 for each "auction" product ...
0
votes
3
answers
2k
views
WooCommerce discount: add negative fees without taxes
I am adding a WooCommerce cart fee like so :
add_action('woocommerce_cart_calculate_fees', function($cart) {
$cart->add_fee(__('Popust za vjernost'), -10, 0);
});
I thought adding a 0 ...
2
votes
1
answer
157
views
How to Combine Different Woocommerce Fees into One Name?
I'm setting up California Redemption value fees for my site. The code that I have found on here works, however I would like for the different fees to be combined under the same name, which would just ...
0
votes
0
answers
112
views
I have an error when adding extra fees (add_fee) in the cart of Wordpress with Woocommerce?
What I'm wanting to do is the following: I have two types of subscriptions on the site for customers, that if they buy them they can have discounts on products. These subscriptions cost ARS5,000ドル and ...
2
votes
1
answer
169
views
Add Commission Fee to WooCommerce Checkout Based on Subtotal
Trying to add a commission fee to the WooCommerce checkout based on 5% multiplied by subtotal. But, all I get is a blank page and the site stops working.
This is the code:
add_action( '...