Data-Diggers.com | Zen Cart Optimization, Performance and A/B Split Testing Modules for Zen Cart

Mar/10

7

User Tracking Interface v1.1

It’s mainly bug fix release. Update is STRONGLY recommended.

Changelog:

  • Changed file name of includes/auto_loaders/config.utis.php.php to includes/auto_loaders/config.utis.php
  • uti_install.sql missed some inserts
  • Fix to: [DELETE FROM uti_attributes WHERE uti_row_id = ? AND name IN () ]
  • UTI tables now use DB_PREFIX

You can download it from: Current version of UTI.

RSS Feed

5 Comments for User Tracking Interface v1.1

David | March 9, 2010 at 21:51

Instead of displaying the contents of the cookie in sideboxes, how can you display it at the bottom of the page, right above the footer area?

Author comment by admin | March 10, 2010 at 13:03

UTI does not store any information in cookies besides UTI session ids. All information that is gathered by UTI is stored in store database.

Now, back to your question. Let’s assume that You want to display list of recently viewed products. Edit includes/templates/YOUR_TEMPLATE/common/tpl_footer.php (or copy it from template_default if Your template does not yet have this file). Put following code where You want to display recently viewed products:

$content = “”;
foreach ($recently_viewed_products as $rpid) {
$rpprice = zen_get_products_display_price($rpid);;
$content .= ”;
//$content .= zen_image(DIR_WS_IMAGES . zen_get_products_image($rpid), $rpid, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$img = $db->Execute(“SELECT * FROM ” . TABLE_PRODUCTS . ” WHERE products_id = ‘” . (int)$rpid . “‘”);
$img = $img->fields['products_image'];
$content .= ‘‘ . zen_image(DIR_WS_IMAGES . $img, $rpid, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$content .= ” . zen_get_products_name($rpid) . ‘
‘;
$content .= ” . $rpprice . ”;
$content .= ”;
}
echo $content;

You’ll have to format the divs with css – I really suck at HTML&CSS. If You wish to not show sidebox You’ll have to either comment out whole includes/templates/YOUR_TAMPLATE/sideboxes/tpl_recently_viewed_products.php file. Disabling the sidebox in Admin panel will also disable logic behind it and $recently_viewed_products variable will be empty then.

David | April 7, 2010 at 21:02

Sorry about the long delay in response. Thanks for the code, however, when I put it in my includes/templates/YOUR_TEMPLATE/common/tpl_footer.php file – it breaks the page (the whole footer area gets cut off.

I did place tags around the code. Any suggestions. Thanks again.

David | May 17, 2010 at 20:19

As you asked for on the forum post, I left the code in my file, just commented it out.


Execute(”SELECT * FROM ” . TABLE_PRODUCTS . ” WHERE products_id = ‘” . (int)$rpid . “‘”);
$img = $img->fields['products_image'];
$content .= ‘‘ . zen_image(DIR_WS_IMAGES . $img, $rpid, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$content .= ” . zen_get_products_name($rpid) . ‘‘;
$content .= ” . $rpprice . ”;
$content .= ”};
}
echo $content;*/ ?>

David | May 17, 2010 at 20:22

I left the code in my tpl_footer, just commented it out. First post, some of the code got cut off.

/*$content = “”;
foreach ($recently_viewed_products as $rpid) {
$rpprice = zen_get_products_display_price($rpid);
$content .= ”;
$content .= zen_image(DIR_WS_IMAGES . zen_get_products_image($rpid), $rpid, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$img = $db->Execute(”SELECT * FROM ” . TABLE_PRODUCTS . ” WHERE products_id = ‘” . (int)$rpid . “‘”);
$img = $img->fields['products_image'];
$content .= ‘‘ . zen_image(DIR_WS_IMAGES . $img, $rpid, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$content .= ” . zen_get_products_name($rpid) . ‘‘;
$content .= ” . $rpprice . ”;
$content .= ”};
}
echo $content;*/

Leave a comment!

Spam protection by WP Captcha-Free

<<

>>

Find it!

Theme Design by devolux.org