Saravanan_DS

Dropdown

May 19th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <select class=" input-text custgroup required-entry" name="product[tier_price][<?php echo $i; ?>][cust_group]" id="tier_price_row_<?php echo $i;?>_cust_group">
  2.         <option value=''>Select Customer Group</option>
  3.         <option <?php if($tierPrice['cust_group']=='32000') echo 'selected = "selected"';?> value='32000'>ALL GROUPS</option>
  4.         <?php $customer = Mage::getModel('customer/group')->getCollection();
  5.         foreach($customer as $type) {?>
  6.         <option <?php if($tierPrice['cust_group']== $type['customer_group_id']) {echo 'selected = selected"';}?> value="<?php echo $type->getCustomerGroupId();?>">
  7. <?php echo $type['customer_group_code']; ?></option>
  8. <?php } ?>
  9.  
  10. </select>
Add Comment
Please, Sign In to add comment