Jump to content

[BUG] Last Viewed Products Block [BUG]


Recommended Posts

in the back office under catolog tab bring up the item that has the error, scroll down to the drop down menu and chose a catogory to put the item in. this normaly happens if it says it is in home..


Out of intrest does your last viewed products box work in IE7 ?

Link to comment
Share on other sites

The problem is not happening on just some products, it's happening on any product I click on from the Featured Products block, the New Products block, or either of the Carousel mods (I have them both). It's not a problem when clicking a product from navigating the categories, or the Specials block.

I just tried it with IE and everything works/doesn't work exactly the same.

To be more clear, the problem is that if you click a product from either of the carousel mods, or Prestashop's Featured Products block, or Prestashop's New Products block, the URL isn't set properly for these items if you click on them from Prestashop's Last Viewed Products block. The path is absent and only shows the item part of the URL, not the entire item's URL path, so the link doesn't work. Just hovering your mouse over the item will show you the path in the bottom left corner of the browser without clicking it.

So it looks like this has to be fixed in the core shop as well as some mods.

Link to comment
Share on other sites

Great simple fix (for most of the problem)!

However, the problem that still remains is with clicking a product that shows in the New Products block. I guess it doesn't work because there Prestashop doesn't give a "path" (but should - to the product's category/subcategory) when an object is shown in the New Products block.

I wonder, could this same fix be applied to the New Product's template file?

Link to comment
Share on other sites

This new file edits a different line. Should we revert the first edit made from the previous file, and make this change only? Or do we add this edit the to first edit made, so that the file has been edited on two lines?

EDIT:

Actually, I see why it wasn't working with the first edit. Because your first edit only added the path to the product's title, and not the thumbnail. Your latest file edits the thumbnail to include the path.

However, you may want to edit the file again so that anybody who comes across this thread knows to edit both lines.

Thanks again for the fix!

Side Note: I notice that the link actually shows two forward slashes in the path, but works nonetheless (e.g. yourdomain.com // productname).

Link to comment
Share on other sites

I no longer have an issue, as your fix worked. With your first edit it only fixed it halfway, as it only fixed the product's title and not the thumbnail photo (I was testing the issue by clicking the photo and not the title, so it only appeared not to work). But your second edit added the thumbnail edit which fixed it completely.

The only problem I'm seeing now is that if a product has a long title, it runs over the second product's thumbnail pic in the Viewed Products block; the top product's title runs over the bottom product's pic and the bottom product's pic runs out of the block, onto the next block below (if there's a block below).

I tried strategically inserting a space tag after the product's code, but that did not fix it.

Any ideas?

P.S. Long product titles are also a problem on the product's page, where it runs a second line and doesn't look too nice. You'll also see this with not so long product titles, but within a few subcategories deep, causing the path to be long.

Link to comment
Share on other sites

UPDATE:

Within the same file (blockviewed.tpl), adjusting the truncate numbers helped a little bit (but did not solve the issue).

You'll see one truncate number for the product name and one for the product description (they simply tell the program how many characters to allow to be shown). I've set mine as follows:


truncate:15}

truncate:30 n=15}


Though, everybody should adjust them to their own liking by trying a number, upload/refresh browser, then trying another and repeating. Paying attention to how the Viewed Products block looks each time.

Hopefully this issue gets an official fix by Prestashop with the next update. Making it look like the New Products block would surely fix it.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 1 month later...

If there a solution for this glitch... I also have the product just showing as "//product-name.html" (works find w/o friendly URLs, though...

There was a .txt attached "solution" but involved hand-coding the http://etc... which would cause problems with cookies (www. vs. no www.)

Thanks for any input...

Link to comment
Share on other sites

  • 4 months later...

Hmmm I just ran into this bug...like was said I was doing a manual install and forgot to set the defalt directory...home was check but I am getting the same text over running the picture and blocking some it it....I am running Prestashop 1.2.3 You would think it would of been fixed by now....any suggestion in my case or do I just need to follow follow post #13?


Update: I found it best to zero all the numbers out as there was still problems even with lower settings...with 0 on the three imputs all you get is the picture and two arrows to the side...would be nice if it could just add the price of the item but I do not know how to do that.

Doug

Link to comment
Share on other sites

Ok you can mess with the code or......maybe....because you resized our thumbnails from 80x80 to 100x100. When I changed mine back to 80x80 everything looks much better with just a few text out of sequence....adding:

truncate:15}

truncate:30 n=15}

fixed it completely as the stock setting was just to long.

Doug

Link to comment
Share on other sites

  • 4 weeks later...

This will also work in featured products if you want to adjust the heading and how much small discription shows up in each box...

I was having problems with some of the header text droping down into the small discription text...plus I made the small discription 15 letters longer.

Original sizes was....
First was: truncate:35
Second was: turncate: 135

{$product.name|escape:htmlall:'UTF-8'|truncate:30}

{$product.description_short|strip_tags:'UTF-8'|truncate:150}



You will be looking into the public_html/modules/homefeaturedcustom/homefeaturedcustom.tpl

Link to comment
Share on other sites

×
×
  • Create New...