Jump to content

SOLVED - SUB TOTAL just before total is sent to paypal


Recommended Posts

just before the cart sent total amount to paypal

i need to get the sub-total WITHOUT tax and WITHOUT shipping cost

so that this sub amount can be sent to my affiliate program

i am using jrox jam affiliate manager

right now the cart is sending the FULL amount (tax and shipping also) to my affiliate program which then calculates commission on the sale .... but the commission is based on an amount which includes tax and shipping cost -- thats no good!

here is the code i put in order-confirmation.php

------------------------
To integrate with Prestashop, follow these steps:


1. Open up order-confirmation.php for editing.


2. Find the following lines and add the highlighted code:






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







3. Save the file and reupload back to your Prestashop folder.


----------------------------------------------

do i need to modify this code?
or do i need to modify a prestashop file (if so, which one, its path?) ??

thanks
Link to comment
Share on other sites

Aha!

YOU were so right ..... it works great JUST AS YOU SAID .....

i had gone stright into the shop bypassing affiliate link, thats why it no worked before
as soon as i took notice, i retried it with just the change you said and it worked peect!!

THANKS

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
×
×
  • Create New...