Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Nav_bar for successful 2nd contact us page

Nav_bar for successful 2nd contact us page

Views: 1,251

Results 1 to 6 of 6
19 Dec 2013, 2:14 AM
#1
charles_persinger avatar

charles_persinger

New Zenner

Join Date:
Nov 2013
Location:
Charleston, WV
Posts:
12
Plugin Contributions:
0

Nav_bar for successful 2nd contact us page

So I added a form to the shipping & returns page. I duplicated the contact us page page and associating files modified of course for the shipping page. So I have the form and it send the e-mail to a different address than the contact us page which was a huge pain since I'm a novice at php... So while it sends successfully the success page uses the navbar_title from the contact_us.php from includes/languages/english/ folder instead of the navbar_title from the shippinginfo.php in the same folder. I don't get it as elsewhere it pulls the defines from the shippinginfo.php such as the EMAIL_SUBJECT define. While I know my site showing "Contact us" instead of "Shipping & Returns" on the success page is minor, but a truely professional site wouldn't be like that and neither should mine. Any advice would be greatly appreciated. Site is elkriveroutdoors.com... please pardon the mess as I'm working on the functionality before quality content. Using firebug It is still showing the center colum div id as contactusdefault even though it doesn't appear in the tpl_shippinginfo_default.php since I changed that div ID to shippingInfo, so I'm fairly certain that my problem is the correct TPL file isn't being used, but I have no idea where I messed up.

19 Dec 2013, 2:40 AM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Nav_bar for successful 2nd contact us page

If you duplicated everything for the contact us page you'll have a second includes/languages/english/YOUR_TEMPLATE/contact_us.php.
- Perhaps you named it contact_us_shipping.php ?

If that's the case, change the NAVBAR_TITLE to read 'Shipping & Returns' in the cloned file.

19 Dec 2013, 11:55 PM
#3
charles_persinger avatar

charles_persinger

New Zenner

Join Date:
Nov 2013
Location:
Charleston, WV
Posts:
12
Plugin Contributions:
0

Re: Nav_bar for successful 2nd contact us page

That is the thing it is set correctly in that file and like I said it does pull other defines from that file, but not the navbar_title. I left the filenames for the shipping pages the same and just copied the content from the contact us pages into them plus the modifications. I've attached my files incase you are bored and want to help a novice out.

20 Dec 2013, 1:50 AM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Nav_bar for successful 2nd contact us page

The shippinginfo.php you sent does not match my v1.51:
includes/languages/english/YOUR_TEMPLATE/contact_us.php
are you certain it's the correct location/file?

Did you add the new pages to all occurrences of contact us here:
includes/filenames.php

20 Dec 2013, 1:59 AM
#5
charles_persinger avatar

charles_persinger

New Zenner

Join Date:
Nov 2013
Location:
Charleston, WV
Posts:
12
Plugin Contributions:
0

Re: Nav_bar for successful 2nd contact us page

I'm using a Zenflavor template. Since I left the original filenames in tact is there still a need to modify the filenames.php? I did pull it over to my test folder, but at this point I haven't a clue if made a change or not. I've uploaded a copy of my filenames.php.

21 Dec 2013, 3:05 AM
#6
charles_persinger avatar

charles_persinger

New Zenner

Join Date:
Nov 2013
Location:
Charleston, WV
Posts:
12
Plugin Contributions:
0

Re: Nav_bar for successful 2nd contact us page

Firstly I would like to Thank Twitchtoo for taking the time to respond to my question! I figured out that copy and insert into existing files method worked great... If I would have double checked and copied all relievant files. I missed copying the on_load_main.js from the includes\modules\pages\contact_us folder over to the shippinginfo folder in the same directory.