Jump to content

mario.schillermann

Members
  • Posts

    6
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Köln
  • First Name
    Mario
  • Last Name
    Schillermann

mario.schillermann's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Kannst du das mal zeichnen wie es letzten endes im Shop angezeigt werden soll? Es würde eine grobe Skizze reichen.
  2. The only way for me is to reorganize the array elements. https://stackoverflow.com/questions/13596128/array-unique-and-then-renumbering-keys public function initToolbarTitle() { ... $this->toolbar_title = array_values($this->toolbar_title); if ($filter = $this->addFiltersToBreadcrumbs()) { $this->toolbar_title[] = $filter; } }
  3. Prestashop Version: 1.6.16 PHP Version: PHP 7.0.18-0ubuntu0.16.04.1 When I call the product list or a product comes following error message: Undefined offset: 1 in classes/controller/AdminController.php on line 1528 Here is the prosses overview with comments. public function initToolbarTitle() { // $this->breadcrumbs == array(0 => 'Produkte', 1 => 'Produkte') $this->toolbar_title = is_array($this->breadcrumbs) ? array_unique($this->breadcrumbs) : array($this->breadcrumbs); // The array index now is on 2 // $this->toolbar_title == array(0 => 'Produkte') switch ($this->display) { case 'edit': $this->toolbar_title[] = $this->l('Edit', null, null, false); // Now there is a gap in the array elements // $this->breadcrumbs == array(0 => 'Produkte', 2 => 'Bearbeiten') $this->addMetaTitle($this->l('Edit', null, null, false)); break; } } public function initPageHeaderToolbar() { case 'edit': // Here we jump into the hole of the lost array element $this->addMetaTitle($this->toolbar_title[count($this->toolbar_title) - 1]); } The same effect do you have with this example code $toolbar_title = array_unique(array(0 => 'Produkte', 1 => 'Produkte')); $toolbar_title[] = 'Bearbeiten'; //array(0 => 'Produkte', 2 => 'Bearbeiten') var_dump($toolbar_title); That is not a feature, but a Bug.
  4. XHR finished loading: POST "http://my-shop.local/admin181knv5c0/index.php?controller=AdminCarts&token=46327d921ecb274f7cdab7d50b565cba" send @ jquery-1.11.0.min.js:4 ajax @ jquery-1.11.0.min.js:4 duplicateOrder @ index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1232 (anonymous) @ index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1025 dispatch @ jquery-1.11.0.min.js:3 r.handle @ jquery-1.11.0.min.js:3 jquery-1.11.0.min.js:2 Uncaught TypeError: Cannot read property 'length' of undefined at Function.each (jquery-1.11.0.min.js:2) at Object.<anonymous> (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1591) at Function.each (jquery-1.11.0.min.js:2) at updateCartProducts (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1579) at displaySummary (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1664) at Object.success (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1249) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at x (jquery-1.11.0.min.js:4) at XMLHttpRequest.b (jquery-1.11.0.min.js:4) function updateCartProducts(products, gifts, id_address_delivery) { ... $.each(this.customized_datas[this.id_product][this.id_product_attribute][id_address_delivery], function() { ... } ... } In my example the id_address_delivery is 50. The address id is correct, but my object has the index number 0. So here is the bug and problem with customize fields in the products. How can i fix the problem?
×
×
  • Create New...