skip to content
AdaWiki
User Tools
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
You are here:
start
»
tutorials
»
zencartmods
»
back_in_stock_notifications.html
Trace:
tutorials:zencartmods:back_in_stock_notifications.html
==== back in stock notifications ==== We use the [[http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1108|Back in stock notifications]] plugin for zencart. The plugin itself works out of the box, and the installation instructions are easy enough to follow, but there are a few modifications to be made that we think makes it better. ==== Simple Captcha ==== We used [[http://www.phpcaptcha.org/|Securimage]], which also works quite well as advertised. Install Securimage somewhere on your webserver, and make these modifications to the Back in stock notifications plugin. In **includes/modules/pages/back_in_stock_notification_subscribe/header.php** Line 56 Add <code php> include("securimage.php"); $securimg = new Securimage(); $valid = $securimg->check($_POST['captcha_text']); </code> Then find Line 74 <code php> else if (strtolower($_POST['email']) != strtolower($_POST['cofnospam'])) { $form_errors['cofnospam'] = BACK_IN_STOCK_NOTIFICATION_FORM_ERROR_EMAIL_CONFIRMATION_DOESNT_MATCH; } </code> and replace with <code php> else if (strtolower($_POST['email']) != strtolower($_POST['cofnospam'])) { $form_errors['cofnospam'] = BACK_IN_STOCK_NOTIFICATION_FORM_ERROR_EMAIL_CONFIRMATION_DOESNT_MATCH; } else if (!isset($_POST['captcha_text']) || $valid == false) { $form_errors['captcha'] = BACK_IN_STOCK_NOTIFICATION_FORM_ERROR_CAPTCHA; } </code>
/home/ladyada/public_html/wiki/data/attic/tutorials/zencartmods/back_in_stock_notifications.html.1311259920.txt.gz
· Last modified: 2016/01/28 18:05 (external edit)
Page Tools
Show page
Old revisions
Backlinks
Back to top