JPRIETO Posted February 21, 2011 Share Posted February 21, 2011 Im using an affiliate program which is intergrated with prestashop 137once a sale is made prestashop sends to the jrox affiliate program the TOTAL amount of the sale so that an affiliate can get commissionthe problem is that this total contains Tax & Shipping amounts .... and the affiliate program calculates commissions based on these two amnounts also ..... not goodi just want prestashop to send the total amount MINUS the tax and shipping amountthe 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now