Jump to content

how to deduct tax & shipping to get sub-total ??


JPRIETO
 Share

Recommended Posts

Im using an affiliate program which is intergrated with prestashop 137

once a sale is made prestashop sends to the jrox affiliate program the TOTAL amount of the sale so that an affiliate can get commission

the problem is that this total contains Tax & Shipping amounts .... and the affiliate program calculates commissions based on these two amnounts also ..... not good

i just want prestashop to send the total amount MINUS the tax and shipping amount

the code i added to prestashop is this:

-------------------------------
$JAMIntegrate = file_get_contents("http://www.domain.com/affiliates/sale.php?amount=".$order->total_paid_real."&trans;_id=".$id_order."&custom;_mid=".$_COOKIE['jrox']);
------------------------------------

HOW CAN I MODIFY THIS CODE SO THAT ONLY THE SUB-TOTAL (BEFORE TAX AND SHIPPING) IS SENT BACK TO MY AFFILIATE PROGRAM?

PLEASE HELP!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More