Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. // /override/classes/Product.php
  2. <?php
  3. Class Product extends ProductCore
  4. {
  5. public $quota;
  6. public $initial_quota_value;
  7.  
  8. public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null)
  9. {
  10. self::$definition['fields']['quota'] = array('type' => self::TYPE_INT, 'validate' => 'isInt', 'size' => 2);
  11. self::$definition['fields']['initial_quota_value'] = array('type' => self::TYPE_INT, 'validate' => 'isInt', 'size' => 12);
  12. parent::__construct($id_product, $full, $id_lang, $id_shop, $context);
  13. }
  14. }
  15. ?>
  16.  
  17.  
  18. /adminxxxx/themes/default/template/controllers/products/prices.tpl
  19.  
  20. <div class="form-group">
  21. <div class="col-lg-1"><span class="pull-right">Cantidad de cuotas</span></div>
  22. <label class="control-label col-lg-2" for="quota">
  23. <span class="label-tooltip" data-toggle="tooltip" title="Cantidad de cuotas"></span>
  24. </label>
  25. <div class="input-group col-lg-2">
  26. <span class="input-group-addon">#</span>
  27. <input maxlength="2" name="quota" id="quota" type="number" value="{$product->quota}" />
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <div class="col-lg-1"><span class="pull-right">Valor cuota inicial</span></div>
  32. <label class="control-label col-lg-2" for="initial_quota_value">
  33. <span class="label-tooltip" data-toggle="tooltip" title="Valor cuota inicial"></span>
  34. </label>
  35. <div class="input-group col-lg-2">
  36. <span class="input-group-addon">$</span>
  37. <input maxlength="12" name="initial_quota_value" id="initial_quota_value" type="number" value="{$product->initial_quota_value}" />
  38. </div>
  39. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement