• odense3dprint

    (@odense3dprint)


    I have one plugin that adds a fee based on payment gateway and a 3dplugin that adds a startup cost as a fee

    i then added this plugin to add a service fee before the cart total

    from the start it only used the cart total to calculate the fee but i managed to change line 150 in woocommerce-service-fee.php to read

    $total = ($woocommerce->cart->subtotal + $woocommerce->cart->shipping_total ) ;

    so no at least it does calculate the fee based on those 2 numbers

    Subtotal 32 DKK
    Shipping
    Bring – Hjemmelevering (17-21): 122 DKK
    Bring – Pakkeshop: 48 DKK
    GLS – Omdeling til erhverv: 58 DKK
    GLS – Omdeling til privat: 74 DKK
    GLS – Til PakkeShop: 52 DKK
    PostNord – Erhvervspakke: 60 DKK
    PostNord – MyPack Home: 80 DKK
    PostNord – MyPack Collect: 58 DKK
    Startup Cost 50 DKK
    Service Fee 15 DKK
    Håndtering 8 DKK
    Total 227 DKK`

    all 3 fees before the cart total does make use of the add fee function so i’m lost on how to figure out things

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

    (@maykato)

    Hello,

    It’s best to ask the developer of the plugin directly as this particular forum is for assistance with core WooCommerce features.

    If you are using Extra Fees for WooCommerce, you have access to our support team at WooCommerce.com. Please contact us at  WooCommerce.com > My Account > Support, and we’ll be happy to help there.

    Thread Starter odense3dprint

    (@odense3dprint)

    i did ask the dev of the 3d plugin if the startup cost was “global” that he did not know and i cant get my head arround his plugin

    all i could figure was that he ussed the add fee function

    the same is the case with the plugin for the gateway fee. that dev have not even replied back

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add service fee’ is closed to new replies.