Title: Wrong fee with subscription
Last modified: October 26, 2019

---

# Wrong fee with subscription

 *  Resolved [Boris Colombier](https://wordpress.org/support/users/boriscolombier/)
 * (@boriscolombier)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/wrong-fee-with-subscription/)
 * Hello,
    The method ‘calculate_shipping’ make calculations with the products from
   WC()->cart and not the actual package. The argument ‘$paquete’ is not used in
   the method. On my project shipping fees are shown first for the current shipping
   and secondly for the recurring shipping of the subscripted product. If in the
   cart there 2 products but only one belong to the subscription, fees calculations
   are wrong because it’s based on ‘WC()->cart->get_cart_contents_weight()’, the
   whole cart and not the actual package.
 * Or maybe I am doing something wrong ?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/wrong-fee-with-subscription/#post-12067391)
 * We’ve never checked our plugin with any subscription plugin, sorry.
 * Maybe you need to contact us via [Plugins de APG](https://artprojectgroup.es/servicios/servicios-para-wordpress-y-woocommerce/plugins-de-apg)
   form to get a quotation to add this kind of functionality to our plugin, or create
   a custom script for you. We need to look your custom code/plugin to see how it
   works and how we can add the weight calculation in your subscriptions.
 * Kind regards.
 *  Thread Starter [Boris Colombier](https://wordpress.org/support/users/boriscolombier/)
 * (@boriscolombier)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/wrong-fee-with-subscription/#post-12068393)
 * The problem appears if there is 2 packages or more with different weight in the
   cart
    I guess I’ll put a filter on package rates Anyway, thank you for this plugin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong fee with subscription’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-apg-weight-and-postcodestatecountry-shipping/
   assets/icon-256x256.png?rev=2865713)
 * [WC - APG Weight Shipping](https://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-apg-weight-and-postcodestatecountry-shipping/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Boris Colombier](https://wordpress.org/support/users/boriscolombier/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/wrong-fee-with-subscription/#post-12068393)
 * Status: resolved