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
  #81  
Old 03-29-2008, 03:01 PM
  tam10's Avatar 
tam10 tam10 is offline
 

eXpert
  
Join Date: Mar 2007
Posts: 252
 

Default Re: Recently Viewed Mod

Ok
I replaced dingbats_categorie.gif with dingbats_a.gif, now it's ok.
Now i need to change the color of the words to White. How should i do that?

Tammy
__________________
Tammy
x-cart gold + 4.7.2
x-cart 5.2.10

Reply With Quote
  #82  
Old 03-29-2008, 04:10 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Recently Viewed Mod

Hi Tammy,

Looks like you have a customized menu that is only using labels for the title.

So the first thing you have to do is a create a language label in the admin side and name it lbl_recently_viewed and just place the text 'Recently Viewed' in there.

Then change the last line of code in customer/main/recently_viewed.tpl so it reads like this:

Code:
{include file="menu.tpl" dingbats="dingbats_a.gif" menu_title=$lng.lbl_recently_viewed menu_content=$smarty.capture.menu}

That should work, but if it doesn't, then post your menu.tpl and I'll see how to get this working for you.

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #83  
Old 03-29-2008, 04:31 PM
  tam10's Avatar 
tam10 tam10 is offline
 

eXpert
  
Join Date: Mar 2007
Posts: 252
 

Default Re: Recently Viewed Mod

Thanks MoonDog. It's perfect !!

You've been so helpful and I've learned from you so much today.
I wish i knew as much as you know css etc...

Thank you,

Tammy
__________________
Tammy
x-cart gold + 4.7.2
x-cart 5.2.10

Reply With Quote
  #84  
Old 03-29-2008, 04:49 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Recently Viewed Mod

Tammy,

Thank you for the kind words. I'm glad you got it working.

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #85  
Old 04-08-2008, 02:24 PM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default Re: Recently Viewed Mod

MoonDog, great mod and i am using this mod on x-cart 4.1.3 and does work ok, but when i look at details on another product and then say go back to home, only the recent product shows. I can not get any more than one product showing at a time, even if i view 10 products, i only just show the last product viewed.

I have followed your code 100%, just changed the bit at the botom of the skin1/main/product.tpl file which is:

Code:
<script type="text/javascript"> prodImage='{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x|default:$config.Appearance.thumbnail_width image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url alt=$product.fulldescr|replace:"":"" id="product_thumbnail" type="P"}'; prodName='<{$product.product}>'; var p0=('<br/><a href="'+document.URL+'">'+prodImage+'<br/>{$product.product}</a><br/><a href="{$http_location}/home.php?cat={$cat}"><b>{$current_category.category}</b></a><br/>ё{$product.taxed_price}<br/>'); </script>

The extra code is to use my default x and y thumbnail settings in the admin section and to also give a full description of the product when you place your mouse over the image.

Anyway back to the problem, i think that some how its resetting its cookies, every time i look at another detail description, the box is then blank (nothing written or no picture) then go to another product and then the last item i looked at is shown and so on. So i only see one product only not 4 products no matter how many times i go to other detail descriptions, only the last one shows.

Any ideas please ?

Oh you can find this at http://www.theshisha.com/shopcart/home.php and try this for yourself and see what i mean.

The recent view box is to the right and under the product review box.
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
  #86  
Old 04-25-2008, 12:39 AM
 
Mee Mee is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 49
 

Default Re: Recently Viewed Mod

Thanks MoonDOg.
It's great.
__________________
4.1.9 gold
linux sever
Reply With Quote
  #87  
Old 04-28-2008, 12:31 PM
 
Brow Brow is offline
 

Advanced Member
  
Join Date: Nov 2006
Location: Indiana
Posts: 26
 

Default Re: Recently Viewed Mod

Very nice. I have been looking for something like this.
Reply With Quote
  #88  
Old 04-29-2008, 05:44 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default Re: Recently Viewed Mod

um MoonDog, you're an animal dude! Awesome mod.

3 cool requests that add value to this mod:

1. How do I use language labels instead of hardcoding the "Recently view" ?
Where? and How?

2. Instead of an empty Recently View box, NOT show it at all until there's been some products view. "if products have been viewed, show "Recently View" box, else, dont show it yet". How do I do that?

3. ONLY show the "recently view" box...in the product details pages.
That way I dont have the box everywhere on the site.
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #89  
Old 05-06-2008, 04:29 AM
 
MrSoft MrSoft is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 75
 

Default Re: Recently Viewed Mod

I am having a little trouble with this mod, instead of "ё" I get "О©╫".

You can see the problem here www.tilehq.co.uk

Any ideas how to fix?

Thanks,

Colin
__________________
X-Cart Gold V4.1.9
Reply With Quote
  #90  
Old 05-06-2008, 08:21 AM
 
Mee Mee is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 49
 

Default Re: Recently Viewed Mod

My customer wants to have more than 4. He wants show 2 items and make up, down button to see others to scrool.

Does anyone can help me?
I tryed but I can't.

Help me please.

Thank you all your help.
__________________
4.1.9 gold
linux sever
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 02:57 AM.

   

 
X-Cart forums © 2001-2020