Guest Posted July 9, 2005 Share Posted July 9, 2005 (edited) Wholesale Inquiries 1.0 July 09, 2005 Author: Jared Call Support for this contribution is provided at: http://www.oscommerce.com/forums/index.php?showtopic=159242 This contribution can be downloaded from: http://www.oscommerce.com/community/contributions,3338 What this contrib does: ======================== This contribution is a simple copy + modify of contact_us.php that your website visitors to make wholesale inquiries. They fill out the form, it sends the store admin an email with their name, store name, store address, store tax id, email address, and any special comments they wish to add. This contribution is a simple copy + modify of contact_us.php that your website visitors to make wholesale inquiries. They fill out the form, it sends the store admin an email with their name, store name, store address, store tax id, email address, and any special comments they wish to add. It shows up as a link in the Information infobox, just under "Contact Us" .just under "Contact Us" . Edited July 9, 2005 by jcall Quote Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2005 Share Posted August 10, 2005 Hi Jared. This is a great idea. Do you know if this will work with InfoPages? I have it installed and it controls my contact_us page. Thanks, Jonathan Quote Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2005 Share Posted August 10, 2005 I don't see any reason why it wouldn't work, but I haven't tried it. -jared Quote Link to comment Share on other sites More sharing options...
own_world Posted August 18, 2005 Share Posted August 18, 2005 Great Contribution but there is one error. When a user enters an incorrect email address the contact form bunches up to the right and the error message which should appear in a red band at the top of the form appears between the email address and the comments field? Any idea on a fix? Good otherwise. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2005 Share Posted August 18, 2005 Great Contribution but there is one error. When a user enters an incorrect email address the contact form bunches up to the right and the error message which should appear in a red band at the top of the form appears between the email address and the comments field? Any idea on a fix? Good otherwise. <{POST_SNAPBACK}> Have a look at the error message section of the file. There's probably a misplaced <td> or <table> or something. I don't have the code with me so I can't check it out. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 19, 2005 Share Posted August 19, 2005 I just installed it fresh on a test store and it seemed to be working just fine for me . . What is the URL to your store? -jared Quote Link to comment Share on other sites More sharing options...
valley Posted October 1, 2005 Share Posted October 1, 2005 Hello, Many thanks for this nice contribution. However I keep getting a PHP fatal error on line 74 and 34 PHP Fatal error: Call to a member function on a non-object in /home/affili43/affili43-www/catalog/wholesale.php on line 74 $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); if ($messageStack->size('contact') > 0) { Where is 'contact' declared ? Many thanks in advance for your help Quote Link to comment Share on other sites More sharing options...
Steel Posted October 1, 2005 Share Posted October 1, 2005 Vally, What version did you install? Quote Link to comment Share on other sites More sharing options...
valley Posted October 2, 2005 Share Posted October 2, 2005 Vally,What version did you install? I have MS2 but haven't updated to the latest files. I realised that The messagestack CLASS was missing and not initiated in the application_top.php. I have now added messagestack.php to the classes directory and initiated by the call // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; It seems to be working but I do not get any message if the entries are not valid (for e mail) ++++++++ I have now installed it in the productInfo.php (similar to ask a question which has theadvantage of keeping the product_info in the EMAIL so you know which product the customeris reffering to without going back to him. You can see this at http://www.affiliatesexcel.com/catalog/pro...products_id=165 below the add to cart buttons. (see a couple of posts before requesting this feature) But the code wholesale.php needs to be modified to out put the product info on thesuccess page and also in the EMAIL output. This is a great contribution . Quote Link to comment Share on other sites More sharing options...
Steel Posted October 2, 2005 Share Posted October 2, 2005 Vally, I'm not sure what it is that you are trying to do. This contribution is Wholesale Inquiries, all it does is send you a message from the customer with their contact and business info. It is only a modified form of the Contact Us page. Quote Link to comment Share on other sites More sharing options...
Omichi Posted December 3, 2005 Share Posted December 3, 2005 Hi, This contribution is exactly what I am looking for. However I would like to add more fields for the sender to fill. Is it possible to do that? if so what do i have to add to it? thanks Quote Link to comment Share on other sites More sharing options...
Steel Posted December 3, 2005 Share Posted December 3, 2005 Hi, This contribution is exactly what I am looking for.However I would like to add more fields for the sender to fill. Is it possible to do that? if so what do i have to add to it? thanks Yes it is possible. What you would have to do is modify the Wholesale.php and the lang/wholesale.php files included with this contrib. What you can do is go through the files and look for one of the forms input places, like the tax id number or the store address and copy that line, then paste it where you want it to show up at. Next replace, for example, the "tax id portion" of the line of text that you just pasted with "your item here" or whatever you intended it to be. Thats an easy way to do it. If you want to add mods and mod the mods then this is what you should be doing to get your feet wet. But, the most important thing I want you to remember........ I can lead you to the water, but if you want me to drink it for you I take Credit Cards, Cash, or PayPal. :D Good Luck Steel Quote Link to comment Share on other sites More sharing options...
murray_simon Posted February 12, 2006 Share Posted February 12, 2006 Hi there, I have just added this brilliant contribution but it is not working correctly :( This is the link to my site: http://www.cmm.com.au/osc6/index.php - the page exists here; http://www.cmm.com.au/osc6/wholesale.php but the link to it from the information box is not showing up?? Any suggestions - i will be eternally grateful :) Quote Link to comment Share on other sites More sharing options...
Steel Posted February 12, 2006 Share Posted February 12, 2006 Hi there, I have just added this brilliant contribution but it is not working correctly :( This is the link to my site: http://www.cmm.com.au/osc6/index.php - the page exists here; http://www.cmm.com.au/osc6/wholesale.php but the link to it from the information box is not showing up?? Any suggestions - i will be eternally grateful :) I checked your site and it looks as if you did not follow this step: ======================== STEP 2 (information.php) ======================== In catalog/includes/boxes/information.php, change the this: '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); to this: '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_WHOLESALE) . '">' . BOX_WHOLESALE_INQUIRY . '</a>'); Check that and let me know how it goes. SteelShadow Quote Link to comment Share on other sites More sharing options...
murray_simon Posted February 13, 2006 Share Posted February 13, 2006 I checked your site and it looks as if you did not follow this step: ======================== STEP 2 (information.php) ======================== In catalog/includes/boxes/information.php, change the this: '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); to this: '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_WHOLESALE) . '">' . BOX_WHOLESALE_INQUIRY . '</a>'); Check that and let me know how it goes. SteelShadow Hi there, Firstly - thank you for trying to help me - much appreciated!! I am not sure what instructions you are looking at but they are not the ones I am seeing.. Here is my step 2: ********************** STEP 2 (File Upload) ********************** catalog/includes/languages/english/wholesale.php Notes: Adjust the text for the Inquiries Page to your specific business in the file: catalog/includes/languages/english/wholesale.php -------------------------------------------------------------------------------- I do not have information.php in catalog/includes/boxes/information.php as you stated, but I do have it in includes/languages/english... ?? And I found the code you mentioned and have changed it, but to no avail.... I am running CRE loaded 6.15 with a template from Algozone - and quite frankly there have been that many things that Algozone have 'left out' of the files they send you such as .css comments, or images or even complete .php pages that are missing!!! GRrrrrr They are making my life a misery trying to figure out what they have done or not done - The point I am trying to make is that I am unsure whether they have changed something that disables it from working?? Another interesting thing that may be related is that I cannot see these links to 'Shipping', 'Privacy' & 'Conditions' even though they are referenced in information.php: The terms and conditions link in the information box at the moment is generated from infomanager as a short term fix - because the links weren't working, but I wonder Is there something else that is stopping the whole lot from showing up?? here is my information.php: ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false, false, $column_location); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_WHOLESALE) . '">' . BOX_WHOLESALE_INQUIRY . '</a>'); '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV new infoBox($info_box_contents, $column_location); ?> </td> </tr> <!-- information_eof //--> Again - any ideas are much appreciated... :) Quote Link to comment Share on other sites More sharing options...
Steel Posted February 13, 2006 Share Posted February 13, 2006 OK.... 1st thing, its looks like you are using an old version of Wholesale Inquires, go here http://www.oscommerce.com/community/contributions,3338 and get the newest version. 2nd thing, This coding: '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .'<a href="' . tep_href_link(FILENAME_WHOLESALE) . '">' . BOX_WHOLESALE_INQUIRY . '</a>'); '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV should be this: '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .'<a href="' . tep_href_link(FILENAME_WHOLESALE) . '">' . BOX_WHOLESALE_INQUIRY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV third thing, Another interesting thing that may be related is that I cannot see these links to 'Shipping', 'Privacy' & 'Conditions' even though they are referenced in information.php this makes since because it also looks as if the information box that is showing on your main page is not the one that you are modifing. You are actually going to need to modify info_pages.php instead because the information box that you are seeing is from "Extra Pages - Info Box" contribution and not the regular one. Take a look at my site http://rebelstyle.com you will notice that I have 2 different information boxes. The one in the left column is from the default OSC and the one in the right column is from the "Extra Pages - Info Box" contrib. On your site it looks as if you are only using "Extra Pages - Info Box" information box, (info_pages.php) and not using the default information box, (information.php) at all. That is also way the other links that you have, like: About UsMission Statement Cost of Substance Abuse Operator Exam Login Links Don't show up in the information.php page. They are from another file. :D Let me know how it goes. SteelShadow Quote Link to comment Share on other sites More sharing options...
magicsenses Posted September 4, 2006 Share Posted September 4, 2006 Hi! I have installed this contribution sometime ago and I have to say that I am very happy with it! I have one question though: how do you change the font size in the Shipping and Comments/ Instructions boxes? It seems to be size 3 or something like that... and my customers complain that they cannot see what they are typing.. :( here is My Webpage Please have a look. I appreciate your help. Best regards, Simone Quote Link to comment Share on other sites More sharing options...
Steel Posted September 4, 2006 Share Posted September 4, 2006 Hi! I have installed this contribution sometime ago and I have to say that I am very happy with it! I have one question though: how do you change the font size in the Shipping and Comments/ Instructions boxes? It seems to be size 3 or something like that... and my customers complain that they cannot see what they are typing.. :( here is My Webpage Please have a look. I appreciate your help. Best regards, Simone Hello Simone, It looks like your problem is coming from your stylesheet.css file and not the wholesale contrib. I checked out your site and you are having the same problem with your contact us page as well. Because its something that affects your entire site and not just one page, it leads me to the conclusion of the stylesheet file. If you make the adjustment there, then it should fix your issue. Good Luck Steel Quote Link to comment Share on other sites More sharing options...
magicsenses Posted September 4, 2006 Share Posted September 4, 2006 Hello Simone, It looks like your problem is coming from your stylesheet.css file and not the wholesale contrib. I checked out your site and you are having the same problem with your contact us page as well. Because its something that affects your entire site and not just one page, it leads me to the conclusion of the stylesheet file. If you make the adjustment there, then it should fix your issue. Good Luck Steel Hi, Steel! Thank you so much for your answer! Do you know exactly where I have to make the change? I've had a look at the stylesheet.css but I don't know what to change.. :( Thank you again! Simone Quote Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2007 Share Posted March 22, 2007 Hey there, I followed the steps verbatim on version 2.1 but i get and error click to see error page cheers for the help guys :) Quote Link to comment Share on other sites More sharing options...
blr044 Posted February 9, 2008 Share Posted February 9, 2008 (edited) I have the Wholesale Inquiries package v2.1 installed. When the wholesale inquiries is filled out, I only get the following in my email box: From: FIRST LAST Email Address: LAST@AOL.COM Order #: ITEM # 45215 Rest of information does not appear. In looking in the top section of wholesale.php the code seems to be all there. require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WHOLESALE); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); $store_name = tep_db_prepare_input($HTTP_POST_VARS['store_name']); $store_phone = tep_db_prepare_input($HTTP_POST_VARS['store_phone']); $store_address = tep_db_prepare_input($HTTP_POST_VARS['store_address']); $store_tax_id = tep_db_prepare_input($HTTP_POST_VARS['store_tax_id']); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, WHOLESALE_EMAIL, EMAIL_SUBJECT, 'Store Name: ' . $store_name . "\r\n\r\n" . 'Name: ' . $name . "\r\n\r\n" . 'Phone: ' . $store_phone . "\r\n\r\n" . 'Address: ' . $store_address . "\r\n\r\n" . 'Tax ID: ' . $store_tax_id . "\r\n\r\n" . 'Comments / Special Instructions: ' . $enquiry, $name, $store_address, $email_address); Also, the email has order # but code has tax ID # Even checked languages/english.php. It looks ok. So what am I missing? My contact us page works fine. Store is located here. Thanks. blr044 Edited February 9, 2008 by blr044 Quote Link to comment Share on other sites More sharing options...
sbottom2 Posted February 11, 2008 Share Posted February 11, 2008 I've got the contribution setup but it will not email me the information. I made sure to enter my email address correctly in the english.php file but I'm not receiving the info. Any ideas on what I've done wrong? Quote Link to comment Share on other sites More sharing options...
shubee Posted June 26, 2008 Share Posted June 26, 2008 Thanks for a wonderful contribution! I've installed this and it's working perfectly, I've got one (hopefully simple) question. What all would need to be changed if I wanted this page named distributor.php (as opposed to wholesale.php)? Sorry for the newbie question, I'm still learning php. Thanks! Quote Link to comment Share on other sites More sharing options...
mtekbilek Posted October 5, 2008 Share Posted October 5, 2008 Just wondering if anyone has tried this lately with the new os commerce templates. I followed the link and downloaded the latest version of this contribution, but still can not get a link to appear on my contact page,...any suggestions or comments would be appreciated. Thanks Quote Link to comment Share on other sites More sharing options...
Thomp Posted October 13, 2008 Share Posted October 13, 2008 (edited) Has anyone been able to merge this contrib with anti-robot registrations? I tried doing a merger and it did not work out that well. Here is my code: (ive got no clue why it does not work) <?php /* $Id: wholesale.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // BOF Anti Robot Validation v2.5 if (ACCOUNT_VALIDATION == 'true' && WHOLESALE_VALIDATION == 'true') { require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_VALIDATION); include_once('includes/functions/' . FILENAME_ACCOUNT_VALIDATION); } // EOF Anti Robot Registration v2.5 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WHOLESALE); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { // BOF Anti Robotic Registration v2.5 if (ACCOUNT_VALIDATION == 'true' && WHOLESALE_VALIDATION == 'true') { $sql = "SELECT * FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE session_id = '" . tep_session_id() . "' LIMIT 1"; if( !$result = tep_db_query($sql) ) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_1; } else { $entry_antirobotreg_error = false; $anti_robot_row = tep_db_fetch_array($result); if (( strtoupper($HTTP_POST_VARS['antirobotreg']) != $anti_robot_row['reg_key'] ) || ($anti_robot_row['reg_key'] == '') || (strlen($antirobotreg) != ENTRY_VALIDATION_LENGTH)) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_2; } else { $sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE session_id = '" . tep_session_id() . "'"; if( !$result = tep_db_query($sql) ) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_3; } else { $sql = "OPTIMIZE TABLE " . TABLE_ANTI_ROBOT_REGISTRATION . ""; if( !$result = tep_db_query($sql) ) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_4; } else { $entry_antirobotreg_error = false; } } } } if ($entry_antirobotreg_error == true) $messageStack->add('wholesale_submit', $text_antirobotreg_error); } // EOF Anti Robotic Registration v2.5 $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); $store_name = tep_db_prepare_input($HTTP_POST_VARS['store_name']); $store_phone = tep_db_prepare_input($HTTP_POST_VARS['store_phone']); $store_address = tep_db_prepare_input($HTTP_POST_VARS['store_address']); $store_tax_id = tep_db_prepare_input($HTTP_POST_VARS['store_tax_id']); // BOF Anti Robot Registration v2.5 if (tep_validate_email($email_address)) { $error = true; $messageStack->add('wholesale_submit', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } elseif (!$entry_antirobotreg_error == true) { tep_mail(STORE_OWNER, WHOLESALE_EMAIL, EMAIL_SUBJECT, 'Store Name: ' . $store_name . "\r\n\r\n" . 'Name: ' . $name . "\r\n\r\n" . 'Phone: ' . $store_phone . "\r\n\r\n" . 'Address: ' . $store_address . "\r\n\r\n" . 'Tax ID: ' . $store_tax_id . "\r\n\r\n" . 'Background information: ' . $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_WHOLESALE, 'action=success')); } // EOF Anti Robotic Registration v2.5 } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WHOLESALE)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('wholesale_request', tep_href_link(FILENAME_WHOLESALE, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('wholesale_submit') > 0) { ?> <tr> <td><?php echo $messageStack->output('wholesale_submit'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } else { ?> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><font size="2"><?php echo ENTRY_WHOLESALE_TEXT; ?></font><br><br> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" colspan="2"><?php echo ENTRY_NAME; ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo tep_draw_input_field('name'); ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo ENTRY_EMAIL; ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo tep_draw_input_field('email'); ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo ENTRY_STORE_NAME; ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo tep_draw_input_field('store_name'); ?> </td> </tr> <tr> <td class="main" colspan="2"><?php echo ENTRY_STORE_PHONE; ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo tep_draw_input_field('store_phone'); ?> </td> </tr> <tr> <td class="main" width="40%"><?php echo ENTRY_STORE_ADDRESS; ?></td> <td> </td> </tr> <tr> <td class="main" width="40%"><?php echo tep_draw_textarea_field('store_address', 'soft', 20, 4); ?></td> <td> </td> </tr> <tr> <td class="main" colspan="2"><?php echo ENTRY_STORE_TAX_ID; ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo tep_draw_input_field('store_tax_id'); ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td> </tr></table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php // BOF Anti Robot Registration v2.5 if (ACCOUNT_VALIDATION == 'true' && strstr($PHP_SELF,'wholesale_submit') && WHOLESALE_VALIDATION == 'true') { ?> <tr> <td class="main"><b><?php echo CATEGORY_ANTIROBOTREG; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <tr> <?php if (ACCOUNT_VALIDATION == 'true' && strstr($PHP_SELF,'wholesale_submit') && WHOLESALE_VALIDATION == 'true') { if ($is_read_only == false || (strstr($PHP_SELF,'wholesale_submit')) ) { $sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . tep_session_id() . "'"; if( !$result = tep_db_query($sql) ) { die('Could not delete validation key'); } $reg_key = gen_reg_key(); $sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . tep_session_id() . "', '" . $reg_key . "', '" . time() . "')"; if( !$result = tep_db_query($sql) ) { die('Could not check registration information'); } ?> <tr> <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea"> <tr> <td class="main"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" width="100%" NOWRAP><span class="main"> <?php echo ENTRY_ANTIROBOTREG; ?></span></td> </tr> <tr> <td class="main" width="100%"> <?php $check_anti_robotreg_query = tep_db_query("select session_id, reg_key, timestamp from anti_robotreg where session_id = '" . tep_session_id() . "'"); $new_guery_anti_robotreg = tep_db_fetch_array($check_anti_robotreg_query); $validation_images = '<img src="validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id'] . '">'; if ($entry_antirobotreg_error == true) { ?> <span> <?php echo $validation_images . ' <br> '; echo tep_draw_input_field('antirobotreg') . ' <br><b><font color="red">' . ERROR_VALIDATION . '<br>' . $text_antirobotreg_error . '</b></font>'; } else { ?> <span> <?php echo $validation_images . ' <br> '; echo tep_draw_input_field('antirobotreg', $account['entry_antirobotreg']) . ' ' . ENTRY_ANTIROBOTREG_TEXT; } } } ?> </span> </td> </tr> </table></td> </tr> </table></td> </tr> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } // EOF Anti Robot Registration v2.5 ?> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } ?> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Appreciate any help greatly!! Thanks!! -thomp Edited October 13, 2008 by Thomp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.