X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Recently Viewed Mod (https://forum.x-cart.com/showthread.php?t=36753)

lash 11-06-2009 09:11 PM

Re: Recently Viewed Mod
 
Quote:

Originally Posted by TheWrongGrape
Don't forget to put the semicolon (;) back in at the end of the new code.


Yeah I tried that before, but it seems not to work for me. Also now the whole mod seems to be off. It stopped showing the recently viewed and I still get the security warnings. The mod seems to be a bit unstable even if I go back to the original changes. Though I really appreciate you coming with suggestions. It all worked so fine on my 4.1.9 except in the secure mode.

shipmerchant 02-13-2010 05:23 PM

Re: Recently Viewed Mod
 
First of all thank moondog for this great mod it has worked great for me in the previous version of Xcart. Recently I have been working on V4.3.1 cart and noticed that my thumbnail images would not appear using the previous code. After tinkering with it for a long while and searching other post in various areas, I seem to have finally figured out on how to get my thumbnails to appear once again.

OK, here is the code for adding the thumbnails once again to this great mod by MoonDog. All else stays the same from the first post

http://forum.x-cart.com/showthread.php?t=36753&highlight=recently+viewed

Entered this code in the product.tpl down at the bottom, to get my thumbnail image to appear in V4.3.1.

Line " prodImage="

Code:


{*recently viewed mod*}
<script type="text/javascript">

prodImage='<img src="{$http_location}/image.php?id={$product.productid}" width="65">';

prodName='<{$product.product}>';
var p0=('<br/><a href="'+document.URL+'">'+prodImage+'<br/>{$product.product}</a><br/>${$product.taxed_price}<br/>');
</script>
{*end*}


Hope this helps some of you, Enjoy

TheWrongGrape 05-13-2010 11:32 AM

Re: Recently Viewed Mod
 
Quote:

Originally Posted by shipmerchant
First of all thank moondog for this great mod it has worked great for me in the previous version of Xcart. Recently I have been working on V4.3.1 cart and noticed that my thumbnail images would not appear using the previous code. After tinkering with it for a long while and searching other post in various areas, I seem to have finally figured out on how to get my thumbnails to appear once again.

OK, here is the code for adding the thumbnails once again to this great mod by MoonDog. All else stays the same from the first post

http://forum.x-cart.com/showthread.php?t=36753&highlight=recently+viewed

Entered this code in the product.tpl down at the bottom, to get my thumbnail image to appear in V4.3.1.

Line " prodImage="

Code:


{*recently viewed mod*}
<script type="text/javascript">

prodImage='<img src="{$http_location}/image.php?id={$product.productid}" width="65">';

prodName='<{$product.product}>';
var p0=('<br/><a href="'+document.URL+'">'+prodImage+'<br/>{$product.product}</a><br/>${$product.taxed_price}<br/>');
</script>
{*end*}


Hope this helps some of you, Enjoy


I don't know what's going on for me. Had this working fine in other versions, but for me in 4.3.1 the variables are not getting parsed. My page is literally printing {$product.product} instead of replacing that variable with the actual product name. This means that my images don't show up either because the path is all messed up. Any clue what could be going on?

Edit: I know what the problem is, I just don't know how to fix it. The Javascript snippet for product.tpl won't do anything unless I surround it with {literal}{/literal} tags. However, doing so means that the smarty tags inside the Javascript aren't recognized as smarty and aren't parsed. I've tried closing and opening up the literal tags before and after the smarty tags, but no luck. Tried doing the same with recently_viewed.tpl in case that played a hand with no luck also. Very frustrating!

Vacman 07-11-2010 01:37 PM

Re: Recently Viewed Mod
 
Bump


All times are GMT -8. The time now is 12:58 AM.

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