econcepts:
Just submitted a new 1.2.4 version of this mod that includes a fix for the popup window issue some have experienced.
If you have 1.2.3 version you do not need to upload any files. All you have to do is take the following action to remedy the situation.
Open the file "html_header.php" file from your template directory 'common' folder (making sure you have the proper location for the template you are using if custom.)
- Once opened, find the section of code that looks like this (usually just before the closing </HEAD> tag):
Find this:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
And change to this:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_shipping_estimator')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>
That should correct the issue. If you find that any other pages are causing the same issue (I think I got them all) just add that to the array shown here and it will eliminate the problem on those pages.)
If you can' wait for the new version to be activated in the Zen Cart downloads section you can get the newest version from the following link right now:
http://www.zencartoptimization.com/downloads/
Post any issues in this forum.
Thanks for this fix, was a bit boggled by this. I know this post was a while ago but I have made one addition to a popup which was not included and fixed the space in the wordings. I shall highlight the addition in bold.
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,popup_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popup_shipping_estimator,[B]info_shopping_cart[/B]')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>