Jump to content

backlink from Send to a friend page - not correct


Recommended Posts

  • 4 weeks later...

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 link

I think it's should be in sendtoafriend.php file

line 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 fine

Any comments?
Thanks, regards,
Rick

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...