
Originally Posted by
DrByte
Have you looked at any of the code used by Google Analytics which does essentially the same thing?
Thanks for the good idea DrByte...
but, holy crap...that code is way beyond me, it's huge!
I don't know enough about the database to decipher what I need...
but it does remind me of my past tracking experience with an 'eCommerceTemplates' cart (using StuffedTracker).
I got help with that long ago and it was working properly...
perhaps someone could take a look at the code below and fill in the ZenCart specific info...?
It should be laid out quite obviously, but there's an added PHP script inserted that does something with the database...
I just need someone who's familiar with ZenCart functions, database queries, etc.
Code:
<script type="text/javascript">
var nsAmp=unescape('%26');
var nsSiteId=1;
var nsTrackPath='https://www.domain.com/tracker/index.php?sc=track'+nsAmp+'action=sale'+nsAmp+'';
var nsTrackMode='sale';
var nsCode=1;
var nsCost='<?php print $ordTotal?>';
var nsOrderId='<?php print $ordID?>';
var nsOrderInfo='<?php print $ordName?>';
var nsOrderItems = new Array();
//nsOrderItems.push('{{product}}{{10}}{{1}}');
<?php
$sSQL = "SELECT cartProdName,cartProdPrice,cartQuantity FROM cart INNER JOIN products ON cart.cartProdId=products.pID WHERE cartOrderID='" . mysql_escape_string($sorderid) . "'";
$result = mysql_query($sSQL) or print(mysql_error());
if(mysql_num_rows($result) > 0){
while($rs = mysql_fetch_assoc($result)){
?>
nsOrderItems.push('{{<?php print $rs["cartProdName"]; ?>}}{{<?php print $ordTotal ?>}}{{<?php print $rs["cartQuantity"]; ?>}}');
<?php
}
}
mysql_free_result($result);
?>
</script>
The $20 offer still stands...
we really need to get this done, it's the last major issue stopping us from launching (I think
).
I really wish I could love Google Analytics (and make my life easy with a mod)...
but StuffedTracker simply provides a faster tool...plus my business data stays private.
Anyway, help would be financially appreciated...
but if not, can anyone suggest a ZenCart programmer that's capable of doing good work?
I'm a web/graphic designer, but I could really use a programmer that's interested in contract work for custom mods,
as well as any future problems we may run into. We're happy to pay for help.
thx.