Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / move message box in contact us above other text

move message box in contact us above other text

Locked

Views: 1,886

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
3 Mar 2010, 10:51 AM
#1
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

move message box in contact us above other text

http://www.thegreatgiftshop.co.uk/zencart/index.php?main_page=contact_us

Hope fully this is a simple thing...

As you can see, on my contact page there is the 'about us' text, but it's above the contact info and e-mail message section. I would simply like to move it 's below all this, so underneath the 'Message' field but above the 'back' and 'send buttons.

I'm guessing I'll need to move a section of code below another section of code to achieve this but am not sure in which file(s) so any help would be much appreciated.

3 Mar 2010, 11:03 AM
#2
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

There's also another issue on this page too, at the top the address appears but I can't figure out how to remove this without going into the admin>configuration>my store and then deleting the shop address completely, this removes in from automatically appearing in the contact page but would then also remove it from printable documents which we obviously dont want to happen. So my next question is how to do I stop it appearing on the contact us page only??

Thanks!

3 Mar 2010, 11:15 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: move message box in contact us above other text

  1. Are you sure you want to do that? Most of us look for general information at the top of a page.

  2. Admin - Configuration - Email Options - Contact Us - Show Store Name and Address

3 Mar 2010, 11:16 AM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: move message box in contact us above other text

Oh. Steve done answered that one.........

3 Mar 2010, 11:27 AM
#5
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

Ah great, thanks for the quick response. Yes definitely do want to do that as it looks a bit messy and our address is pretty much at the top even after the automatic display of it goes. Thank you! :smile:

3 Mar 2010, 11:28 AM
#6
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

Well, it will be practically at the top once I figure out how to move the 'about us' text to underneath the e-mail message box.

3 Mar 2010, 11:35 AM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: move message box in contact us above other text

Sushigal:

Well, it will be practically at the top once I figure out how to move the 'about us' text to underneath the e-mail message box.

Well, since you're using the classic template, the file you'll need to edit should be: includes/templates/template_default/templates/tpl_contact_us_default.php
You can move the code to your liking.

3 Mar 2010, 11:43 AM
#8
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

Thank you Get Em. I'll have a play around with that file.

3 Mar 2010, 11:50 AM
#9
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

Hhhmm...I've been moving different bits around but feel like im going in blind, I have no idea which bit of code represents which but on the page :no:

3 Mar 2010, 12:05 PM
#10
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

Ok after more playing around, I found how to move the text field contact whole section above all the define pages text that I put it in, but im having trouble working out how to put it inbetween the 'about us' and 'contact details' text, in other words I need to be able to split those two sections and put the contact form inbetween. If someone could help I would really appreciate it.

3 Mar 2010, 12:15 PM
#11
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

Think I found a way around it... I moved the bit of code that represents all the define pages text and moved it back above the text field box, then in the code just below where the text field box ends, I added in my 'abous us' text and then simply removed the 'about us text' from the file in the define pages editor. Is this a bodge or ok??

3 Mar 2010, 12:18 PM
#12
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: move message box in contact us above other text

Sushigal:

Hhhmm...I've been moving different bits around but feel like im going in blind, I have no idea which bit of code represents which but on the page :no:

O.k. Now that I've got a little extra time, now. Around lines 39-43 (where mine was at), you should see a section of code that looks like this:

<?php
/**
 * require html_define for the contact_us page
 */
  require($define_page);
?>
</div>

Move that section down to line 70 (on mine). Line 70 should be blank, with line 69 having a simple </fieldset>, while Line 71 (on mine) looks like this:

<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>

That worked on mine just as you wanted yours to appear.
Hope this helps.

3 Mar 2010, 12:23 PM
#13
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: move message box in contact us above other text

Sushigal:

Think I found a way around it... I moved the bit of code that represents all the define pages text and moved it back above the text field box, then in the code just below where the text field box ends, I added in my 'abous us' text and then simply removed the 'about us text' from the file in the define pages editor. Is this a bodge or ok??

Getting there, but not yet. You've got it a little wrong. See the borer around it, indicating that it's part of the "Form"? Don't know what that would do to you. It might send YOU all that information, also........not sure.

3 Mar 2010, 12:24 PM
#14
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

that's what I was wondering about, I've sent a test e-mail to see if the customer or sales team get all that extra text also. If not then do you think it's ok to leave it like that?

3 Mar 2010, 12:29 PM
#15
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

ah ha, there we go. Sorted! I simply moved that text in the code to just underneath the last '</fieldset>' on line 75 and it then puts the 'about us' text outside the bordered box of the message text field. Yay. Thanks for your help! :clap:

3 Mar 2010, 12:30 PM
#16
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: move message box in contact us above other text

I'm no expert on the matter, but from my experience.........I wouldn't. PHP is pretty picky......it may work forever, then again, it might work for a few days (just long enough for you to forget that you edited that page), and crap out on you. You can leave it, if you want, but if it was mine......I really wouldn't. It's the little things that get you.

Ahhhhhh yes. As I was writing this, you got it fixed! Looks good.

And......anytime. Sorry I was too busy to point you in the right direction earlier.

3 Mar 2010, 12:35 PM
#17
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: move message box in contact us above other text

No problem, you still responded pretty quickly so I really appreciate it. Thank you!