Jump to content

Text in home page and adapting contact form


Recommended Posts

Hope someone can help me. I am setting up a site without prices (Prestashop 1.4.4.0 Finally all works well and I hope it stays that way.

 

My last problems are:

A)

The home site has on top a picture and below that a slideshow. But I like to put some text below the slide show. I really don't know how to realize that. I tried a lot but forgive me my uncertainty in these matters, I really do not know how.

 

B)

The contact form I have is very nice. With a Captcha slider. But if people want a price quote, the fields in the form aren't just enough. When the form arrives, I don't know their names, their city etc.

So, I like to add in this form some more fields. But I really do not know how to do this.

 

I have found in this forum a formulaire (devis) with the possibility to ask a pricequote. I read a post of Julien Breux where he states that is is not difficult to do that. But I do not know how to do it. In the forum I cannot find where I am looking for.

So, maybe is there somebody who can give me some help?

 

Best wishes

Link to comment
Share on other sites

hi,

if these are a custom modules you'll need to find them in the modules folder, then open the .tpl files and have a look there :

  1. for the text below slideshow you'll have to simply insert it after this slideshow in the .tpl file (some styling may be mandatory)
  2. for the contact for you'll need to modify the .tpl file in order to add the input's, and you need to modify the .php files that control the form submit (generally in the same folder as .tpl files)

 

you can contact me with the PM.

Link to comment
Share on other sites

Hoi,

thank you both for answering my post. But I was busy with the shop's url. The url is not good and I want to fix that first. It is very strange but when i type my domain ( www.mydomain.com/shop/), everything is allright inclusive the friendly url's. It works fine.

 

But I prefer to see my shop in the address window like www.shop.com ( I registered that domain also)

But when I type www.shop.com it doesn't work. So. this problem took me half a day and still is not solved. I asked the provider repeatedly but they do not give me the right answers to solve this.

 

 

I think I have to stop now because my brains have had enough today. Maybe a glass of wine will washes it away. (this is france, you know and there is plenty of wine here :))

 

Have a very nice evening.

Link to comment
Share on other sites

I'm not sure I fully understand your problem.

 

Where are your prestashop files located?

 

If they are in www.mydomain.com/shop/ you will need to move them to www.mydomain.com/ and edit your config/settings.inc.php file to reflect the change.

 

Change

 

define('__PS_BASE_URI__', '/shop/');

 

to

 

define('__PS_BASE_URI__', '/');

Link to comment
Share on other sites

Hello Dave and Eljorf and thank you both for answering,

Each problem has its own solution in itself, only I do not see it.

 

Let us say:

The domain is: www.domain.com

The shop is in: www.mydomain.com/mylittleshop/

 

When I type: www.mydomaine.com/mylittleshop/ everything works fine. So far, so good.

 

But the shopname is: mylittleshop and that is also another domainname: www.mylittleshop.com

 

However, I prefer that people see in the window: www.mylittleshop.com/

 

But in settings.inc.php, I have: define('__PS_BASE_URI__', '/mylittleshop/');

 

But when I type the address: www.mylittleshop.com I get: http://www.mylittleshop.com/mylittleshop/fr/

That's one street too far.

I tried some changes, asked the provider, (I do have a redirection) so everything must work fine, only it doesn't. Maybe you have any suggestions?

Link to comment
Share on other sites

I am unable to see anything on the mylittleshop.com or mylittleshop.com/mylittleshop/ other than the hosting providers holding page which is /index.html

Clicking on the link in your post also gives me the holding page.

 

From my take, what you are saying is that you have the domain mylittleshop.com and you installed prestashop in a sub-directory called /mylittleshop/

 

I think you need to move all of the files and folders from mylittleshop.com/mylittleshop/ to the root, which is mylittleshop.com/ and then make the changes to the settings.inc.php as mentioned previously.

 

Before moving the files and folders you need to delete or rename the index.html file. If not when you go to your domain you will encounter the holding page rather than prestashop.

 

On a prestashop installation that has, in your case, /fr/ at the end of the URL is because you have more than one language installed with French being the default.

 

Not sure if this is helping you or not.

Link to comment
Share on other sites

Hello Dave L,

 

Suppose the name of my shop is : "shop" and the name of the subdirectory is also "shop".

So - if I do not want to change that - the name of the site will be: http:/mydomain.com/shop/

You are right.

 

But it must be possible that the shop stays in that subfolder "shop" and I prefer that people see: www.shop.com

 

