Re: Recently Viewed Mod
So, the "View all" feature, I guess no one know or this can't be done.
|
Re: Recently Viewed Mod
Quote:
|
Re: Recently Viewed Mod
Quote:
Thanks for the code, but the thumbnails is not showing! |
Re: Recently Viewed Mod
This Code Has Problem!
On Some Computer, It's Show The The Recently Viewed With Just The Text And Link. Other Computer Show A Empty Picture Box. And I Don't See A Way It Can Be Fix! |
Re: Recently Viewed Mod
anything to do with
prodImage='<img src="{$product.tmbn_url}"/>'; in customer/main/product.tpl Anyone? |
Re: Recently Viewed Mod
Quote:
Great Mod MoonDog, just added and it works great. Thanks! |
Re: Recently Viewed Mod
|
Re: Recently Viewed Mod
Quote:
do you have 2 colums? added everything from Moon Dogs first post, then added the did recently_viewed_2.tpl from the post I qouted and all worked fine in all the browsers. Did you try this already? The code works, you may want to double check everthing... |
Re: Recently Viewed Mod
Shipmercant, Thanks for your quick reply!
I only have 1 colum and I did add all Moondog's code. I also add the Tabbed content Menu http://forum.x-cart.com/showthread.php?t=11094 and it's not capturing any "Recently Viewed" at all, no matter how many products I view. I hope you understand how stressful for a newbie working on a live store with limited ability and Thanks for you help. |
Re: Recently Viewed Mod
Quote:
Hey! Peter, I have that problem with "Tabbed product menu" and the "recently viewed" I still working on the "TPM", but the RV It's not showing the thumbnails and it's not capturing any recently viewed. Do you have solution for it? Thanks |
Re: Recently Viewed Mod
I re-enter the code that provided and now, only showing 1 recently viewed on home page only, not any where else. Could that be this "RV" code not compatible with the Tabbed Menu code?
Thanks! |
Re: Recently Viewed Mod
Quote:
1 column on the left side correct? If so thats what I have and it worked. I will PM you and lets see what we can come up with, then you could post the solution for others here, but the code is really straight forward. Trust me I know how hard it could be, we all started somewhere and we never stop learning. |
Re: Recently Viewed Mod
Quote:
Rick, very nice site and picture. But it not working for me, how do you fix it? I only have 1 recently viewed show on the home page, but not any other. I followed everything from this forum. It was working without the thumbnails show up after I added the Tabbed Products Menu, the Recently viewed has problem. You can see it at ecitydirect.com, Thanks! |
Re: Recently Viewed Mod
you have a PM
|
Re: Recently Viewed Mod
Quote:
Is it Possible? |
Re: Recently Viewed Mod
Is it possible to call central area just after featured product in 3 column horizontally ( minimum 3 in a row) ? Can anyone help me?
|
Re: Recently Viewed Mod
I try to figure out why, the thumbnail not showing up. I think it has to do with the "skin1/customer/main/product.tpl" this code need to be fix
<script type="text/javascript"> prodImage='<img src="{$product.tmbn_url}"/>'; prodName='<{$product.product}>'; var p0=('<br/><a href="'+document.URL+'">'+prodImage+'<br/>{$product.product}</a><br/>${$product.taxed_price}<br/>'); </script> {* TABS MENU END *} Does anyone know? I have only one recently view show up with no thumbnail. I try try try, but no luck, Someone please help! Thanks! |
Re: Recently Viewed Mod
Is it possible to call in central area in 3 columns format with at least 3 or 4 products horizontally?
Thanks to all. |
Re: Recently Viewed Mod
Does anyone know how to resolve the issue with the thumbnails being called via http when the cart is in https?
|
Re: Recently Viewed Mod
Like others, I was having issues with the mod only showing the last viewed product, not the last 4. I'm guessing it has something to do with the tabbed product menu on my page. So I moved the code for product.tpl to the top of that page instead of the bottom.
I then moved the include file from post #42 right below this on product.tpl, as opposed to including it in home.tpl. So the top of my product.tpl file looks like this: Code:
<script type="text/javascript"> Seems to be working great so far. I'm using the mod on the left. |
Re: Recently Viewed Mod
For those struggling with thumbnails; I hacked it up a little....
In the product.tpl file, I replaced the code with: Code:
<script type="text/javascript"> Works for me now (NOTE: I have the "Recently Viewed" section on the right side...) |
Re: Recently Viewed Mod
Ok, while I fixed the thumbnail problem, I too am stumped by the "undefinedundefinedundefined" issue...
Anyone out there fix it??? I am no Javascript wiz so I can't figure it out... |
Re: Recently Viewed Mod
The original code works like a charm in 4.1.9. I had some issues, I guess still have with the encoding. It refused to accept some Swedish letters. I also had to change the currency and the way it is displayed since we display the currency symbol after the number and not before but that was pretty easy to do. Unfortunately I don't know how to add language variables in the admin so this can be translated into different languages. For example I tried to
Put lbl_recently_viewed in the "Variable:" box and entered the "Value:" box but nothing happened. Anyone that could enlighten me on how to add the language variables for lbl_no_recently_viewed_items" and "lbl_recently_viewed? |
Re: Recently Viewed Mod
Quote:
I have to bump this. Seems many ppl are having this problem but so far no solution has been presented. I had to remove this wonderful mod when I discover all the secury warnings and the fact that the pics didn't show in secure mode. Anyone that has any solution for this?????? It should be in the interest of anyone using https... |
Re: Recently Viewed Mod
Quote:
I just installed this mod with certain changes to product.tpl and my CSS code to make it horizontal. However, I too was having the undefinedundefinedundefined issue. I figured this was whenever a variable hadn't been set yet. You can see you lose an "undefined" the more products you visit Anyway, after some Googling on how to make a javascript if statement based on whether a variable is undefined or not, I've been able to fix it for me. In your recently_viewed.tpl, find this: Code:
else {document.write("You have no recently viewed items.") and change to this Code:
else {document.write("You have no recently viewed items.") It's basically saying "only try to write to the document if such-and-such variable IS NOT undefined" Hope this helps someone! |
Re: Recently Viewed Mod
I wanted to share a few more things I did in case anyone else is looking to do the same.
To show nothing when there are no recently viewed products (meaning no title or text) I left the title blank (the include at the bottom) and made this change in recently_viewed.tpl Code:
var p1=getCookie("p1"); It basically only shows the title if the p1 variable (first product viewed) has been set, else it writes nothing. Use HTML and CSS to style. Note that I removed p4 because I am only showing the last 3. In addition to changing my view to 3products, I made it horizontal as described by Qdox. My full recently_viewed.tpl: Code:
{capture name=menu} Additionally, I wanted to display this in my main column (I have a 2-column layout: sidebar and main area) on the product pages only. As is, it was showing up on the home page, checkout pages, help pages, etc., at the very bottom. For my product pages, this meant it was showing up BELOW Tell a Friend and Reviews. I didn't want that. This was happening because the include for recently_viewed.tpl comes below the include for everything else (home_main.tpl which loads product.tpl) in my home.tpl file. What I decided to do was to take out all the "extra" stuff on my product page (product.tpl) and pasted it into a new template which I called product_kickers.tpl. Decide where you want to "cut" the page and cut and paste into a new template. Then on home.tpl, my new order is this: Code:
{include file="customer/home_main.tpl"} The above code shows the Recently Viewed secton only on a product page AND position it after the main product stuff (home_main.tpl ends up loading my new top-half only product.tpl), beneath that will be recently_viewed.tpl, and then my new product_kickers.tpl which was the lower half of product.tpl. I hope this makes sense and helps. |
Re: Recently Viewed Mod
TheWrongGrape, you don't happen to have a SSL and use this in https, secure mode? That's my only issue with this mod as for now. I get security warnings when being logged in, in secure mode and at first the pics are not showing, but after a little while they start to show, but they security warnings keeps on popping.
|
Re: Recently Viewed Mod
Quote:
Is it because the thumbnail URL for the recently viewed products aren't secure? Try this in product.tpl instad of the line that's there now. Code:
<img src="{$product.image_url|replace:'http://':'https://'}"> |
Re: Recently Viewed Mod
Quote:
So instead of: prodImage='<img src="{$product.image_url}"/>'; I write: prodImage='<img src="{$product.image_url|replace:'http://':'https://'}"> I tried the above and some other combinations but it didn't work for me. Please tell me I am wrong..:wink: |
Re: Recently Viewed Mod
Quote:
Don't forget to put the semicolon (;) back in at the end of the new code. |
Re: Recently Viewed Mod
Quote:
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. |
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:
Hope this helps some of you, Enjoy |
Re: Recently Viewed Mod
Quote:
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! |
Re: Recently Viewed Mod
Bump
|
All times are GMT -8. The time now is 05:53 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.