Jump to content



zpupster

Member Since 11 Jul 2010
OFFLINE Last Active Mar 22 2017 10:57
-----

Posts I've Made

In Topic: Product attributes and add shipping weight

20 March 2017 - 13:46

example given:

 

model 1--0.00 plus ship wt 3

model 2--10.00 plus ship wt 5

model 3--20.00 plus ship wt 12

 

how to get the shipping weight to add when going through checkout


In Topic: multiple emails

03 March 2017 - 01:15

yes that was it thank you Jim for all your help.

 

ty again,

 

craig


In Topic: multiple emails

02 March 2017 - 18:01

I see now it should read

tep_mail(STORE_OWNER, 'techsupport@mywebsite.com', EMAIL_SUBJECT, $enquiry, $name, $email_address);

and it still is sending it to the site owners email(???)

 

it looks like it should go to techsupport@mywebsite.com


In Topic: multiple emails

02 March 2017 - 16:10

this off new page tech.php
 
 
<?php
/*
  $Id$


  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com


  Copyright (c) 2010 osCommerce


  Released under the GNU General Public License
*/


  require('includes/application_top.php');


  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_TECH);
  
  
  
   if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken)) {
    $error = false;


    $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']);


    if (!tep_validate_email($email_address)) {
      $error = true;


      $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
    }


    $actionRecorder = new actionRecorder('ar_contact_us', (tep_session_is_registered('customer_id') ? $customer_id : null), $name);
    if (!$actionRecorder->canPerform()) {
      $error = true;


      $actionRecorder->record(false);




      $messageStack->add('contact', sprintf(ERROR_ACTION_RECORDER, (defined('MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES') ? (int)MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES : 15)));
    }


    if ($error == false) {
      tep_mail(STORE_OWNER, 'techsupport@[member='MySitesOnline'].com', EMAIL_SUBJECT, $enquiry, $name, $email_address);


      $actionRecorder->record();


      tep_redirect(tep_href_link(FILENAME_TECH, 'action=success'));
    }
  }


  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_TECH));












  require(DIR_WS_INCLUDES . 'template_top.php');
?>


<div class="page-header">
  <h1><?php echo HEADING_TITLE; ?></h1>
</div>




 <?php echo TEXT_INFORMATION; ?>
<?php
  if ($messageStack->size('contact') > 0) {
    echo $messageStack->output('contact');
  }


  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>


<div class="contentContainer">
  <div class="contentText">
    <div class="alert alert-info"><?php echo TEXT_SUCCESS; ?></div>
  </div>


  <div class="pull-right">
    <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', tep_href_link(FILENAME_DEFAULT)); ?>
  </div>
</div>


<?php
  } else {
?>
<div class="page-header">
  <h1><?php echo HEADING_TITLE; ?> Form</h1>
</div>
<?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_TECH, 'action=send'), 'post', 'class="form-horizontal"', true); ?>


<div class="contentContainer">
  <div class="contentText_left">
  
    <p class="inputRequirement text-right"><?php echo FORM_REQUIRED_INFORMATION; ?></p>
    <div class="clearfix"></div>


    <div class="form-group has-feedback">
      <label for="inputFromName" class="control-label col-sm-3"><?php echo ENTRY_NAME; ?></label>
      <div class="col-sm-9">
        <?php
        echo tep_draw_input_field('name', NULL, 'required autofocus="autofocus" aria-required="true" id="inputFromName" placeholder="' . ENTRY_NAME . '"');
        echo FORM_REQUIRED_INPUT;
        ?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputFromEmail" class="control-label col-sm-3"><?php echo ENTRY_EMAIL; ?></label>
      <div class="col-sm-9">
        <?php
        echo tep_draw_input_field('email', NULL, 'required aria-required="true" id="inputFromEmail" placeholder="' . ENTRY_EMAIL . '"', 'email');
        echo FORM_REQUIRED_INPUT;
        ?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputEnquiry" class="control-label col-sm-3"><?php echo ENTRY_ENQUIRY; ?></label>
      <div class="col-sm-9">
        <?php
        echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, NULL, 'required aria-required="true" id="inputEnquiry" placeholder="' . ENTRY_ENQUIRY . '"');
        echo FORM_REQUIRED_INPUT;
        ?>
      </div>
    </div>
  </div>
<div class="clearfix"></div>
  <div class="buttonSet">
    <div class="text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-send', null, 'primary', null, 'btn-success'); ?></div>
  </div>
</div>


</form>
<!--
SiteSeal Html Builder Code:
Shows the logo at URL https://seal.networksolutions.com/images/basicrecblue.gif
Logo type is  ("NETSB")
//-->
<script language="JavaScript" type="text/javascript"> SiteSeal("https://seal.networksolutions.com/images/basicrecblue.gif","NETSB", "none");</script>
<?php
  }


  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

In Topic: multiple emails

02 March 2017 - 11:44

  frankl-no on different pages

 

 

 

  kymation

 

changed to this, saved and did a test but i still get an email in the store owners email(???)

tep_mail(STORE_OWNER, 'somebody@Example.com', EMAIL_SUBJECT, $enquiry, $name, $email_address);

ty,

craig