Try the Demo

Magento Forum

   
Gal kas zino kodel neveikia Refer a Friend
 
alaurencikas
Jr. Member
 
Total Posts:  3
Joined:  2011-06-28
 

gal kode yra klaida? ismeta zinute ‘‘There has been a problem with the invitation.’

?>
<div class="page-head">
<h3><?php echo $this->__('Referral') ?></h3>
</div>
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
<form action="<?php echo $this->getUrl('rewardpoints/index/referral/') ?>” method="post" id="form-validate">

<fieldset class="group-select">
<input type="hidden" value="Il1NwrpfsCuSmp03" name="form_key"/>
<h4 class="legend"><?php echo $this->__('Refer a friend') ?></h4>
<ul>
<li>
<div class="input-box">
<label for="telephone"><?php echo $this->__('Friend\'s name') ?> <span class="required">*</span></label><br />
<input type="text" name="name" value="” title="<?php echo $this->__('Friend\' name') ?>” class="required-entry input-text” id="name" />
</div>
<div class="input-box">
<label for="fax"><?php echo $this->__('Friend\'s email address') ?> <span class="required">*</span></label><br />
<input type="text" name="email" id="email" title="<?php echo $this->__('Friend\'s email address') ?>” value="” class="required-entry input-text” />
</div>
</li>
</ul>
</fieldset>
<div class="button-set">
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
<!--<a href="<?php echo $this->getBackUrl() ?>” class="left">« <?php echo $this->__('Back') ?></a>-->
<button class="form-button" type="submit"><span><?php echo $this->__('Send') ?></span></button>
</div>
</form>
<script type="text/javascript">
var dataForm = new VarienForm(’form-validate’, true);
</script>
<br /><br />
<?php $_referred = $this->getReferred();?>
<?php if($_referred->getSize()): ?>
<?php echo $this->getPagerHtml() ?>
<table cellspacing="0" class="data-table" id="referred-friends-table">
<thead>
<tr>
<?php ?><th><?php echo $this->__('Full Name') ?></th><?php ?>
<th><?php echo $this->__('Email') ?></th>
<!--<th><?php echo $this->__('Registered?') ?></th>-->
<th><?php echo $this->__('First order?') ?></th>
</tr>
</thead>
<tbody>
<?php $_odd = ''; ?>
<?php foreach ($_referred as $_friend): ?>
<tr>
<?php ?><td><?php echo $_friend->getRewardpoints_referral_name() ?></td><?php ?>
<td><?php echo $_friend->getRewardpoints_referral_email() ?></td>
<!--<td><?php echo $_friend->getRewardpoints_referral_child_id() ? $this->__('yes') : $this->__('no') ?></td>-->
<td class="a-right"><?php echo $_friend->getRewardpoints_referral_status() ? $this->__('yes') : $this->__('no') ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php echo $this->getPagerHtml() ?>
<?php else: ?>
<p><?php echo $this->__('You haven\'t invited any friend.'); ?></p>
<?php endif ?>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top