Affiliate Integration- passing OrderID not OrderNumber

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Affiliate Integration- passing OrderID not OrderNumber

Post by Brewhaus » Sun Oct 25, 2009 12:54 pm

We just set up AffiliateWiz with our AC7 site, and everything seems to be working well based on our tests, but AC is passing the Order ID to the affiliate software, not the Order Number. I double-checked, and we definately have set it to pass the order number in the Third Party Tracking link (https://www.hotsaucedepot.com/affiliate ... erSubTotal]).

Does anyone know how to fix this?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Affiliate Integration- passing OrderID not OrderNumber

Post by mazhar » Mon Oct 26, 2009 7:57 am

Try following quick workaround edit your Website\Checkout\AffiliateTracker.ascx file and locate following line of code

Code: Select all

url = url.Replace("[OrderNumber]", _Order.OrderId.ToString());
and then update it as below

Code: Select all

url = url.Replace("[OrderNumber]", _Order.OrderNumber.ToString());
Save it and then test it again.

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Affiliate Integration- passing OrderID not OrderNumber

Post by Brewhaus » Mon Oct 26, 2009 8:41 am

Thank you, Mazhar. That change makes complete sense- we will test it out.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

Post Reply