CybrWzrd7 Posted April 20, 2008 Share Posted April 20, 2008 I am looking to see if there is a contribution that would allow you to view in the admin panel under who's online a photo of whatever pages/product the customer is looking at. Ideally all it would do is when you click on a customer / guest in the who's online tool box you would be able to see whatever it is they are looking at very easily(maybe in a screen shot window below). Any input / knowledge appreciated. Thank you in advance. CybrWzrd7 Forget what every body else says about backing up.....take chances. Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2008 Share Posted April 20, 2008 I don't know of a pre-existing contribution but that would be quite easy to code - the exact details of how to do it would depend upon which "who's online" you are using - standard osC or contribution (and version) Link to comment Share on other sites More sharing options...
CybrWzrd7 Posted April 20, 2008 Author Share Posted April 20, 2008 I don't know of a pre-existing contribution but that would be quite easy to code - the exact details of how to do it would depend upon which "who's online" you are using - standard osC or contribution (and version) Using 2.2 MS 2 standard. I could probably figure it out in a couple of hours(getting better) What about if they were just viewing within a category and not actually looking at a product? Outside of memorizing all of your category id's.....well i guess you could make it show category title just as easy also. Hrm..... I saw a really cool java script that once you rolled over a product title it would pop-up a moving image of that oscommerce product. that could probably be added to the who's online. Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2008 Share Posted April 20, 2008 try using http://addons.oscommerce.com/info/824 (use v3.4) - doesn't have pics but will display the product / category names so you know what people are looking at Link to comment Share on other sites More sharing options...
CybrWzrd7 Posted April 20, 2008 Author Share Posted April 20, 2008 try using http://addons.oscommerce.com/info/824 (use v3.4) - doesn't have pics but will display the product / category names so you know what people are looking at I suppose this could also be modified a little to show the photo also..... I saw this add on and was thinking about trying it out cause it looks really cool. Do you know anything about google analytics with os commerce and why it's awesome with everything up to categories within categories. Another question that you might be able to help with.(I'm guessing that this is a cookies issue) If you've never been to the site and the first thing you do when you make it to catalog/index.php is click anything in the header or related to the shopping cart it add's ?cPath=XX&oscid=lkhjlkhjgkljfdlkgjlkdsjwhatever . but if you click anything category before viewing those account / contents / checkout pages it will not add that to the link. Thanks for your input BTW Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2008 Share Posted April 20, 2008 http://addons.oscommerce.com/info/3756 for google analytics Regarding the &oscsid - it's a sessions/cookie thing - just it's way of making sure the session is properly created andkept - as long as it disappears after the first click or two then don't worry about it (just make sure you have disable spider sessions set to true in your admin that's all!!) Link to comment Share on other sites More sharing options...
CybrWzrd7 Posted April 20, 2008 Author Share Posted April 20, 2008 http://addons.oscommerce.com/info/3756 for google analytics Regarding the &oscsid - it's a sessions/cookie thing - just it's way of making sure the session is properly created andkept - as long as it disappears after the first click or two then don't worry about it (just make sure you have disable spider sessions set to true in your admin that's all!!) you are just slick. the reason why I asked about the oscid thing is I have the pages header file draw from the ?cPath value but for some reason when it adds that the cPath value gets lost.... I have been looking for and trying to figure out where that oscid value gets added so i can modify the $cPath link. the default cPath page header is ugly and mis-navigates the customer. The question is how many people go straight to those pages. It is important to stay within the header navigation on my site because of a secret way of directing the customer to view specific categories only. Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2008 Share Posted April 20, 2008 how are you adding the cPath to the link? To correctly generate links with the oscid you need to use the following format: <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=123'); ?>">My Category Link</a> Link to comment Share on other sites More sharing options...
CybrWzrd7 Posted April 20, 2008 Author Share Posted April 20, 2008 how are you adding the cPath to the link? To correctly generate links with the oscid you need to use the following format: <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=123'); ?>">My Category Link</a> that's what I am doing except for this particular instance i cannot find where oscid is being generated. and the oscid is setting itself first. so my page link looks like index.php?oscid=kjhegkhkjd?cPath=XXXX instead of &cPath=XXXX so it simply is not working. so..... in theory it should be somewhere on the header file for what I am looking for right? or would it come from require application_top.php I've looked around and can't figure it out, so i am guessing it shares or draws the ? from something. I'm getting better with php as i go along..... and i've learned that FILENAME_DEFAULT, produces the ? in the address link but when i was teaching myself this for some reason or another I figured out FILENAME_DEFAULT . '?cPath=' . $cPath .(or), (thanks for the help by the way..... this is fun) I've tried editing several different values after FILENAME_XXXXXX, 'cPath=' and many variations... i just can't figure out where the oscid one is. Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2008 Share Posted April 20, 2008 FILENAME_DEFAULT is a constant which is set to 'index.php' - take a look in includes/filenames.php I think the reason you are getting two ? symbols is becuase you are using a . instead of a , in the function call above. - the tep_href_link function (in includes/functions/html_output.php) adds the ? or & for you, it also adds the oscid when needed too - it'll only add it if it's not stored in a cookie. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.