X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing and adding new features (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Recently Viewed Mod (https://forum.x-cart.com/showthread.php?t=36753)

Freakmode 05-19-2008 11:51 AM

Re: Recently Viewed Mod
Hi Moondog

Is there a secret to getting this to work with Telafirma Dynamic images?

I show no thumbnails for some reason

chealyte 05-21-2008 01:06 AM

Re: Recently Viewed Mod
This part some how it is still use " products image " to show in list. How to make it use " Thumbnail " picture ?? some how many i try it still pink to product images and resize it .. which seem this quick fix wont work well it will slow down the loading time .. cuz of lage images.

Example : .. the image show in recently viewed follow by this kind of url " http://tinybeeonline.com/images/P/SCAN0018.jpg " .. i think it should show as " http://tinybeeonline.com/images/T/SCAN0018.jpg " .. i am not sure what to change to make this happen i try a lot of way still not work .. i change the type="P" to type="T" still not work ..


<script type="text/javascript">
prodImage='{include file="product_thumbnail.tpl" productid=$product.productid image_x=80 image_y=0 product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}';
var p0=('<br/><a href="'+document.URL+'">'+prodImage+'<br/>{$product.product}</a><br/>${$product.taxed_price}<br/>');

Reguarding my post .. i just edite to add some info to it ..

I think i figure out why it does not show " Thumbnail " because the script that wrote cookies is on products.tpl .. i think it should be move to products list ( such as recomand products , products list when we click on catagories , related products .. ) those are show Thumbnail and we can get link from it post in cookies and display it out .. i am not sure how to this .. also we should do some check .. see if the products we view now already add to recent view cookies or not if not add new one else do not add ..

Cyber Matrix 05-21-2008 05:25 PM

Re: Recently Viewed Mod
Is there a way to call the head js instead of showing all this in the header? I have tried a few things and it does not seem to work.

<script type="text/javascript">
 function setCookie(name, value) {
 var today = new Date()
 var expires = new Date()
 expires.setTime(today.getTime() + 1000*60*60*24*30)
 document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() +";path=/"
 function getCookie(Name) {
 var search = Name + "="
 if(document.cookie.length > 0) {
 offset = document.cookie.indexOf(search)
 if(offset != -1) {
 offset += search.length
 end = document.cookie.indexOf(";", offset)
 if(end == -1) end = document.cookie.length
 return unescape(document.cookie.substring(offset, end))}
 else return ""

peterstagg 06-23-2008 01:49 PM

Re: Recently Viewed Mod
Hey Moondog
This is a really nice mod.
Thanks heaps!
It fits nicely with what I want and works smoothly.

I have a tabbed product menu and modified the menu and dialog templates and it does not seem to cause any problems. Are people still having those issues?

I also seemed to get it to work left side without any modifications that you suggested in #42, have you modified the code recently?


neaisha 06-26-2008 04:48 PM

Re: Recently Viewed Mod
i like this mod too and kudos to the person who developed it. i'm having an issue with the size of the images.

i had previously edited product_thumbnail_cust.tpl so that all of my thumbnail images would be a specific height.

with this mod, sometimes the images display correctly in the left column. other times, it displays the full size image...but it's random. any ideas as to why? i encounter it primarily in IE7.

Cyber Matrix 06-27-2008 04:27 AM

Re: Recently Viewed Mod
I believe the size changes are in the css file. Looking back at this thread it shows to put this in you css

.recently {text-align:center;}
.recently img {text-decoration:none;width:80px;height:auto;}
.recently a{text-decoration:none;color:black;}

See the 2nd line change the size there.

neaisha 06-27-2008 04:31 AM

Re: Recently Viewed Mod
yep...i was missing a ; in the skin. thanks

neaisha 07-10-2008 11:28 AM

Re: Recently Viewed Mod
my thumbnails aren't displaying securely. anyone know how to make sure the images show in https so that when a customer is logged in they wont get the security warning?

thefizix 07-12-2008 12:01 PM

Re: Recently Viewed Mod

I added everything you said and I still cant get it to work on my site. I am running version 4.1.9. My site is www.thefizix.com/store. thanks

neaisha 07-16-2008 10:25 AM

Re: Recently Viewed Mod
anyone figure out how to secure the images yet?

All times are GMT -8. The time now is 07:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.