But I type that in now, I get:

 

www.shop.com/shop So, I get first the name of my domain and then the name of the shop.

 

And it should be: www.shop.com without "shop"

 

But why is it not possible to make a shop in a subfolder?Why is it necessary that I move everything to the root?

Link to comment
Share on other sites

Hi Fiedel,

 

I am by no means an expert on this and there maybe someone that can step in and be more definitive.

 

When someone types a domain name into a browser an index page it is expected to be found at that location. The index page can be index.htm, index.html or index.php (there may be others). That location is the 'root' directory.

With the link you provided http://www.mylittles...ylittleshop/fr/ the index page being found in that location is index.html which in this case is a hosting holding page.

 

By having all your prestashop files in this root location, and assuming the existing files are deleted, when going to this link the prestashop index.php is the page that if found and hence prestashop.

 

Now it is possible to leave your prestashop installation in the sub-folder /mylittleshop/ and have the shop presented when someone visits mylittleshop.com

However, something needs to tell the browser that when it visits mylittleshop.com it is 'forwarded' to mylittleshop.com/mylittleshop/ where the intended index.php file is located.

 

I am sure there are numerous ways to do this. One is to have file in the root to tell divert the browser to the alternative location. The other, which I am more familiar with, is to implement 'web forwarding' via the control panel of your domain name host.

 

In may case my domain host is 123-reg.co.uk. I go to their website, log into my account and use the control panel to implement the web forwarding. (see attached image)

Using this I can forward anyone who visits my domain epicexpressions.co.uk to 'any' other web address. The options include what to show in the browser tab so the visitor is unaware he has been forwarded.

 

I don't know if this makes any sense to you or answers your question.

post-73871-0-53497200-1321633217_thumb.jpg

Link to comment
Share on other sites

Hi Dave,

Merci for your answer. I must say that the url I provided to you, is not my url. I forgot to break the link. It was an example.

 

I know that all hosts do have that possibility, uou told me about.

I talked with OVH, mu provider(now more than 3 weeks) and they say that the problem is in the program.

I told them the same as you wrote above: that there are more possibilities to do make that redirection. But they do not want to listen or they are very stubborn.

 

I have two other domains with redirection at OVH and they work just fine. When you click on them you got the name of that domain and not the headdomain.

Only this one - with the shop - doesn't.

So, that is why I am looking at a solution for this in the program. Maybe it is better to search for another host.

So, i am back at the beginning again. Not totally, because you gave me some nice advices. Thank you very much for your help. I appreciate that very much.

Link to comment
Share on other sites

Bonjour Dave L,

I still have the problem with my host OVH about the redirection. The site is www.lefournisseur.fr but you cannot visit the site. Only by http://www.jaroverre.fr/lefournisseur/fr/

 

But maybe I am changing my host.

 

But I want to come back to my first message:

when I enter the first page of my website, you see the imageshow. Below that images I like to put some text, but I tried in the .tpl file but it doesn't work. What can I do here to put a welcom text for people?

Hope you have some advise for me.

Link to comment
Share on other sites

Firstly, if you make any changes to a .tpl file you need to force compile in Preferences>Performance before thos changes are reflected in your FO.

 

Regarding your question and having looked at your website, am assuming you have disabled the Home Text Editor. If this is the case you could enable it. Then you could delete all the text and images except for the main title.

Maybe this way you could have a welcome message. I have never tried this but it may work.

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...

Still not solved.

Bonjour, Hello ,

hope 2012 will be an exiting year for everybody. Still I have a small problem that isn 't solved. I changed my host to o2switch. And everything works perfect. (there are still some things to be done as for example: pricequotes).

 

But now I would like to make a page before that I enter the store. (To be honest: I think it is nicer if you first come into a sort of porch and then go into the shop) The page is already here: http://www.lefournis...r/hoafindex.htm

People come now in at my shop www.lefournisseur.fr

Probably I have to change the name "hoafindex.htm " in index.php

And the page where I now come in, has to change also.

But I really do not know how to do that. (My knowledge of computers is limited).I tried a lot of things but without success.

 

 

 

Then my second question (infact is that the same question where this post started with):

I have searched everywhere in this forum. But I still find it difficult to work with the Home page editor. The edited page does not show up. What can I do here?

I am using: Prestashop 1.4.6.1 I am very glad with it.

 

Hope that there are answers to my questions?

Best wishes

 

Fiedel

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...