Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For PrestaShop cart versions 1.6 and higher, first locate the file /controllers/front/OrderConfirmationController.php.

...

Underneath it, add the following code:

...

Code Block
<img src="https://shareasale.com/sale.cfm?v=prestashop1&tracking={$id_order}&amp;amount={$subtotal}&amp;transtype=sale&amp;merchantID=XXXXX&amp;couponcode={$couponcode}&amp;skulist={$skulist}&amp;quantitylist={$quantitylist}&amp;pricelist={$pricelist}&amp;newcustomer={$newcustomer}&amp;currency={$currency->iso_code}" width="1" height="1">
<script src='https://www.dwin1.com/19038!!!!!.js' type='text/javascript' defer='defer'></script>
Info

Make sure that you replace the XXXXXin the code below with your ShareASale Merchant ID. You can find this at the top-left of your ShareASale account when you are logged in.

Info

Replace the !!!!!! in the code with your Master Tag ID.

For merchants in the Setup Wizard, you can find this within Step 4 (Tracking Code Installation). If you are live, you can find this by navigating to MY ACCOUNT > ACCOUNT DETAILS

Account Details: https://account.shareasale.com/m-account.cfm

 If you cannot locate your Master Tag ID, or would like to verify that you have one, please submit a ticket to our ShareASale support staff

Note: Make sure to clear your Prestashop cache under Advanced Parameters >> Performance >> Clear Cache after this is complete. Keep in mind this installation requires modifying core Prestashop files, and may need to be reintegrated if you update your Prestashop version.

...

If you were emailed a link to this document, a test link may have been provided to you. If it wasn’t, you can obtain one from your account by clicking here.

NOTE: If you do not click the test link your order will not track.

The test link should direct you to your own store. Once there, please purchase any item in your store. Sometimes Merchants will have a test item worth $1.00 sale price, but above $0.00 minimum.

...