And nothing showed beside this, but when the user checks in \app\code\local\Adodis\Pincodecheck\controllers it shows:Hello Admin.'
Customer'.wants to be notified when the below product is available in our inventory<br/><p>Item Name :</p>SKU :
p><p> Search Code :</p>Bar Code :
p>
Where does need fix to get a proper email? You can resolve the issue by adding these headers and pass it.$to = "sales@abcd.com"; $subject = "Product in demand"; $txt = "Hello Admin.'
Customer'.".$pincode."wants to be notified when the below product is available in our inventoryItem Name :"
.$name."SKU :"
.$sku."Search Code :"
.$scode."Bar Code :"
.$bcode.""; mail($to,$subject,$txt);
Question No. 2 If condition not returning correct results once an email sent. The user has a pop-up window on product pages, currently, it loads perfectly and works fine, but when you fill out the form it shows the default statement which is "Requesting email availability notification for the following product: product name". The user just wants the form to show a confirmation message instead of default message i.e. "You will be notified - Thank You". The current code is:$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $to = "sales@abcd.com"; $subject = "Product in demand"; $txt = "Hello Admin.'
Customer'.".$pincode."wants to be notified when the below product is available in our inventoryItem Name :"
.$name."SKU :"
.$sku."Search Code :"
.$scode."Bar Code :"
.$bcode.""; mail($to,$subject,$txt, $headers);
php ob_start(); require_once('Ambiance/Environment/envi.php'); require_once('Ambiance/Modules/Product.php'); Environment::InitializeVDDB(Environment::dsn()); $product_id = strtoupper($_REQUEST['product_id']); if (!$db->getOneEx(SQL::checkProductExists($product_id))): die('Invalid Product ID'); endif; // Select product info $product = $db->getRowEx(SQL::getProductInfo($product_id)); $prod = new Product($product); $image_path = Environment::main_docroot() . '/images/' . $product['as_sub_category_id'] . '/' . $product_id; $prod_details = get_cart_info($prod); Environment::LoadForms(array('AvailabilityNotification')); require_once(Environment::include_path() . '/common/common_page_top.php'); ?>
Request Availability Notification php require_once(Environment::include_path() . '/common/common_css.php'); require_once(Environment::include_path() . '/common/common_js.php'); ?> style="background:#D9DADA;"> class="commonPopup">class="popupHead">Request Availability Notificationclass="floatLeft paddingLft20 paddingRgt20"> if ($availabilitynotification->isProcessed()): ?>class="bold">You will be notified - Thank you
endif;?>class="floatLeft"> Requesting e-mail availability notification for the following product:
class="floatLeft w90p"> class="floatLeft"> if ($thumb = VDFileAccess::get_item_header_img($image_path)): ?> =Environment::webroot()?>/product/item.php?product-id==$product_id?>" title=""> class="displayPic">=Environment::webroot()?>/images/product/=$product['as_sub_category_id']?>/=$product_id?>/thumbs/=$thumb?>" > else: ?> =Environment::webroot()?>/product/item.php?product-id==$product_id?>" title=""> class="displayPic">=Environment::webroot()?>/images/product/no_image/thumbs/noimage.jpg" > endif;?> class="floatLeft w70p paddingTop10 marginLft15">class="bold floatLeft nobtmMargin">=Environment::encode_char($product['name'])?> =iif(strlen($product['description']), '- ' . Environment::encode_char($product['description']), '')?>
class="clear">class="bold floatLeft notopMargin">Item #=$product_id?>
class="commonform marginTop15"> class="bold">Enter your email address in the form below
$_SERVER['PHP_SELF']?>"> =$availabilitynotification->process->getElement()?> =$availabilitynotification->name->getElement()?> =$availabilitynotification->product_id->getElement()?> class="floatLeft"> class="inputLeft-Style3 "> type="text" name="email" onBlur="if (this.value == '') {this.value = 'E-mail address';}" onFocus="if(this.value == 'E-mail address') {this.value = '';}" value="E-mail address" class="inputMiddle-Style3 width305px"/> class="inputRight-Style3"> if ($availabilitynotification->hasErrors()): foreach ($availabilitynotification->getErrors() as $error) { ?> } endif; ?>class="clear">
class="floatLeft w100p"> class="floatLeft paddingTop10"> class="textGrey" href="#" onClick="parent.$.fn.colorbox.close();"> class="greyBtnLft-Big font12">Cancel class="greyBtnRgt-Big"> class="floatLeft marginLft30 paddingTop10"> class="textGrey" href="#" onClick="$('#email_product_availability').submit();"> class="blueBtnLft-Sml font12">Submit class="blueBtnRgt-Sml"> class="popupLogo floatRight">