reclipse3 Posted January 26, 2009 Share Posted January 26, 2009 FYI: One of the last viewed products URL link is always incorrect (doesn't show the entire path). Link to comment Share on other sites More sharing options...
cor3ys Posted January 26, 2009 Share Posted January 26, 2009 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 More sharing options...
reclipse3 Posted January 26, 2009 Author Share Posted January 26, 2009 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 More sharing options...
juniorlo Posted January 27, 2009 Share Posted January 27, 2009 J'ai le même problème avec le block viewed, le lien ne reprends pas l'adresse du site, please do something to make it work!!!! Link to comment Share on other sites More sharing options...
Tuuan Posted January 29, 2009 Share Posted January 29, 2009 I have the same problem. But I noticed that when you turn off (!!!) the Friendly URL option everything works just great. But, I would like to use the friendly URL function, so can someone please fix this. Link to comment Share on other sites More sharing options...
DaveGetStock Posted January 30, 2009 Share Posted January 30, 2009 Fix for ya all In the blockviewed.tpl look for this line: getProductLink($viewedProduct)}"Simply replace with: Link to comment Share on other sites More sharing options...
reclipse3 Posted January 30, 2009 Author Share Posted January 30, 2009 Am I missing something? Please check your code, as it appears to be the exact same thing. Fix for ya all In the blockviewed.tpl look for this line:getProductLink($viewedProduct)}"Simply replace with: Link to comment Share on other sites More sharing options...
DaveGetStock Posted January 30, 2009 Share Posted January 30, 2009 damn! silly code tags, ill try again!EDIT - bloody site keeps tryingt o show html out put!I have put it in a text file and attached it viewedproductfixfinal.txt Link to comment Share on other sites More sharing options...
reclipse3 Posted January 30, 2009 Author Share Posted January 30, 2009 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 More sharing options...
DaveGetStock Posted January 30, 2009 Share Posted January 30, 2009 hmm, mine works already, it may be worth a try though on yours. I have also edited the text file, id redownload it and change it as I have tested this change more fully (ie, it still works now ) Link to comment Share on other sites More sharing options...
reclipse3 Posted January 30, 2009 Author Share Posted January 30, 2009 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 More sharing options...
DaveGetStock Posted January 30, 2009 Share Posted January 30, 2009 Thanks, I will update it again Glad to help, I have looked at your other issue but I have no way of telling if the change works or not, as mine already works! Care to attach a copy of your file and I will try it with yours. Link to comment Share on other sites More sharing options...
reclipse3 Posted January 30, 2009 Author Share Posted January 30, 2009 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 More sharing options...
reclipse3 Posted January 30, 2009 Author Share Posted January 30, 2009 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 More sharing options...
DaveGetStock Posted January 30, 2009 Share Posted January 30, 2009 Nice one reclipse! that was on my list of 'to fix'! Saved me a few minutes playing around there Thanks Link to comment Share on other sites More sharing options...
reclipse3 Posted January 30, 2009 Author Share Posted January 30, 2009 You're welcome. Link to comment Share on other sites More sharing options...
chirameto Posted February 17, 2009 Share Posted February 17, 2009 I found a related fix from this thread http://www.prestashop.com/forums/viewthread/8469/general_discussion/something_wrong_about_friendly_url_dot__dot_It seems that this bug will occur only when you insert product manually and forgot to set the default category of that particular product.If you import your product, it will be fine. Link to comment Share on other sites More sharing options...
ukbill69 Posted April 9, 2009 Share Posted April 9, 2009 Ive got 2 slashes now e.g mydomain.co.uk//207-product-name.htmlCan anyone help? Link to comment Share on other sites More sharing options...
ukbill69 Posted April 9, 2009 Share Posted April 9, 2009 Found it, was in the settings.inc.php file had a / in it. Just removed it and almost sorts it. Now the top links e.,g. my account and wish list dont work as they need that slash Link to comment Share on other sites More sharing options...
nate_02631 Posted May 20, 2009 Share Posted May 20, 2009 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 More sharing options...
nutbuster Posted September 21, 2009 Share Posted September 21, 2009 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 More sharing options...
nutbuster Posted September 24, 2009 Share Posted September 24, 2009 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 More sharing options...
nutbuster Posted October 18, 2009 Share Posted October 18, 2009 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:35Second 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 More sharing options...
Recommended Posts