Jump to content

r00t3r

Members
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • First Name
    Toni
  • Last Name
    Nikolov

Recent Profile Visitors

212 profile views

r00t3r's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello , guys i try to get company from address in AdminCustomerController but return me a sql error . How to get this data and print to backend cutomer list. $titles_array = array(); $genders = Gender::getGenders($this->context->language->id); foreach ($genders as $gender) { /** @var Gender $gender */ $titles_array[$gender->id_gender] = $gender->name; } $this->_select .= ', ad.`company` as company_names'; $this->_join = 'LEFT JOIN '._DB_PREFIX_.'address ad ON (a.id_customer = ad.id_customer)'; $this->_join = 'LEFT JOIN '._DB_PREFIX_.'gender_lang gl ON (a.id_gender = gl.id_gender AND gl.id_lang = '.(int)$this->context->language->id.')'; $this->_use_found_rows = false; $this->fields_list = array( 'id_customer' => array( 'title' => $this->l('ID'), 'align' => 'text-center', 'class' => 'fixed-width-xs' ), 'title' => array( 'title' => $this->l('Social title'), 'filter_key' => 'a!id_gender', 'type' => 'select', 'list' => $titles_array, 'filter_type' => 'int', 'order_key' => 'gl!name' ), 'firstname' => array( 'title' => $this->l('First name') ), 'lastname' => array( 'title' => $this->l('Last name') ), 'email' => array( 'title' => $this->l('Email address') ), 'company_names' => array( 'title' => $this->l('Company') ), );
  2. Hello , guys i found a issue with search if you have a dashed symbol in product name search is not find correct if I type A-110 this A- is removed and search only 110 and give me bad result how to fix ? Maybe this is problem and with reference and other searching tags and information .......
  3. Hello , guys i activate exact result in my prestashop search settings , but if i search product example: A-110 search give me all result with 110 - A-110 , B-110, C-110 i want to give me only exact result how to do this
  4. Hello, how to print two copy of invoice one with original text in header and one with duplicate ?
  5. Mmm still not workin public function hookDisplayAdminOrder() { $orderid - Tools::getValue('id_order'); $order = new Order($orderid); $ref = $order->reference; echo $ref; }
  6. Hello, guys i have one question how to get order refference in hookDisplayAdminOrder i try this method but nothing public function hookDisplayAdminOrder() { $orderid - Tools::getValue('id_order'); echo $orderid; } I just want to get order refference and make it variable with him
  7. Guys why in backoffice area in orders if i want to choose payment method here stay universal payment ..... ? How to fix this i want to select payment method from backoffice
  8. Hello , guys how to set a new order state after pay with this method i try some method but nothing order stay in payed public function hookPaymentReturn($params) { if ($this->active == false) return; $order = $params['objOrder']; $status = 3; if ($order->getCurrentOrderState()->id != Configuration::get('PS_OS_ERROR')) $this->smarty->assign('status', 'ok'); $this->smarty->assign(array( 'id_order' => $order->id, 'reference' => $order->reference, 'params' => $params, 'id_order_state' => 15, 'total' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false), )); return $this->display(__FILE__, 'views/templates/hook/confirmation.tpl'); }
  9. I have this module i buy before time but i not watching a this settings in module
  10. Hello , guys i want to change invoice number from 6 to 10 now invoice number is #INVXXXXXX i want to change to #INVXXXXXXXXXX
  11. what class is a table displayed in page becouse i found only a field
  12. How to override in prestashop 1.6.1.18 if i try to edit AdminCustomerController directly ?
  13. Hello , guys how to display company name easy in customer adress lest in backend
  14. hello , guys how to get userid in orders backend in hookDisplayAdminOrder or order reference ? public function hookDisplayAdminOrder() { $order = new Order($params['id_order']); echo $order; }
  15. Hello, guys how to get unpaid orders on customer from mysql i want to get all unpaid orders value
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More