I have customised the contact us page of a test site using v1.1.0.6 by adding some of Heatherbells modules to the page to show opening times and store address above the contact form. The page looks nice and works well.
I may be missing something but the problem I am having is that when the form sends a message to the store owner, the message sent text is showing where the form was. Am I missing something, or will a new module, or two, need to be made so that the message shows at the top of the page where customers will be able to see it.
Attached image showing message in correct position.
Contact us Message sent message position.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Contact us Message sent message position.
If I'm not misremembering the contact us `form` and `message` are in the same module and the action is in the main file. main file has all the logic of emailing, tpl sets action=success to swap out the form for the message.
To make that a bit better, the simplest way is;
1. remove the action=success stuff from the form, you just want the stuff inside `else`
-> get rid of the stuff inside `'if`
2. move the bits from main contact_us file into a new action file
-> /includes/actions/send.php
Unintended consequences possible, but you might try it and report back.
To make that a bit better, the simplest way is;
1. remove the action=success stuff from the form, you just want the stuff inside `else`
-> get rid of the stuff inside `'if`
2. move the bits from main contact_us file into a new action file
-> /includes/actions/send.php
Unintended consequences possible, but you might try it and report back.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
14Steve14
- Senior Contributor
- Posts: 920
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 17 times
- Been thanked: 103 times
Re: Contact us Message sent message position.
Quick follow up. Got the message to show at the top of the page. Little bit of refining to complete, but job done and now showing where it can be seen once the message has been sent.
You do not have the required permissions to view the files attached to this post.