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
  #151  
Old 11-06-2009, 09:11 PM
 
lash lash is offline
 

Senior Member
  
Join Date: Oct 2006
Posts: 138
 

Default 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.
__________________
4.1.9
www.lash.se
Reply With Quote
  #152  
Old 02-13-2010, 05:23 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Thumbs up 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
__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
Reply With Quote
  #153  
Old 05-13-2010, 11:32 AM
 
TheWrongGrape TheWrongGrape is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Los Angeles, CA
Posts: 68
 

Unhappy 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!
Reply With Quote
  #154  
Old 07-11-2010, 01:37 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: Recently Viewed Mod

Bump
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
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 06:34 PM.

   

 
X-Cart forums © 2001-2018