moonimage Posted December 9, 2008 Share Posted December 9, 2008 When I was on "Send to a friend" page and try to click on "Back to" buttonI get link like http://12--.html/but not http://website.com/modules/sendtoafriend/sendtoafriend-form.php?id_product=12 Link to comment Share on other sites More sharing options...
Guest Posted December 9, 2008 Share Posted December 9, 2008 Do you have some kind of mod_rewrite enable? Link to comment Share on other sites More sharing options...
moonimage Posted December 9, 2008 Author Share Posted December 9, 2008 in my php info i find Loaded Modules: mod_rewritedid you mean?also I have enabled by .htaccessURL rewriting functionhmmwhen I disabled URL rewriting - all is okbut better with friendly url... Link to comment Share on other sites More sharing options...
Guest Posted December 9, 2008 Share Posted December 9, 2008 May be you have to tweak it under the PS admin side too... Just a supposition as I'm very new on PS... Hope this could help. Link to comment Share on other sites More sharing options...
Ricky_v Posted January 1, 2009 Share Posted January 1, 2009 HI!Someone has resolved this problem?Only in one of my products the link "BACK TO product" is functioning.But not the others.The link is missing all beginning of URL (domain+categorie url is missing). Just the product is in the linkI think it's should be in sendtoafriend.php fileline 43: $backToProduct = ''.$this->l('Back to').' "'.$product->name.'"';I've tried to put __FILE__ in it but nothing is done, the links URL in front-office are the same wrong when "Send to a Friend" page is displayed.Like that: $backToProduct = ''.$this->l('Back to').' "'.$product->name.'"';We have also same file line 44: $smarty->assign('backToProduct', $backToProduct);I have version 1.1, just changed htaccess in .htaccess, nothing else.For the rest all is fineAny comments?Thanks, regards, Rick Link to comment Share on other sites More sharing options...
8t8t Posted January 5, 2009 Share Posted January 5, 2009 Try this.Change line 43 of sendtoafriend.phpfrom $backToProduct = ''.$this->l('Back to').' "'.$product->name.'"'; to $backToProduct = ''.$this->l('Back to').' "'.$product->name.'"'; Link to comment Share on other sites More sharing options...
Ricky_v Posted January 5, 2009 Share Posted January 5, 2009 Hi! thanks for suggestion.But it does not work.I've also tried to put my domain instead of ../ but still only the product name in URL back.Only one object is fine. The first created.Maybe I try to change the categories of products to see if that helps.Regards, see you soon Link to comment Share on other sites More sharing options...
Ricky_v Posted January 5, 2009 Share Posted January 5, 2009 HI!For now I have resolved it:put a point after the first quote:line 38 of sendtoafriend.tpl : But it shows 2 slashes // in the url after domainex: http://domain.com//product.htmlNo problem with firefox and IE7If you have more suggestions please commentThanks, regards Link to comment Share on other sites More sharing options...
8t8t Posted January 6, 2009 Share Posted January 6, 2009 I guess this is the real cause.Thanks to Roberto on this thread:http://www.prestashop.com/forums/viewthread/8469/general_discussion/something_wrong_about_friendly_url_dot__dot_ I’ve been looking into this and I’ve found the problem.There appears to be a bug whereby the domain is not added to the link when Home is the product’s default category.Go to your Catalog Tab in your admin page and under the product info, select the product’s other category as default. Save your changes and then you will see that it’s now working.Roberto So no need to modify sendtoafriend.php as previously suggested. Just change the default category to other than HOME, and any other products where default category is different from the selected category.This also solves another problem. Select list by manufacturers, then click one of the manufacturers, then select a product - if default category is different from the selected category, the url will show the default category rahter than the selected category. Link to comment Share on other sites More sharing options...
Ricky_v Posted January 7, 2009 Share Posted January 7, 2009 IT'S RIGHT!THANKS VERY MUCH FOR THESE POSTSREGARDSRESOLVED Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now