Attrexx Posted April 27, 2015 Share Posted April 27, 2015 (edited) 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: http://www.codeshare.io/ZTiOK WHERE: [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: external_reference=[ext_reference]&product_code[]=[code]&product_price[]=[price]&product_name[]=[name]&product_link[]=[link]&product_category[]=[cat_code]&product_category_name[]=[cat_name]&product_part_no[]=[part_no]&product_brand[]=[brand_name]&product_brand_code[]=[brand_code]&product_qty[]=[qty] 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: http://www.codeshare.io/u5Gas And here's the crappy html code from the .tpl file: http://www.codeshare.io/FKADz 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 April 27, 2015 by Attrexx (see edit history) 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