Jump to content
Sign in to follow this  
mithereal

alternate contact us page

Recommended Posts

i owuld like to make an alternate contact us page with different fields than the contact us page so i can have 2 on my site one with queries and the other is a bidding form, i have tried modifing the contact us form but not working can anyone give me a pointer on how to make the alternate form work , i did change all references from tep_redirect(tep_href_link(FILENAME_FILENAME_CONTACT_US, 'action=success'));

to tep_redirect(tep_href_link(FILENAME_BIDFORM, 'action=success')); and added define('FILENAME_BIDFORM', 'bidform.php'); to includes filenames.php im geting The requested URL /catalog/FILENAME_BIDFORM was not found on this server. error can anyone point me in the right direction

i am not a php coder

Share this post


Link to post
Share on other sites

you need to add some variable to contact us php file and define this variable in contact us language file.


Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Share this post


Link to post
Share on other sites

ok what i meant to say was i made a copy of contact us.php and renamed to bidform.php0, i also made a copy of contact us in languages folder named bidform.php i added the varibles to bidform.php in languages, basically i want a 2nd contact us page called bidform.php that does not pull any vars from the original contact_us files so i can modify my bidform.php files without having it try to pull vars from contact usones , what would i need to change.

Edited by mithereal

Share this post


Link to post
Share on other sites
ok what i meant to say was i made a copy of contact us.php and renamed to bidform.php0, i also made a copy of contact us in languages folder named bidform.php i added the varibles to bidform.php in languages, basically i want a 2nd contact us page called bidform.php that does not pull any vars from the original contact_us files so i can modify my bidform.php files without having it try to pull vars from contact usones , what would i need to change.

 

It sounds about right. If you've made language copies in your language folders for bidform.php and defined all language constats and then changed the include in the main bidform.php within catalog to

 

require(DIR_WS_LANGUAGES . $language . '/' . "bidform.php");

 

Then it should be fine. I never bother setting filenames constants - its just another hoop to jump through for nothing. forget about modifying filenames constants and change your line:

 

tep_redirect(tep_href_link(FILENAME_BIDFORM, 'action=success'));

 

to this:

 

tep_redirect(tep_href_link("bidform.php", 'action=success'));

Share this post


Link to post
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
Sign in to follow this  

×