Rev 19917 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(document).ready(function(){if($('#MasterDataCategoryId').val() == "6"){$('#MasterDataInternalRank').prop('readonly',false);}// if($('#MasterDataSourceId').val() == "4"){// $("#MasterDataExclusive").removeAttr("disabled");// }});</script><div class="container"><div class="row"><div class="col-lg-3"><?php echo $this->Element('adminactions');?></div><div class="col-lg-9"><?php echo $this->Form->create('MasterData'); ?><fieldset><legend><?php echo __('Add to existing Master Data bundle'); ?></legend><?phpecho $this->Form->input('skuBundleId');echo $this->Form->input('available_price');echo $this->Form->input('gross_price',array('value'=>0));echo $this->Form->input('brand');echo $this->Form->input('cashback', array('type' => 'hidden' ));echo $this->Form->input('category_id');echo $this->Form->input('category',array('type'=>'text','value'=>'Mobiles'));echo $this->Form->input('identifier',array('required'=>1));echo $this->Form->input('marketPlaceUrl');echo $this->Form->input('model_name');echo $this->Form->input('mrp',array('value'=>0));$showmrp=array(0=>"False",1=>"True");echo $this->Form->input('showMrp', array('options'=>$showmrp, 'selected'=>'False'));echo $this->Form->input('maxPrice',array('value'=>0));echo $this->Form->input('product_name');echo $this->Form->input('rank');echo $this->Form->input('internalRank', array('type'=>'number','value'=> 0,'required'=> true,'readonly'=> true));echo $this->Form->input('source_id');echo $this->Form->input('source',array('type'=>'text','value'=>'Amazon'));// echo $this->Form->label('Exclusive');// echo $this->Form->checkbox('exclusive',array('disabled' => true));echo $this->Form->input('secondaryIdentifier');echo $this->Form->input('sourceCategoryId', array('type' => 'hidden' ));echo $this->Form->input('sourceProductId', array('type' => 'hidden' ));echo $this->Form->input('source_product_name');echo $this->Form->input('source_url');echo $this->Form->input('status');echo $this->Form->input('in_stock',array('type'=>'select','options'=>$stock_statuses));echo $this->Form->input('stock_status',array('type'=>'text','value'=>'OOS'));echo $this->Form->input('thumbnail');echo $this->Form->input('url');echo $this->Form->input('quantity',array('type'=>'number','value'=>1));echo $this->Form->input('shippingCost',array('value'=>0));echo $this->Form->input('videoLink');$arrCategory=array(0=>"False",1=>"True");echo $this->Form->input('showVideo', array('options'=>$arrCategory, 'selected'=>0));// $arrSubCategory=array(0=>'None',7=>'Memory Card',8=>'Data Cable',9=>'USB Light',10=>'Screen Magnifier',11=>'Car Charger',12=>'Power Bank',13=>'Pendrive',14=>'Combo',15=>'Charger',16=>'Bluetooth Headset',17=>'Speaker',18=>'Adapter',20=>'Screen Guard',21=>'Earphone',22=>'Card Reader',23=>'Mobile Holder',24=>'Aux Cable',25=>'OTG Cable',26=>'Self Stick',27=>'Back Cover',28=>'Tempered Glass',29=>'Battery',30=>'Usb Hub',31=>'Portable Music Player');echo $this->Form->input('subCategoryId', array('options'=>$arrSubCategory, 'selected'=>$data['subCategoryId']));echo $this->Form->label('Show Net Price');echo $this->Form->checkbox('showNetPrice');echo $this->Form->input('offer',array('type'=>'textarea'));echo $this->Form->input('tagline',array('type'=>'textarea'));echo $this->Form->input('is_shortage',array('type'=>'select','options'=>$shortage_status));echo $this->Form->input('buyBoxFlag',array('type'=>'select','options'=>$buyBoxFlag));echo $this->Form->input('coupon');echo $this->Form->input('codAvailable',array('type'=>'select','options'=>$buyBoxFlag,'value'=>1));echo $this->Form->input('ignorePricing',array('type'=>'select','options'=>$buyBoxFlag,'default'=>0));echo $this->Form->input('snapdealSpecialItem',array('type'=>'select','options'=>$buyBoxFlag,'default'=>0));?></fieldset><?php echo $this->Form->end(__('Submit')); ?></div></div></div></div><script src="//cdn.ckeditor.com/4.5.2/full/ckeditor.js"></script><script type="text/javascript">CKEDITOR.replace( 'MasterDataOffer' );CKEDITOR.replace( 'MasterDataTagline' );</script>