X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing and adding new features (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Recently Viewed Mod (https://forum.x-cart.com/showthread.php?t=36753)

tam10 03-29-2008 03:01 PM

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

MoonDog 03-29-2008 04:10 PM

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 -

tam10 03-29-2008 04:31 PM

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

MoonDog 03-29-2008 04:49 PM

Re: Recently Viewed Mod
 
Tammy,

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

- MoonDog -

ShishaPipeUK 04-08-2008 02:24 PM

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.

Mee 04-25-2008 12:39 AM

Re: Recently Viewed Mod
 
Thanks MoonDOg.
It's great.

Brow 04-28-2008 12:31 PM

Re: Recently Viewed Mod
 
Very nice. I have been looking for something like this. :)

ecommerce 04-29-2008 05:44 PM

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.

MrSoft 05-06-2008 04:29 AM

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

Mee 05-06-2008 08:21 AM

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.


All times are GMT -8. The time now is 04:18 AM.

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