Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

How to exclude fees from recurring subscriptions? WordPress

  • REFUNDED

Hi all,

We have a Woocommerce (WC) store and we use a fee plugin in addition to Woocommerce Subscriptions (WCS).
The goal of the fee plugin is to make the customer pay the shipping upfront, an impossible option when you use WCS Free Trial feature.

Before the last updates of WC and WCS, when the subscription was generated, the fee was excluded from the subscription but now the fee is included in the subscription and customer will be billed on the next renewal the amount of the subscription + the fee.

We would like to exclude the fees from the subscription. Could you help?
Please dont suggest how we could use WCS differently, we are using it that way for multiple of reasons.

You can try a demo of our store on www.labougiebox.com (website in french), fee appears when you fill out your address or at least the country.

Versions we use :
Woocommerce 3.2.4
Woocommerce Subscriptions 2.2.15
Woocommerce Advanced Fees 1.2.3

Link to the relevant plugins :
Subscriptions Plugin : https://woocommerce.com/products/woocommerce-subscriptions/
Fee plugin : https://shopplugins.com/plugins/woocommerce-advanced-fees/?ref=2

Answers (4)

2017-11-19

Francisco Javier Carazo Gil answers:

Good evening,

Have you talked with the WooCommerce Advanced Fee creator?

Maybe there is some hook we can use to do something like it:

if( wcs_order_contains_subscription( $order, $order_type ) )
return 0;
else
return $fee;


gorbatch comments:

yes but the plugin doesnt officially support WCS so it doesnt have time to help.
To be clear, I still want the user to pay the fee upfront, I just dont want him to have it to pay it when the subscription renew (it's a one time fee)


Francisco Javier Carazo Gil comments:

gorbatch,

No I am not talking about it.

I am talking if there is any hook in order to do us the compatibility.


gorbatch comments:

The plugin is using the official FEE API of Woocommerce. https://woocommerce.wordpress.com/2017/10/11/woocommerce-3-2/


Francisco Javier Carazo Gil comments:

Yes, but it should have some own hooks to leave us to customize it.

Could you show me their own hooks?


gorbatch comments:

can you give me your email?I will send you a copy of the plugin


Francisco Javier Carazo Gil comments:

gorbatch,

Ok, carazo AT codection DOT com.


gorbatch comments:

are you sure of your email? i get a Delivery Status Notification Failure



Francisco Javier Carazo Gil comments:

You have the solution in your mail.

Tell me when you try it please.


gorbatch comments:

The solution didnt work, the question is still open

2017-11-21

gorbatch answers:

Hey, the question is still up for grab :)

2017-11-21

Rempty answers:

The Woocommerce subscription has updated the code to use the new Woocommerce 3.2 Fee API
The woocommerce advanced fees, is still using the old system...

2017-11-22

Reigel Gallarde answers:

can you send me a copy of the plugin?
[email protected]


gorbatch comments:

sent


gorbatch comments:

Hi Reigel, are you working on it?

Thank you,