teripratt
teripratt
Offline
0
I want to pay a 40% commission on a purchase but do not want to include the shipping in the total cost. How do I break that out so I only pay 40% on the price of the product?
Responses (9)
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Thursday, January 07 2016, 09:02 AM - #Permalink
    0
    Hello,
    Affiliate Tracker calculates the commission taking into account the total amount of the transaction.
    In order to do what you want, a little bit of custom coding would be needed.

    However, if the shipping value is always the same, you can adjust the percentage in order to not take it into account.

    Thank you,
    Joan
    The reply is currently minimized Show
  • Accepted Answer

    teripratt
    teripratt
    Offline
    Thursday, January 07 2016, 04:09 PM - #Permalink
    0
    I just want to calculate the commission on subtotal, not taxes, shipping, etc.
    What module do I modify?
    The reply is currently minimized Show
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Friday, January 08 2016, 09:19 AM - #Permalink
    0
    Hello,
    to do so, you would need to modify the integration plugin which creates the conversions.
    The reply is currently minimized Show
  • Accepted Answer

    drs2biz
    drs2biz
    Offline
    Tuesday, February 09 2016, 10:40 AM - #Permalink
    0
    This is a good question, and one which I would like to have answered as well. Can we have some help to modify the plugin?
    The reply is currently minimized Show
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Tuesday, February 09 2016, 11:30 AM - #Permalink
    0
    Which plugin and extension are you using?

    Each one works different. If the extension allows it, we can do it.
    The reply is currently minimized Show
  • Accepted Answer

    drs2biz
    drs2biz
    Offline
    Tuesday, February 09 2016, 11:31 AM - #Permalink
    0
    I'm using the plugin for K2 Store on the Affiliate Tracker extension.
    The reply is currently minimized Show
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Tuesday, February 09 2016, 12:03 PM - #Permalink
    0
    In this case you only need to modify a line of code.

    If you open the file /plugins/k2store/affiliatetracker/affiliatetracker.php

    In line 62, you should have:
    "value" => (float)$order->order_total ,

    So, you should replace this line with this one:
    "value" => (float)$order->order_subtotal ,

    If you don't feel comfortable doing this, you can send me ftp access to joan@ joomlathat.com and I will do it for you.

    Thank you,
    Joan
    • drs2biz
      more than a month ago
      Thanks... works fine now!
    The reply is currently minimized Show
  • Accepted Answer

    teripratt
    teripratt
    Offline
    Thursday, February 11 2016, 12:13 AM - #Permalink
    0
    i am using Hikashop. what statement needs to be changed to what?
    The reply is currently minimized Show
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Thursday, February 11 2016, 09:32 AM - #Permalink
    0
    Hello teripratt,

    For Hikashop you need to change the file /plugins/hikashop/affiliatetracker/affiliatetracker.php line 51:
    "value" => (float)$order->order_full_price ,
    For:
    "value" => (float)$order->order_full_price - (float)$order->order_shipping_price,

    Regards,
    Joan
    The reply is currently minimized Show
Your Reply