Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
  • Gender
  1. Makes sense, the old payment module I'm using is still on the payment page, that's why I was confused. Thank for your help guys.
  2. I'm new to using the Authorize.net module, transitioning from Skipjack who is discontinuing service. I'm using a modified oscommerce 2.3.1., when I install the module, it the cc info form shows up on the confirmation page, instead of the payment page (like my current payment module). I couldn't find an answer to this on here. Any assistance would be appreciated.
  3. Hey Dom.. I figured it out! My error of course. I had my Store Owner email in the admin panel set to "Gio Culinary Studio" <chefgio@gioculinarystudio> I must have changed it recently for some reason or another, but I changed it back to simply chefgio@gioculinarystudio.com, now it works. Thanks again!
  4. Yes, I thought it was odd too. Thanks for your help! <?php /* $Id: customer_testimonials_write.php, v1.2 12th November 2014 auzStar (Dominic C.) Exp $ Customer Testimonials for osCommerce 2.3.4 - v1.2 Includes Image Upload code by Bill Kellum 'bkellum' (Scrolling Customer Testimonials) Includes ReCaptcha and admin functions by David G. 'Richard Cranium' (Scrolling Customer Testimonials) osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2014 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // Redirect user to home page if Admin has disabled Customer Testimonials mod or disabled the write testimonials option // The user should not be able to get to this module in that state, but just in case // We check for it to prevent problems if (TESTIMONIAL_ACTIVE != 'Yes' || TESTIMONIAL_REGISTERED_WRITE == "Disabled") { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } // Redirect user to login page if: // only registered users are permitted to write testimonials and user is not logged in if (TESTIMONIAL_REGISTERED_WRITE == "Registered Users Only" && !tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CUSTOMER_TESTIMONIALS_WRITE); if (TESTIMONIAL_CAPTCHA == 'Yes') { // include reCaptcha require_once('includes/classes/recaptchalib.php'); } $testimonials_error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'insert')) { $testimonials_title = tep_db_prepare_input($HTTP_POST_VARS['testimonials_title']); $testimonials_name = tep_db_prepare_input($HTTP_POST_VARS['testimonials_name']); $testimonials_email = tep_db_prepare_input($HTTP_POST_VARS['testimonials_email']); $testimonials_location = tep_db_prepare_input($HTTP_POST_VARS['testimonials_location']); $testimonial = tep_db_prepare_input($HTTP_POST_VARS['testimonial']); if (empty($testimonials_name)) { $testimonials_error = true; $messageStack->add('testimonials', ERROR_TESTIMONIALS_WRITE_NAME_REQUIRED); } if (empty($testimonials_email)) { $testimonials_error = true; $messageStack->add('testimonials', ERROR_TESTIMONIALS_WRITE_EMAIL_REQUIRED); } else if (!tep_validate_email($testimonials_email)) { $testimonials_error = true; $messageStack->add('testimonials', ERROR_TESTIMONIALS_WRITE_EMAIL_ADDRESS_CHECK); } if (empty($testimonials_title)) { $testimonials_error = true; $messageStack->add('testimonials', ERROR_TESTIMONIALS_WRITE_TITLE_REQUIRED); } if (empty($testimonial)) { $testimonials_error = true; $messageStack->add('testimonials', ERROR_TESTIMONIALS_WRITE_DESCRIPTION_REQUIRED); } // start reCaptcha if (TESTIMONIAL_CAPTCHA == 'Yes') { // the response from reCAPTCHA $resp = null; if (isset($HTTP_POST_VARS["recaptcha_response_field"])) { // was there a reCAPTCHA response? $challenge = tep_db_prepare_input($HTTP_POST_VARS["recaptcha_challenge_field"]); $response = tep_db_prepare_input($HTTP_POST_VARS["recaptcha_response_field"]); $resp = recaptcha_check_answer (RECAPTCHA_PRIVATE_KEY, $_SERVER["REMOTE_ADDR"], $challenge, $response); if (!$resp->is_valid) { $testimonials_error = true; $messageStack->add('testimonials', ENTRY_SECURITY_CHECK_ERROR); } } } if (!$testimonials_error) { // make sure testimonials directory exists if (!is_dir(DIR_WS_IMAGES . 'testimonials')) mkdir(DIR_WS_IMAGES . 'testimonials', '777'); $testimonial_image = new upload('testimonial_image'); $testimonial_image->set_destination(DIR_WS_IMAGES . 'testimonials/'); $imagefiletypes = array('jpg','jpeg','gif','png','bmp'); $testimonial_image->set_extensions($imagefiletypes); if ($testimonial_image->parse() && $testimonial_image->save()) { $testimonial_image_name = $testimonial_image->filename; } $languages_query = tep_db_query("select languages_id from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); $sql_data_array = array('testimonials_title' => $testimonials_title, 'testimonials_location' => $testimonials_location, 'testimonials_name' => $testimonials_name, 'testimonials_email' => $testimonials_email, 'testimonials_html_text' => $testimonial, 'testimonial_image' => $testimonial_image_name, 'language_id' => (int)$language_id['languages_id'], 'date_added' => 'now()', 'status' => '0'); tep_db_perform(TABLE_CUSTOMER_TESTIMONIALS, $sql_data_array); require(DIR_WS_LANGUAGES . TESTIMONIAL_ADMIN_EMAIL . '/' . FILENAME_CUSTOMER_TESTIMONIALS_ADMIN_EMAIL); $email_text = EMAIL_TESTIMONIAL_TEXT . $testimonials_name . (tep_not_null($testimonials_location) ? EMAIL_TESTIMONIAL_OF . $testimonials_location : '') . '.' . "\n\n" . EMAIL_TESTIMONIAL_TITLE . $testimonials_title . "\n\n" . EMAIL_TESTIMONIAL_HTML_TEXT . $testimonial . "\n\n" . EMAIL_TESTIMONIAL_APPROVE; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_TESTIMONIAL_SUBJECT, $email_text, $testimonials_name, $testimonials_email); tep_redirect(tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE, 'action=success')); } } $breadcrumb->add(NAVBAR_TITLE_WRITE, tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE)); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <style> span#show_less_info, span#more_info { display: none; } </style> <script type="text/javascript"><!-- function checkForm() { var error = 0; var error_message = "<?php echo JS_ERROR; ?>"; var testimonials_name = document.customer_testimonial.testimonials_name.value; var testimonials_email = document.customer_testimonial.testimonials_email.value; var testimonials_title = document.customer_testimonial.testimonials_title.value; var testimonial = document.customer_testimonial.testimonial.value; if (testimonials_name.length < 1) { error_message = error_message + "<?php echo ERROR_TESTIMONIALS_WRITE_NAME_REQUIRED; ?>\n"; error = 1; } if (testimonials_email.length < 1) { error_message = error_message + "<?php echo ERROR_TESTIMONIALS_WRITE_EMAIL_REQUIRED; ?>\n"; error = 1; } if (testimonials_title.length < 1) { error_message = error_message + "<?php echo ERROR_TESTIMONIALS_WRITE_TITLE_REQUIRED; ?>\n"; error = 1; } if (testimonial.length < 1) { error_message = error_message + "<?php echo ERROR_TESTIMONIALS_WRITE_DESCRIPTION_REQUIRED; ?>\n"; error = 1; } var captcha_activated = '<?php echo (TESTIMONIAL_CAPTCHA == 'Yes' ? true : false); ?>'; // switch used to determine if captcha feature is enabled if (captcha_activated) { var recaptcha_response_field = document.customer_testimonial.recaptcha_response_field.value; if (recaptcha_response_field.length < 1) { error_message = error_message + "<?php echo ENTRY_SECURITY_CHECK_BLANK_ERROR; ?>"; error = 1; } } if (error == 1) { alert(error_message); return false; } else { return true; } } //--></script> <h1><?php echo HEADING_TITLE_WRITE; ?></h1> <?php if ($messageStack->size('testimonials') > 0) { echo $messageStack->output('testimonials'); } ?> <div class="contentContainer"> <?php if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <div class="contentText"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <tr> <td class="main" align="center"><span style="color: green;"><?php echo TEXT_TESTIMONIALS_SUCCESS; ?></span></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table> </div> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT), 'primary', array('iconpos' => 'right')); ?></span> </div> <?php } else { if (tep_session_is_registered('customer_id')) { $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $testimonials_name = tep_output_string_protected($account['customers_firstname'] . ' ' . $account['customers_lastname']); $testimonials_email = $account['customers_email_address']; } ?> <?php echo tep_draw_form('customer_testimonial', tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE, 'action=insert'), 'post', 'enctype="multipart/form-data" onsubmit="return checkForm();"', true); ?> <div class="contentText"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-top: 0px;"> <tr> <td class="main" style="padding-bottom: 5px;"> <?php echo TEXT_TESTIMONIALS_WRITE_INTRO . '<span id="show_more_info" class="read_more" style="white-space: nowrap; padding: 1px 5px 0 10px; cursor: pointer;">....' . LINK_READ_MORE . '</span><span id="show_less_info" class="read_more" style="white-space: nowrap; padding: 1px 5px 0 10px; cursor: pointer;">....' . LINK_SHOW_LESS . '</span>'; ?> <span id="more_info"><?php echo TEXT_TESTIMONIALS_WRITE_INTRO_2; ?></span> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><b><?php echo TEXT_TESTIMONIALS_WRITE_SUBMIT; ?></b></td> <td align="right"><span class="inputRequirement"><?php echo FORM_REQUIRED_INFORMATION; ?></span></td> </tr> </table></td> </tr> <tr> <td><div class="ui-widget-content infoBoxContents"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="fieldKey"><?php echo ENTRY_TESTIMONIALS_WRITE_NAME; ?></td> <td class="fieldValue" colspan="2"> <?php echo tep_draw_input_field('testimonials_name', $testimonials_name, '', true) . (tep_not_null(ENTRY_TESTIMONIALS_WRITE_NAME_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_TESTIMONIALS_WRITE_NAME_TEXT . '</span>': ''); ?></td> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_TESTIMONIALS_WRITE_EMAIL; ?></td> <td class="fieldValue" colspan="2"> <?php echo tep_draw_input_field('testimonials_email', $testimonials_email, '', true) . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_TESTIMONIALS_WRITE_LOCATION; ?></td> <td class="fieldValue" colspan="2"> <?php echo tep_draw_input_field('testimonials_location', $testimonials_location); ?></td> </tr> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_TESTIMONIALS_WRITE_TITLE; ?></td> <td class="fieldValue" colspan="2"> <?php echo tep_draw_input_field('testimonials_title', $testimonials_title, '', true) . (tep_not_null(ENTRY_TESTIMONIALS_WRITE_TITLE_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_TESTIMONIALS_WRITE_TITLE_TEXT . '</span>': ''); ?></td> </tr> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="fieldKey" colspan="3"><?php echo ENTRY_TESTIMONIALS_WRITE_HTML_TEXT . (tep_not_null(ENTRY_TESTIMONIALS_WRITE_TESTIMONIAL_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_TESTIMONIALS_WRITE_TESTIMONIAL_TEXT . '</span>': ''); ?></td> </tr> <tr> <td colspan="3" style="padding: 3px 8px 3px 3px;"><?php echo tep_draw_textarea_field('testimonial', 'soft', '130', '10', $testimonial, 'style="resize: none;"'); ?></td> </tr> <?php if (TESTIMONIAL_IMAGE_ALLOW == 'Yes') { ?> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?></td> </tr> <tr> <td valign="top" class="fieldKey"><?php echo ENTRY_TESTIMONIALS_WRITE_UPLOAD_IMAGE; ?></td> <td class="fieldValue" colspan="2"> <?php echo tep_draw_file_field('testimonial_image'); ?></td> </tr> <?php } if (TESTIMONIAL_CAPTCHA == 'Yes') { ?> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?></td> </tr> <tr> <td class="fieldKey" valign="top"><?php echo ENTRY_SECURITY_CHECK; ?></td> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'white', tabindex : 3, lang : '<?php if (in_array($language_id['code'], array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) { echo $language_id['code']; } else { echo 'en'; } ?>', }; </script> <td class="fieldValue" width="1%"><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY, null, ($request_type == 'SSL')) . (tep_not_null(ENTRY_SECURITY_CHECK_TEXT) ? '</td><td valign="top" align="left"><span class="inputRequirement"> ' . ENTRY_SECURITY_CHECK_TEXT . '</span>': ''); ?></td> </tr> <?php } ?> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> </table> </div></td> </tr> </table> </td> </tr> </table> </div> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_SUBMIT_TESTIMONIAL, 'triangle-1-e', null, 'primary', array('iconpos' => 'right')); ?></span> <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS)); ?> </div> </form> <?php } ?> </div> <br /> <br /> <br /> <noscript><style> span#show_more_info { display: none; } span#more_info { display: block; } </style></noscript> <script type="text/javascript"> $(function(){ $("span#show_more_info").click(function() { $("span#more_info").show(); $(this).hide(); $("span#show_less_info").show(); }).on('selectstart', function (event) { event.preventDefault(); }); $("span#show_less_info").click(function() { $("span#more_info").hide(); $(this).hide(); $("span#show_more_info").show(); }).on('selectstart', function (event) { event.preventDefault(); }); }); </script> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  5. Hey Dom, Thanks very much for all your work, I really like this contribution and so do my customers. I finally got around to upgrading to 1.2, works great but for some reason, I'm not getting email notifications anymore when a testimonial is written. It was working before. I've looked all through the code and can't figure it out. Any thoughts?
  6. Thanks for all of your help Dom, I made all the changes and now it works perfectly!
  7. Thanks very much Dom, much appreciated!! I'll give this a try as soon as I can and report the results.
  8. Awesome! thanks Dom! somewhere in my copying and pasting I must have certainly made some errors. I'm traveling to Italy tomorrow. but once I arrive and have a little down time, I'll work on this and let you know how I make out. Thanks very much for all of your help!
  9. Hi Dom, Thanks for the quick reply, yes I activated 5 testimonials have the min scroll set as 2. Looks like the new jQuery was not working in ie or firefox, I'm getting a 404 error when I click on the product info page image, but it was working in Chrome. As far as I can tell, I placed all the files and folders in the right place, but when I get a chance I'm going to do it over..in the mean time, I reversed the template_top and jQuery file changes back to what they were. I have a custom theme, and have several addons on my 2.3.1 so that may be the issue as well. Thanks for your help! https://gioculinarystudio.com/oscommerce1/catalog/customer_testimonials.php
  10. Great contribution! Thank you! Having some trouble with the scrolling. I'm running 2.3.1, followed those instructions and triple checked everything. Activated scrolling in admin, set the min scroll number etc.. but I'm still only getting one testimonial that changes on refresh. Maybe I missed something?
  11. Orderlist for 2.3.1

    Hello, Do you know how I could get this to search by product name? Any help is much appreciated!
  12. Credit Class & Gift Vouchers (CCGV) for 2.3.1

    Hello! Can anyone help me figure out how to give a 100% discount coupon? When I attempt to check out after applying the coupon successfully, I get an error saying The first four digits of the number entered are: . If that number is correct, we do not accept that type of credit card. If it is wrong, please try again. I had the same issue when send out Gift Vouchers that covered the entire purchase and was able to fix that after some research by changing this line in checkout_process.php if ($credit_covers) $payment=''; to if ($credit_covers) $payment='credit_covers'; I'm still using using V10.2 by the way.
  13. Orderlist for 2.3.1

    This is an awesome contribution but I'm running into a few of problems. 1.When I try to search by "Past Days" I always get zero results. 2. When I search by date range example February 1, 2012- February 24, 2012 (today), It will only display up to February 23 2012. I have to enter February 25, 2012 to get results for todays (Feb 24, 2012) orders. 3. When I seach by Date Range example February 17, 2012- February 25, 2012 its shows every order even before February 17, 2012. Any idea of how to fix this?
  14. Credit Class & Gift Vouchers (CCGV) for 2.3.1

    Figured it out. So in catalog/checkout_process.php go to line 53ish and change this: if ($credit_covers) $payment=''; To This: if ($credit_covers) $payment='credit_covers';
  15. Credit Class & Gift Vouchers (CCGV) for 2.3.1

    I hope someone can help me out, I've installed CCGV 6.0 for 2.3.1 everything seems to work fine, however..when you check use gift voucher balance, hit continue and then confirm order, it says say "please select a payment method for your order", even when the amount in the gift voucher account is more than the total of the order. I installed this modification on a fresh copy of 2.3.1. Anyone have an idea?