Jump to content

JERRY777

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • First Name
    JERRY
  • Last Name
    ABRAHAM

JERRY777's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. How to show a grid / table in a tab section that will be displayed in in the admin section of prestashop 1.6.x I want to show a grid or editable table in my tab in the admin section I managed to do the module and three tabs are been displayed .In one of the tab i want to show a editable grid i.e in the CHECKS tab As shown in the below image,in the chek tab section i want to show a grid In the constructor of my admin controller of my module () ie in addhealthcheckconfig\controllers\admin\HealthCheckConfigController.php I am setting the field options to populate the tab ,below is my code: $this->fields_options = array('appearance' => array( 'title' => $this->l('Manage your Health Check '), 'icon' => 'icon-html5', 'tabs' => array( 'TAB1' => $this->l('SUPPORT_GROUPS'), 'TAB2' => $this->l('CHECKS'), 'TAB3' => $this->l('REPORT RECIPIENTS'), ), 'fields' => array( 'SUPPORT_GROUPS' => array( 'title' => $this->l('SUPPORT GROUPS'), 'hint' => $this->l('Manage your Support Groups here'), 'type' => 'fields_list', 'name' => 'PS_LOGO', 'tab' => 'TAB1' ), 'CHECKS' => array( 'title' => $this->l('LIST OF AVAILABLE CHECKS '), 'hint' => $this->l('List of Available checks will be displayed here !!'), 'type' => 'text', 'list' => $this->fields_list = array( 'code' => array( 'title' => $this->l('code'), 'align' => 'text-center', 'remove_onclick' => true, 'search' => false, ), 'description' => array( 'title' => $this->l('description'), 'align' => 'text-center', 'remove_onclick' => true, 'search' => false, ), 'category' => array( 'title' => $this->l('category'), 'align' => 'text-center', 'remove_onclick' => true, 'search' => false, ), ), 'tab' => 'TAB2' ), 'REPORT_RECIPIENTS' => array( 'title' => $this->l('REPORT RECIPIENTS '), 'hint' => $this->l('List of Available checks will be displayed here !!'), 'tab' => 'TAB3' ), ) )); In the TAB2 Section i am not sure what i need to put in the 'type' section , I tried with list , but yet I can not achieve what I am trying to do , also i am not sure how to assign the $this->fields_list to that type correctly How to achieve this editable db grid in my tab ?
  2. When a menu is clicked from the admin section ( when instaling my module which I created the menu is created and i can display forms with grid ) What I Need is when a menu is clicked I want to show a tabed form in the admin view , how can be this achieved? For more clarify for my question : http://stackoverflow.com/questions/36448698/how-to-create-a-tabed-form-in-prestashop-admin-menu/ attached screen shot of tabbed form which i need to achieve when the left menu is clicked
  3. When a customer or user register I want to capture the address details in one click and save that in ps_address table , ie when he clicks on the register button his address details must be also saved , how to do this I have managed to customize the registration form and able to plug the address details form to my registration form as shown in the attached image : Now what I am stuck with is : when am clicking on the Register button ,the address field details are not saved in the database and I am getting server error What i tried to do is ,I created a new function called processPostAddress and calling that function from Authcontroller.php page from $this->processPostAddress(); //// custom function call after a customer is created and before redirecting Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? urlencode($this->authRedirection) : 'my-account')); Below is the custom function which i created public function processPostAddress() { if($this->context->customer->id_customer!=''){ $address = new Address(); $address->id_customer = 40; $address->firstname = trim(Tools::getValue('firstname')); $address->lastname = trim(Tools::getValue('lastname')); $address->address1 = trim(Tools::getValue('address1')); $address->address2 = trim(Tools::getValue('address2')); $address->postcode = trim(Tools::getValue('postcode')); $address->city = trim(Tools::getValue('city')); $address->country = trim(Tools::getValue('country')); $address->state = trim(Tools::getValue('state')); $address->phone = trim(Tools::getValue('phone')); $address->phone_mobile = trim(Tools::getValue('phone_mobile')); $address->add(); // This must add the address to the addresss table when customer registers first time } } Please help me or tell me if am doing anything wrong
  4. When customer clicks 'Add To Cart' from the front end page of Prestashop, I want to show a php page in a popup ,now by default a popup with below message is appearing when we click Add to Cart button. Product successfully added to your shopping cart , screen shot of the current default pop up is shown, before this pop up appear I want to make customer to select a ticket related to a particular product, so after selecting the ticket the default pop up must appear and proceed to the payment gateway page . The php page which I developed for displaying tickets (cinema tickets, ticket may vary from 1- 5000 ) depending on the product I need to show different tickets page /different php page depending upon the product choose ( screen shot of the page attached), So by this customer can choose the ticket and proceed to the payment. I tried to look into modules\blockcart module ,but still struggling so can you please just guide me where to edit or how to edit to achieve this customization so that I can integrate my ticket page when customer clicks the Add to Cart button. I am php developer and trying to learn this prestashop (new to prestashop) and and I am developing and implementing a prestashop based ticket website , So please help in integrating a php page to the prestashop by editing the core prestashop php files.
×
×
  • Create New...