Forums / Templates, Stylesheets, Page Layout / how to clone "Contact Us" page and rename?

how to clone "Contact Us" page and rename?

Locked

Started by threddies_com on 8 May 2007, 2:33 PM · Views: 1,627

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 May 2007, 2:33 PM
#1
threddies_com avatar

threddies_com

New Zenner

Join Date:
May 2007
Posts:
28
Plugin Contributions:
0

how to clone "Contact Us" page and rename?

I'd like to create a new page, linked from the Information Sidebox that is a clone of the Contact Us page (with the e-mail form and everything), to be re-named "Wholesale Inquiries". The functionality of the form can be exactly the same - I'd just need to change the text and the title of the page. How would I go about doing this?

If this question has been answered elsewhere, please do direct me to the proper thread. I know it can't be that difficult. Am just praying that I won't need to touch the database! :P

thanks so much!!

8 May 2007, 2:54 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how to clone "Contact Us" page and rename?

Cloning is following a pattern ...

If the contact_us uses in its pattern:
contact_us

You would want to copy all related files and clone it by using the new name:
wholesale_inquires

Doing a search in the Developer's Tool Kit on the word:
contact_us

Would show you all of the files referencing this ...

So now you can start building your pattern of filenames, variables, constants etc. ... of the realted code for a new page ...

For adding new filenames, rather than add to the original file you can make your own file and add it to the:
/includes/extra_datafiles

in a file something like:
wholesale_inquires.php

This will load at the same point as the filenames.php and database_tables.php so you have this in the right spot for the code ...

Adding the define for the filename in there will allow it to work properly just like you see the contact_us in the filenames.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!