Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

alternate contact us page


mithereal

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

Link to comment
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.

Link to comment
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
Link to comment
Share on other sites

  • 2 weeks later...
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'));

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...