Jump to content

PHP issue - Set variables for afiliate net and url encryption afterwards


Recommended Posts

Hello guise


Long story short, I have to implement an affiliate tracking code on the Order Confirmation page.

The issue is that I suck at PHP and I think I messed up functions in OrderConfirmationController.php


Code template from developers is as follows (I have used codeshare for the codes beacuse the editor blocks this cetrain <img> tag:





[advertiser_code] - this one I have it from them so it's okay

[encrypted_params] - here will be the end result of the encryption (AES-256-ECB) of a string of parameters


My difficulties are for now with the variable string that has to get pulled into the URL to be encrypted:

So, as you can see, there are 11 different parameters required. Following another thread, solved by Master Vekia, for another affiliate code, I started form there with a few variables and added bits and pieces from different threads here.


My bet is I messed things up in the OrderConfirmationController.php


Here's the piece of the php file:



And here's the crappy html code from the .tpl file:



It all breaks down to basic PHP definition of certain usual variables regarding products, categories and order, but I fail at them :(


Please help? :(

Edited by Attrexx (see edit history)

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

  • Create New...

Important Information

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