I installed JROX at the some Time I upgraded from 1.1 to 1.2, so maybe that is where my problem is too.
I installed JROX at the some Time I upgraded from 1.1 to 1.2, so maybe that is where my problem is too.
I have seen in a number of instances where the installation of JAM (creating a new "footer" file for the checkout success page) causes problems with the code that is inserted during Google Analytics install which goes on the "tpl_main_page.php" page.
This might be something to look into with the JROX code as well.
To resolve this I have moved users JAM code to the tpl_main_page.php file and added an if then statement as such:
<?php
if ($_GET['main_page']=="checkout_success") { // If this is the checkout page, then insert the affiliate tracking code.
##########################################
## START JAM INTEGRATION WITH ZEN CART ##
## ZC Integration code by DrByte 8/2006 ##
##########################################
if ((int)$orders_id > 0) {
$JAM = $db->Execute("select class, value from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders_id."' AND class in ('ot_coupon', 'ot_subtotal', 'ot_group_pricing')");
while (!$JAM->EOF) {
switch ($JAM->fields['class']) {
case 'ot_subtotal':
$order_subtotal = $JAM->fields['value'];
break;
case 'ot_coupon':
$coupon_amount = $JAM->fields['value'];
break;
case 'ot_group_pricing':
$group_pricing_amount = $JAM->fields['value'];
break;
}
$JAM->MoveNext();
}
$commissionable_order = ($order_subtotal - $coupon_amount - $group_pricing_amount);
$commissionable_order = number_format($commissionable_order,2,'.','');
echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://www.someurlhere.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>
</table>";
}
#######################################
## END JAM INTEGRATION WITH ZEN CART ##
#######################################
} // End if to determine if this is the checkout page
?>
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
--------------
Can you please be clear on this, I am facing the same problem, no conversions showing after JROX is installed , do we remove the includes/templates/xxx/checkout_success folder and replace it with the above code, also the above codes seems incorrect because it only has the closing the tag </table> , we have the foll JROX code,
<?php
} // flag_disable_footer
##########################################
## START JAM INTEGRATION WITH ZEN CART ##
## ZC Integration code by DrByte 8/2006 ##
##########################################
if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) {
if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {
$_SESSION['affiliate_order_id'] = $zv_orders_id;
$commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', '');
echo '<script language="javascript" type="text/javascript" src="http://www.yoururl.com/affiliates/sale.php?amount=' . $commissionable_order_formatted . '&trans_id=' . $order_summary['order_number'] . '"></script>';
}
}
#######################################
## END JAM INTEGRATION WITH ZEN CART ##
#######################################
?>
Please post a complete set of codes to be replaced.
Hi I need some assistance. When Installing the Google analytics i do not have a
tpl_main_page.php file. instead i have two files tpl_header.php and html_header.php. where do i enter the code:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
thanks
I have a problem with Google Analytics, I upgraded and I got this message.
1062 Duplicate entry 'GOOGLE_URCHINTRACKING_ACTIVE' for key 2
in:
[INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Use Older "urchin.js" Tracking Code', 'GOOGLE_URCHINTRACKING_ACTIVE', 'No', 'This enables you to select which type of tracking code to use (either the older "urchin.js" version or the newer "ga.js" version. By default the system now uses the newer "ga.js" code.
I then uninstalled it, and then installed it again over writing all the old files.
but now there are not configure files in the admin. This is all that shows in the admin.
Google Analytics Configuration
Title Value Action
E-Commerce Engine Copyright © 2003-2008 Zen Cart™
Zen Cart v1.3.7/v1.3.7
bestvarietyshop.com
can someone tell me what went wrong.
That error means that during your uninstall, you either did not uninstall it correctly, or something went wrong during the uninstall.
If you are upgrading (which you will not be now .. it sounds like you'll need to install from scratch since you removed some files) you need to use the upgrade sql patch (not the new install patch).
Using the wrong patch might cause that error.
I would suggest to try to uninstall again, then reinstall.
Post the results here and we'll see where we get.
Thanks!
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Quick question regarding urchin. Is ga.js working correctly yet? I have read back and the last mention I saw of the issue was a couple months old. Has there been any information released about whether it is working properly yet?
Thank you
You should have this file. It is a core file. If you do not see it in your custom folder, then you can copy the version found in the "/includes/templates/template_default/common/ directory and paste it into your custom directory to alter (as such /includes/templates/your custom template/common
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Hi econcepts,
I would be really grateful if you could explain what this means. Since I installed JROX, my site is also no longer showing any e-commerce data, though the visits and funnel visualisation show the correct data being fed through.
What did you mean by "moving users JAM code"? Is it possible to solve this just by moving the google_analytics.php to the custom checkout_success folder?
Many thanks,
Edwin
my greener home. Save money and save the environment.