• Resolved Boris Colombier

    (@boriscolombier)


    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

    (@artprojectgroup)

    We’ve never checked our plugin with any subscription plugin, sorry.

    Maybe you need to contact us via 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

    (@boriscolombier)

    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.