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 > Changing and adding new features
 
Thread Tools Search this Thread
  #101  
Old 07-16-2008, 12:45 PM
  peterstagg's Avatar 
peterstagg peterstagg is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 85
 

Default Re: Recently Viewed Mod

Neaisha

It goes in the script that you have to put in the product.tpl file


<script type="text/javascript">
prodImage='{include file="product_thumbnail.tpl" productid=$product.productid image_x=25 product=$product.product type="P" tmbn_url=$product.tmbn_url id="product_thumbnail" }';

prodName='<{$product.product}>';
var p0=('<table><tr><td align = left><a href="'+document.URL+'">'+prodImage+'</a></td><td width = 100%><b><a href="'+document.URL+'">{$product.product}</b></a><br/>ё{$product.taxed_price}</td></tr></table>');
</script>

you set the image_x to the size you want.

see my dev site to view the 25px size images I use

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

Reply With Quote
  #102  
Old 07-16-2008, 03:23 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Recently Viewed Mod

hey peterstagg,

no, i wanted to know how to secure the images. right now in IE7, this code displays the images in http vs https. i wanted to know if there's a way to may sure they're displayed securely?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #103  
Old 07-16-2008, 03:49 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Recently Viewed Mod

took me forever to figure out where i was getting the security message but it's on this page...

https://www.mysite.com/xcart/cart.php?mode=checkout

the thumbnails are the only images in http not https and you get the popup in IE as a result.

i think it has to do with the cookie. given that the images are initially viewed in http mode, they are therefore going to display insecurely. is there anyway to fix this?

hmm...so in the code this is how the thumbnail is being called - prodImage='<img src="{$product.tmbn_url}"/>'; is there any way to make sure that the image is either always secure OR use if/then statements?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #104  
Old 08-06-2008, 03:59 AM
 
William Lam William Lam is offline
 

Member
  
Join Date: Aug 2006
Posts: 18
 

Default Re: Recently Viewed Mod

Quote:
Originally Posted by neaisha
took me forever to figure out where i was getting the security message but it's on this page...

https://www.mysite.com/xcart/cart.php?mode=checkout

the thumbnails are the only images in http not https and you get the popup in IE as a result.

i think it has to do with the cookie. given that the images are initially viewed in http mode, they are therefore going to display insecurely. is there anyway to fix this?

hmm...so in the code this is how the thumbnail is being called - prodImage='<img src="{$product.tmbn_url}"/>'; is there any way to make sure that the image is either always secure OR use if/then statements?

Neaisha,

Have you figured this one out yet, im dying to know how to resolve this.
__________________
William Lam
X-Cart Gold 4.1.9 - Upgraded
X-Cart Gold 4.2.2 - Upgraded
X-Cart Gold 4.3.2 - Live
Smart Search -
7Dana Colour Skin -
CDSEO PRO -
Ultimate Mini Cart -
Reply With Quote
  #105  
Old 08-06-2008, 01:30 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Recently Viewed Mod

unfortunately nope. i love the mod but this could be one of those things that sorta makes me want to remove it b/c it could impact sales.
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #106  
Old 08-19-2008, 08:09 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Recently Viewed Mod

jeanne

suggested the following code but it omits the images

Code:
{if $cat le '0'} <script type="text/javascript"> var p0=('<a href="{$http_location}/manufacturers.php?manufacturerid={$manufacturer.ma nufacturerid}"><br/><b>{section name=position loop=$location step=-1}{$location[position].0|escape}{if not %position.last%} - {/if}{/section}</b></a><br /><br />'); </script> {else} <script type="text/javascript"> var p0=('<a href="{$http_location}/home.php?cat={$cat}"><br/><b>{section name=position loop=$location step=-1}{$location[position].0|escape}{if not %position.last%} - {/if}{/section}</b></a><br /><br />'); </script> {/if}

i was wondering if you could use something similar to this for the images but specify https_location?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #107  
Old 08-24-2008, 09:54 PM
 
ianfranklin ianfranklin is offline
 

Member
  
Join Date: Oct 2007
Posts: 10
 

Default Re: Recently Viewed Mod

Is there a way I can call the thumbnail image instead of the product image? I don't want to have it re-size the images because they look grainy, especially in IE.
__________________
Ian Franklin
V 4.1.9
http://www.installeroasis.com
Reply With Quote
  #108  
Old 09-23-2008, 08:35 PM
 
gotpump gotpump is offline
 

eXpert
  
Join Date: Aug 2008
Posts: 272
 

Default Re: Recently Viewed Mod

The only issue I'm having is when there is only 1 picture displayed. Below that pictures price it displays:

undefinedundefinedundefined.

Any suggestions?
Did I miss Something?
__________________
X-Cart DB Version: 5
Reply With Quote
  #109  
Old 10-20-2008, 08:27 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Recently Viewed Mod

ok, i'm still having the security warning in IE. i tried this code...

Code:
{if $current_location eq $http_location} {include file="customer/main/recently_viewed.tpl"} {else}&nbsp;{/if}
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #110  
Old 10-29-2008, 05:43 AM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: Recently Viewed Mod

grrrr.... I had this working perfectly before I installed newest version of xcart and now when I go to implement this mod I can't get my images to appear.

Any ideas? I do store them in file system and not database like I see mentioned earlier as a possible problem.
__________________
xcart ver. 4.1.11 gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


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 03:36 AM.

   

 
X-Cart forums © 2001-2018