InMotion Hosting Support Center

Incorrect links in Prestashop generated emails

Category: Prestashop 15

allanp
Asked:
2014-05-22 1:51 pm EST

Hits: 1,022
Prestashop 1.6.0.6. The emails generated by PrestaShop have the format "http://domain-name/shop/shop-name" rather than the correct link "http://domain-name/shop".

I think the changes started when I created a custom-theme by copying the default-bootstrap theme. Before that, the emails had the correct link. I am wondering if this is happening because my shop is still under development and is using a temporary url (domain-temp.com). Any suggestions?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

I have migrated my domain to the IMH web server and still have. Now the emails contain a reference to http://paperweights.com/shop/allans-paperweights where the oringal domain name specifiewa
allanp
35 Points
2014-05-23 01:53 am EST

OTHER ANSWERS

0

JeffMa
Staff
11,186 Points
2014-05-22 2:06 pm EST
Could you clarify what emails you are referring to? Could you provide me with an example?

You must login before you can post a comment about this answer.

Sure. An example is the New Account email generated by account.html. The email is sent to everyone who registers an account. The email contains several links back to the shop. In each case the link resolves to http://domain-temp.com/shop/shop-name. This happens with all the emails not just the account email.

I don't know if the new theme change (copying the bootstrap-default) or possibly by the domain-temp url. I upgraded to 1.6.06 on 5/5/2014 when it was available and then realized that my earlier changes to translations were gone. That was when decided to follow Prestashop advice and copy the default-bootstrap to my own theme. So I am not sure which change caused the change in links.
allanp
35 Points
2014-05-22 2:32 pm EST
Hello Allanp,

We were discussing this, and it appears that the issue is related to the temporary domain being used for the site. The theme has nothing to do with the URL you're seeing for the emails. The domain should appear normal when you are not using the temp URL. When you are using a normal domain name, then the URL should return to normal.

Regards,
Arnel C.
Arn
42,973 Points
Staff
2014-05-22 3:16 pm EST
Hi Arn,

Thanks for the quick response. I will point the domain at IMH and see if the problem resolves itself. It is strange that the problem didn't occur when I was at 1.6.0.5 and only theme was default-bootstrap.
allanp
35 Points
2014-05-22 3:29 pm EST
Hi Allanp,

No problem. Make sure that you're not installing PrestaShop into a separate folder as well. As that will also have an effect on the eventual URL. Let us know if you require any further assistance!

Regards,
Arnel C.
Arn
42,973 Points
Staff
2014-05-22 3:38 pm EST
Please clarify. Prestashop is installed under public_html/shop
Are you advising that I not do that.
allanp
35 Points
2014-05-22 4:07 pm EST
Hello AllanP,

Sorry for the confusion, you can install PrestaShop like you already have within the /public_html/shop/ directory. I believe what Arnel was warning you about is just to be aware that you will then need to access PrestaShop at the URL of example.com/shop instead of just accessing your main domain.

You can also always modify your hosts file to force your computer to resolve your domain name to our server prior to you actually making the live change at your domain Registrar to point to our name servers.

Please let us know if you're still having any issues at all with the paths in your email since pointing your DNS to our servers.

- Jacob
JacobIMH
9,968 Points
Staff
2014-05-22 4:59 pm EST
Hi Allan,

Yes, that is more likely the culprit to your domain name troubles than the temp URL. It can definitely be confusing. When you install to the root folder, the domain name would be the only path. For example, if you installed to "example.com", then the path would be:

http://example.com

If you installed to a folder called "shop", then the directory would be added to the URL like this:

http://example.com/shop

The domain name should be the URL that you're installing to (public_html is the default folder for the primary domain name). As per the manual installation instructions, the store name is really more of a label and isn't a part of the path, unless you have made the folder name or the domain name the same as the store name - which people typically do.

I hope this helps to explain it a little better! Please let us know if you continue to have any further questions.


Regards,
Arnel C.
Arn
42,973 Points
Staff
2014-05-22 5:28 pm EST
Turns out that the issue was on the preferences > SEO & URLs list. The index file had a friendly URL of the shop-name. I'm not sure why or when this happened, but it makes sense that this would cause my shop_url to be translated as http://mydomain.com/shop/shop-name.
I cleared the friendly url and the problem went away.
allanp
35 Points
2014-05-26 2:25 am EST
Like this Question?

Related Articles

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!