Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Recently Viewed Mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #91  
Old 05-19-2008, 11:51 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default 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
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #92  
Old 05-21-2008, 01:06 AM
 
chealyte chealyte is offline
 

Member
  
Join Date: Jun 2005
Posts: 22
 

Default 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 ..

Code:
<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"}'; prodName='<{$product.product}>'; var p0=('<br/><a href="'+document.URL+'">'+prodImage+'<br/>{$product.product}</a><br/>${$product.taxed_price}<br/>'); </script>

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 ..
__________________
http://tinybeeonline.com

X-Cart Gold V 4.1.9
Reply With Quote
  #93  
Old 05-21-2008, 05:25 PM
  Cyber Matrix's Avatar 
Cyber Matrix Cyber Matrix is offline
 

eXpert
  
Join Date: Dec 2006
Posts: 199
 

Default 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.
Code:
{literal} <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 "" } } </script> {/literal}
__________________
Cyber Matrix
-------------------
X-Cart 4.1.9
Reply With Quote
  #94  
Old 06-23-2008, 01:49 PM
  peterstagg's Avatar 
peterstagg peterstagg is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 85
 

Default 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?

Cheers
peter
__________________
Peter
"http://www.memoryoverload.com"

Reply With Quote
  #95  
Old 06-26-2008, 04:48 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default 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.
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #96  
Old 06-27-2008, 04:27 AM
  Cyber Matrix's Avatar 
Cyber Matrix Cyber Matrix is offline
 

eXpert
  
Join Date: Dec 2006
Posts: 199
 

Default 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
Code:
.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.
__________________
Cyber Matrix
-------------------
X-Cart 4.1.9
Reply With Quote
  #97  
Old 06-27-2008, 04:31 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Recently Viewed Mod

yep...i was missing a ; in the skin. thanks
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #98  
Old 07-10-2008, 11:28 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default 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?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #99  
Old 07-12-2008, 12:01 PM
 
thefizix thefizix is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: San Deezy
Posts: 46
 

Default Re: Recently Viewed Mod

MoonDog,

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
__________________
Conrad 'Rick' Alberto
San Diego, CA
www.TheFizix.com

X-Cart version 4.1.9
Reply With Quote
  #100  
Old 07-16-2008, 10:25 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Recently Viewed Mod

anyone figure out how to secure the images yet?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:26 AM.

   

 
X-Cart forums © 2001-2020