It is currently Mon Feb 24, 2020 7:56 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Email-Form in overview?
PostPosted: Mon Mar 05, 2012 4:38 pm 

Joined :
Mon Mar 05, 2012 4:26 pm

Posts : 1
Hi,

is it possible to display the email-form also on the product-grid/product-list and not just on the product page?

Thanks,
Stephan :)


Report this post
Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 1:56 pm 

Joined :
Mon Mar 12, 2012 12:35 pm

Posts : 0
Open File : App/design/frontend/base/default/template/catalog/product/list.phtml
Step1:
//Start Place this content at starting of the page
$enableOutOfStock = Mage::getStoreConfig('Outofstocknotification/general/activate_apptha_outofstock_enable');
$crtlPageUrl = Mage::getBaseUrl().'/outofstocknotification/index/storeNotificationProductData';
$enableOutOfStock = intval($enableOutOfStock);
//End to place the content.

============================= For List mode ============================
Step2:
//change the foreach loop like this
<?php $i=0; foreach ($_productCollection as $_product): ?>
To
<?php $i=0; foreach ($_productCollection as $k => $_product): ?>

Step3:
//Find this lines
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>

//After append this code

<?php if($enableOutOfStock){ ?>
<br>
<div style="margin-top: 5%;" class="block-body apptha-outofstock-block-body line" id='responceMesPlace<?php echo $k;?>'>
<span id='contentofnotification<?php echo $k;?>'>
<div id="notify_conform<?php echo $k;?>" class="notify_conform"></div>
<span id="notify_message<?php echo $k;?>"><?php echo $notifyRequest; ?></span>
<div id="padding_div<?php echo $k;?>" style="height: 33px;margin-top: 4px;" >
<span id="notify_error<?php echo $k;?>" class="line notify_error"></span>
<span id="notify_submit<?php echo $k;?>"> <b>Email:</b>
<input id="outofstock_email<?php echo $k;?>" type="text" name="outofstock_email" >
<button class="button" title="Subscribe" type="submit"
onclick="return stockNotifyValidate('<?php echo $_product->getId(); ?>' , '<?php echo $_product->getName(); ?>' ,'<?php echo $_product->getProductUrl(); ?>' ,'<?php echo $crtlPageUrl; ?>','<?php echo $k;?>')" >
<span>Notify Me</span>
</button> <div id='ajaximageshowing<?php echo $k;?>' class="ajaxreloadimage" style="width: 20px;"></div>
<div style="display: none;color: red;font-size: 11px;margin-left: 43px;" id="outofstock_notify_error<?php echo $k;?>" >Please specify a <b>valid</b> Email Address<br></div>
</span>
</div></span></div>
<?php } ?>


Report this post
Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 2:00 pm 

Joined :
Mon Mar 12, 2012 12:35 pm

Posts : 0
============================= For Grid mode ============================
Step2:
//change the foreach loop like this
<?php $i=0; foreach ($_productCollection as $_product): ?>
To
<?php $i=0; foreach ($_productCollection as $k => $_product): ?>

Step3:
//Find this lines
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>

//After append this code

<?php if($enableOutOfStock){ ?>
<div id='responceMesPlace<?php echo $k;?>' class='responceMessStyle' >
<span id='contentofnotification<?php echo $k;?>'>
<div id="notify_conform<?php echo $k;?>" class="notify_conform"></div>
<span id="notify_message<?php echo $k;?>"><?php echo $notifyRequest; ?></span>
<div id="padding_div<?php echo $k;?>" >
<span id="notify_error<?php echo $k;?>" class="line notify_error"</span>
<span id="notify_submit<?php echo $k;?>">
<input id="outofstock_email<?php echo $k;?>" type="text" name="outofstock_email" style="margin-bottom: 2%;" ><br/>
<button class="button" title="Subscribe" type="submit" style="float: left;"
onclick="return stockNotifyValidate('<?php echo $_product->getId(); ?>' , '<?php echo $_product->getName(); ?>' ,'<?php echo $_product->getProductUrl(); ?>' ,'<?php echo $crtlPageUrl; ?>','<?php echo $k;?>')" >
<span>Notify Me</span>
</button>
<div id='ajaximageshowing<?php echo $k;?>' class="ajaxreloadimage" style="float: right !important;"></div>
<div style="display: none;color: red;font-size: 11px;margin-left: 43px;" id="outofstock_notify_error<?php echo $k;?>" >Please specify a <b>valid</b> Email Address<br></div>
</span>
</div>
</span>
<br/>
</div>
<?php } ?>
<?php endif; ?>
<ul class="add-to-links" style="clear: both;">


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron