| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Recently Viewed Mod | ||||
|
|
Thread Tools | Search this Thread |
#101
|
|||||||||
|
|||||||||
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" |
|||||||||
#102
|
|||||||||
|
|||||||||
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 -------------------------------------- |
|||||||||
#103
|
|||||||||
|
|||||||||
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 -------------------------------------- |
|||||||||
#104
|
|||||||
|
|||||||
Re: Recently Viewed Mod
Quote:
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 - |
|||||||
#105
|
|||||||||
|
|||||||||
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 -------------------------------------- |
|||||||||
#106
|
|||||||||
|
|||||||||
Re: Recently Viewed Mod
jeanne
suggested the following code but it omits the images Code:
i was wondering if you could use something similar to this for the images but specify https_location?
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#107
|
|||||||
|
|||||||
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.
|
|||||||
#108
|
|||||||
|
|||||||
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 |
|||||||
#109
|
|||||||||
|
|||||||||
Re: Recently Viewed Mod
ok, i'm still having the security warning in IE. i tried this code...
Code:
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#110
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|