You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I'm trying to use a third-party affiliate system. Could you tell me what to include to track the product id in a confirmed order - assuming this is possible. Thanks
var TotalCost="(CGIVAR)tracking_subtotal(/CGIVAR)";
var OrderID="(CGIVAR)tracking_id(/CGIVAR)";
var ProductID="";
Offline
Your question looks like it deal with ccp5.1 as what you posted is pearl variables used there. You need to ask your question in the forum for 5.1 as people looking in this forum are dealing with ccp6 and do not have those variables in use and will not be able to answer your question.
John
Last edited by dh783 (12-04-2008 07:48:02)
Offline
Not possible, since an order may have more than one product. Therefore, you couldn't make one variable with the name of the product - there would be an unknown number of variables depending on how many things were ordered. So as it stands now, the product ids are not loaded intp variables at the completion of the checkout.
Offline
Thanks for responses. Most helpful. I appreciate the problem with multiple product ids. I thought there might be a way to capture the individual product ids in a multiple order. But obviously not. As for the code, I'm running ccp6 and the code I referred to was supplied by the third-party supplier. Could you confirm that
var TotalCost="(CGIVAR)tracking_subtotal(/CGIVAR)";
var OrderID="(CGIVAR)tracking_id(/CGIVAR)";
translates in ccp6 to
var TotalCost="(CGIVAR)$order['ordertotal'](/CGIVAR)";
var OrderID="(CGIVAR)$order['id'](/CGIVAR)";
Thanks again.
Offline
That I cannot confirm, since I am not intimately acquainted with version 6. I will however move the post to the 6.0 forum so that it can be answered by someone there.
Offline
The answer to whether or not those might be the correct variables depends on where you're trying to use them.
Offline
Thanks Dave. I clearly need to do a bit more research on this. Fortunately a new version of the affiliate software has been released that provides the code for ccp6 so I think I shall be OK.
Offline