Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

YePix

Members
  • Content count

    419
  • Joined

  • Last visited

  • Days Won

    7

YePix last won the day on October 25

YePix had the most liked content!

3 Followers

Profile Information

  • Real Name
    YePix

Recent Profile Visitors

27,884 profile views
  1. YePix

    Adding a telephone field to the contact form

    if (tep_validate_email($email_address)) { Checks whether the specified email address was entered correctly. You find this in: catalog/includes/functions/validations.php try it with that: if (empty($_POST[" telephone "])) { phoneErr = "phone is required"; } else { $ telephone = tep_db_prepare_input($_POST[' telephone ']); }
  2. YePix

    Adding a telephone field to the contact form

    try it like this catalog/includes/form_check.js.php Finde: Find: check_input("email_address", <?php echo ENTRY_EMAIL_ADDRESS_MIN_LENGTH; ?>, "<?php echo ENTRY_EMAIL_ADDRESS_ERROR; ?>"); Füge danach inzu: Add after: check_input("phone", <?php echo ENTRY_PHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_PHONE_ERROR; ?>"); catalog/includes/languages/"your_language_file".php Finde: Find: define('ENTRY_EMAIL_ADDRESS_ERROR', 'Your E-Mail Address must contain a minimum of ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters.'); Füge danach inzu: Add after: define('ENTRY_PHONE_MIN_LENGTH', '5'); define('ENTRY_PHONE_ERROR', 'Your phonenumber must contain a minimum of ' . ENTRY_PHONE_MIN_LENGTH . ' characters.');
  3. YePix

    Adding a telephone field to the contact form

    maybe that's it if (empty($_POST["phone"])) { phoneErr = "phone is required"; } else { $phone = tep_db_prepare_input($_POST['phone']); } <td class="main"><?php echo tep_draw_input_field('phone '); ?><?php echo phoneErr;?></td>
  4. YePix

    New V2 Forum

    The 2.xx forum is now available at a new address View forum here
  5. YePix

    Adding a telephone field to the contact form

    Try this <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $secret = '6LfjSr4UAAAAAKlThMtas78PrxscmSpZoHeRcs_D'; $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => 'https://www.google.com/recaptcha/api/siteverify', CURLOPT_POST => true, CURLOPT_POSTFIELDS => array( 'secret' => $secret, 'response' => $HTTP_POST_VARS['g-recaptcha-response'], 'remoteip' => $_SERVER['REMOTE_ADDR'] ), CURLOPT_RETURNTRANSFER => true )); $verifyResponse = curl_exec($ch); curl_close($ch); $responseData = json_decode($verifyResponse); if($responseData->success){ $name = tep_db_prepare_input(ucwords($_POST['name'])); $email_address = tep_db_prepare_input($_POST['email']); $phone = tep_db_prepare_input($_POST['phone']); $subject = tep_db_prepare_input(ucwords($_POST['subject'])); $enquiry = tep_db_prepare_input(ucwords($_POST['enquiry'])); $text = ENTRY_NAME . ' ' . $name . "\n" . ENTRY_TELEPHONE_NUMBER . ' ' . $phone . "\n" . ENTRY_EMAIL . ' ' . $email_address . "\n" . ENTRY_ENQUIRY . "\n" . $enquiry; if (tep_validate_email($email_address)) { if (strpos($enquiry, "href") > 1) { }else { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $text, $name, STORE_OWNER_EMAIL_ADDRESS, $phone); } tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } }else{ $error = true; $messageStack->add('contact', 'Robot verification failed, please try again.'); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!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 //--> <style type="text/javascript"> .terms-conditions{font-size: 13px;} </style> <!-- 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('contact_us', tep_href_link(FILENAME_CONTACT_US, '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> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('contact') > 0) { ?> <tr> <td><?php echo $messageStack->output('contact'); ?></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="left"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_wave.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 { ?> <!-- start mod anagram --> <tr> <td class="main"><STRONG><?php echo nl2br(STORE_NAME_ADDRESS); ?></STRONG><br><br></td> </tr> <!-- end mod anagram --> <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 class="main"><?php echo ENTRY_NAME; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('name'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('phone'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_EMAIL; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('email'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td><?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> <tr> <td class="terms-conditions"> <p style="font-size:12px"> <input type="checkbox" id="privacypolicy" /> Please confirm you consent to the storage and handling of your data by this website in order to answer your enquiry or to supply you with the information you require.</p> <p style="font-size:12px">If you don't wish to give consent then please call us on 01903 700778 with your query.</p> <p style="font-size:12px">We won't receive this form unless you give consent.</p> <p style="font-size:12px">Please see our <a href="/privacy.php" style="color: red; text-decoration: none; font-weight: bold;" target="_blank">Privacy and Data Policy</a> for details of what we do with your supplied infomation.</p> <style> .required{ color:red; } .g-recaptcha div { margin: auto; } </style> <script type="text/javascript" src='https://www.google.com/recaptcha/api.js'></script> <div id="g-recaptcha" class="g-recaptcha" data-sitekey="6LfjSr4UAAAAAMuhHo-vC9tx0TVUn68igMlQpzyc"></div> <div id="msgcaptcha" class="g-recaptcha error" style="color: red;"></div> <br/> </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 "> <img style="float: right;" src="/includes/languages/english/images/buttons/button_continue.gif" onclick="myFunction()" /> <input style="display:none" id="myDIV" style="float: right;" src="includes/languages/english/images/buttons/button_continue.gif" alt="Continue" title=" Continue " type="image" border="0"> <?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> <script type="text/javascript"> function myFunction() { if (document.getElementById("privacypolicy").checked == true) { var x = document.getElementsByName("contact_us"); var recaptcha = document.getElementById("g-recaptcha-response").value; if (recaptcha === "") { document.getElementById("msgcaptcha").innerHTML = "Please check the recaptcha"; return false; } x[0].submit(); } else { alert("Please confirm you consent to the storage and handling of your data by this website in order to answer your enquiry or to supply you with the information you require."); } } </script> <?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'); ?>
  6. YePix

    Adding a telephone field to the contact form

    Change telephone to phone or vice versa and everything will work. It is important that the variables match or send me the complete contact_us.php. I don't think you'll get any support here for 2.2.
  7. YePix

    Adding a telephone field to the contact form

    $name = tep_db_prepare_input(ucwords($_POST['name'])); $email_address = tep_db_prepare_input($_POST['email']); $phone = tep_db_prepare_input($_POST['phone']); $subject = tep_db_prepare_input(ucwords($_POST['subject'])); $enquiry = tep_db_prepare_input(ucwords($_POST['enquiry'])); $text = ENTRY_NAME . ' ' . $name . "\n" . ENTRY_TELEPHONE_NUMBER . ' ' . $phone . "\n" . ENTRY_EMAIL . ' ' . $email_address . "\n\n" . BOX_HEADING_SUBJECT . ' ' . $subject . "\n" . ENTRY_ENQUIRY . "\n" . $enquiry; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $text, $name, STORE_OWNER_EMAIL_ADDRESS, $phone); <tr> <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('phone'); ?></td> </tr>
  8. YePix

    addons for old versions

    You won't find them there either.
  9. YePix

    New V2 Forum

    What do you mean by billing program
  10. YePix

    New V2 Forum

    The support forum for the old 2.xx versions is online. If anyone is interested, simply register and post their concerns. I am convinced that there is no longer any support for the older versions. https://yepix.de/forum/index.php
  11. if someone uses the module get 1 free, here is a customer info. List of products with gifts offered in the shop. Just install it where you want it. <?php if (defined('MODULE_CONTENT_PRODUCT_INFO_GET_1_FREE_STATUS') && (MODULE_CONTENT_PRODUCT_INFO_GET_1_FREE_STATUS == 'True') ) { $check_get_1_free = tep_db_query("select gf.get_1_free_id from get_1_free gf, products p where gf.products_id = p.products_id"); if (tep_db_num_rows($check_get_1_free)) { ?> <div class="clearfix"></div><hr class="hr-gr mb-2 mt-2"> <div class="mb-2 mt-2 w3-large"><font color="#DD0000"><b><?php echo DISCOUNT_PAGE_MODULE_CONTENT_PRODUCT_INFO_GET_1_FREE_TITLE;?></b></font></div> <?php $products_cart_gift = '<img src="images/cart_gift.png">'; $get_1_free_product_query = tep_db_query("select gf.get_1_free_id, gf.products_id, gf.products_qualify_quantity, gf.products_free_quantity, pd.products_name from get_1_free gf, products p left join products_description pd on p.products_id = pd.products_id where gf.products_id = p.products_id order by gf.get_1_free_id"); while ($get_1_free_product = tep_db_fetch_array($get_1_free_product_query)){ $get_1_free_query = tep_db_query("select gf.products_free_id, p.products_id, pd.products_name from get_1_free gf, products p left join products_description pd on p.products_id = pd.products_id where gf.get_1_free_id = '" . $get_1_free_product['get_1_free_id'] . "' and p.products_id = gf.products_free_id order by gf.get_1_free_id"); if (tep_db_num_rows($get_1_free_query)) { while ($get_1_free = tep_db_fetch_array($get_1_free_query)){ $g1f = $get_1_free['products_name']; $g1f_pfid = $get_1_free['products_free_id']; } if ($get_1_free_product['products_qualify_quantity'] > 1){$pquqt = DISCOUNT_PAGE_TEXT_GET_1_FREE_PROMOTION_FOUR;}else{$pquqt = '';} ?> <div class="mb-2 mt-2 w3-border w3-border-blue w3-leftbar w3-round w3-padding"> <?php echo $products_cart_gift . ' ' . $get_1_free_product['products_qualify_quantity'] . ' ' . $pquqt;?> <a href="<?php echo tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'products_id=' . $get_1_free_product['products_id']); ?>"><b class="w3-text-black w3-hover-text-blue"><?php echo $get_1_free_product['products_name'];?></b></a> <?php echo DISCOUNT_PAGE_TEXT_GET_1_FREE_PROMOTION_TWO . ' ' . $get_1_free_product['products_free_quantity'];?> <a href="<?php echo tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'products_id=' . $g1f_pfid); ?>"><b class="w3-text-blue w3-hover-text-black"><?php echo $g1f;?></b></a> <?php echo DISCOUNT_PAGE_TEXT_GET_1_FREE_PROMOTION_THREE;?> </div> <?php }}}}?> language: define('DISCOUNT_PAGE_MODULE_CONTENT_PRODUCT_INFO_GET_1_FREE_TITLE', 'Geschänkartikel'); define('DISCOUNT_PAGE_TEXT_GET_1_FREE_PROMOTION', '<font color="#990000">ANGEBOT:</font>'); define('DISCOUNT_PAGE_TEXT_GET_1_FREE_PROMOTION_TWO', 'kaufen und Sie bekommen von uns '); define('DISCOUNT_PAGE_TEXT_GET_1_FREE_PROMOTION_THREE', 'dazu geschenkt.'); define('DISCOUNT_PAGE_TEXT_GET_1_FREE_PROMOTION_FOUR', 'identische'); define('DISCOUNT_PAGE_TEXT_GET_1_FREE_ATTRIBUTE_PROMOTION', '<font color="#990000">ACHTUNG!</font> Bei diesem Angebot müssen die'); define('DISCOUNT_PAGE_TEXT_GET_1_FREE_ATTRIBUTE_PROMOTION_TWO', 'im Warenkorb identisch sein'); define('DISCOUNT_PAGE_TEXT_OFFER_ENDS', ' - Zeitlich begrenztes Angebot endet');
  12. YePix

    New V2 Forum

    Yes. I'll be right there
  13. And do you still think so?
  14. YePix

    Help with SQL

    $products_query = tep_db_query("SELECT op.products_model, op.orders_id, op.products_quantity, opa.orders_id, opa.products_options_values FROM
  15. How do you mean ? example would be helpful
×