Jump to content

jondm

Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • First Name
    Jon
  • Last Name
    Noj

jondm's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, my field_list is the next one in the ModuleAdminController: $this->fields_list = array( 'id_supplier_bill' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'id_product_supplier' => array('title' => $this->l('ID Supplier'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'product_supplier_name' => array('title' => $this->l('Supplier'), 'align' => 'center'), 'serie' => array('title' => $this->l('Serie'), 'align' => 'center'), 'date' => array('title' => $this->l('Date'),'filter_key' => 'a!date', 'align' => 'center', 'type' => 'date'), 'status' => array('title' => $this->l('Status'), 'class' => 'fixed-width-xs', 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => FALSE), 'total' => array('title' => $this->l('Total'), 'align' => 'center') ); This is the main data, but i have more data to get. I was trying to pass using querys in renderForm and using tpl_view_vars, but i can't access to this data from the template inside the {block name="other_fieldsets"}. Maybe I can try accessing to the data using an ajax petition to get data? Thanks for your answer.
  2. Hi, I have done a form to add information for my module, but know, i don't know how i can't differentiate between add form and edit form. Someone can help me? And how i can get data to fill the form in the edit mode? Thanks everyone for the help!
  3. Hi again! In the list view, i would like show supplier names instead the id. The view is generated automatically. How can I change it? The code i have in the renderList option is: public function renderList() { $this->addRowAction('view'); // Adds an Edit button for each result $this->addRowAction('edit'); // Adds a Delete button for each result $this->addRowAction('delete'); $this->simple_header = false; return parent::renderList(); } and the field list is the next one: $this->fields_list = array( ... 'id_product_supplier' => array('title' => $this->l('ID Supplier'), 'align' => 'center', 'class' => 'fixed-width-xs'), ... ); If i want show the name of the supplier instead the Id, and have the option to filter for suppliers in the list... What can i do? Thanks!
  4. Thanks for your answer. The issue was i need write my own function to process the status
  5. $this->fields_list = array( ... 'status' => array('title' => $this->l('Status'), 'class' => 'fixed-width-xs', 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => FALSE), ... ); and the renderList function public function renderList() { $this->addRowAction('view'); $this->addRowAction('edit'); $this->addRowAction('delete'); $this->simple_header = false; return parent::renderList(); } thanks
  6. Sorry, i'll try with images. I create a new bill, and add correctly. Here we can see the dates added correctly. When I click in the status icon to change (in the red "x" image), i get this: As you can see, when i click in the button, the data saved disappear and the status continue in the same value. thanks for your help
  7. I'm creating my first prestashop module and i have problem when i change the boolean value. If I click over icon of boolean value, it looks like it is changing, but, when finish the boolean value is the same and the other values are deleted. Someone know how can I fix it? Thanks!
×
×
  • Create New...