akumi Posted April 25, 2014 Share Posted April 25, 2014 Just upgraded from 1.6.0.5 to 1.6.0.6 and realised when using the arrow to change the order of product attributes values, it says "update successful" but when you refresh the list, the order goes back again. The funny thing is that this works for product attributes. Which means I can change order of product attribute values like 1. Size 2. Colour to 1.Colour 2.Size. But when i change order for product attributes value like 1 Green 2 Blue 1Blue 2Green It goes back to Green, Blue. I restored to 1.6.0.5 and it works fine so i can confirm it's something to do with 1.6.0.6. If anyone have any idea, that would be great! Thanks. Link to comment Share on other sites More sharing options...
GeekRMX Posted May 17, 2014 Share Posted May 17, 2014 Hi, I have the same problem. Please help. Link to comment Share on other sites More sharing options...
Sympozium Posted May 26, 2014 Share Posted May 26, 2014 Hi, I have the same problem, you have a idea? thank you Link to comment Share on other sites More sharing options...
kiwifraise Posted May 31, 2014 Share Posted May 31, 2014 PS 1.6.0.6 is buggy especially with the attributes. You can't delete more than one at a time, you cant reorder items... You have to change position manually in the DB "ps_attribute" table (via phpmyadmin or command line) Link to comment Share on other sites More sharing options...
Panther.software Posted May 31, 2014 Share Posted May 31, 2014 Got this problem also. So we need to wait? Link to comment Share on other sites More sharing options...
Sympozium Posted June 2, 2014 Share Posted June 2, 2014 Thank you for your reply this problem is you set it to 1.6.0.7 ?? Link to comment Share on other sites More sharing options...
ALMAJ Posted June 13, 2014 Share Posted June 13, 2014 here is the fix: https://github.com/PrestaShop/PrestaShop/commit/0d86a0daef870ad19437055cfad093d97fb08e68 Link to comment Share on other sites More sharing options...
Panther.software Posted June 13, 2014 Share Posted June 13, 2014 Thank you, it's worked like a charm. Link to comment Share on other sites More sharing options...
zombie process Posted June 19, 2014 Share Posted June 19, 2014 You can also correct it in the updatePosition method of the Attribute class: Replace if (!$id_attribute_group = (int)Tools::getValue('id_attribute_group')) $id_attribute_group = (int)$this->id_attribute_group; by $id_attribute_group = (int)$this->id_attribute_group; That way, the group id is always right, and the position update process does not fail. The Bear Link to comment Share on other sites More sharing options...
Panther.software Posted June 19, 2014 Share Posted June 19, 2014 Both methods are ok to fix this problem? Link to comment Share on other sites More sharing options...
zombie process Posted June 20, 2014 Share Posted June 20, 2014 Sure but the second focuses primarily on solving the attribute sorting issue; the first one, however, might cure other similar problems no solely related to attributes. 1 Link to comment Share on other sites More sharing options...
imgs Posted August 14, 2014 Share Posted August 14, 2014 here is the fix: https://github.com/PrestaShop/PrestaShop/commit/0d86a0daef870ad19437055cfad093d97fb08e68 It works! Thank you very much 1 Link to comment Share on other sites More sharing options...
aliaspt Posted October 6, 2014 Share Posted October 6, 2014 I'm having troubles getting this to work on PS 1.6.09. I have the following code in helperlist.php: if (isset($this->fields_list['position'])) { if ($this->position_identifier) if (isset($this->position_group_identifier)) $position_group_identifier = Tools::getIsset($this->position_group_identifier) ? Tools::getValue($this->position_group_identifier) : $this->position_group_identifier; else $position_group_identifier = (int)Tools::getValue('id_'.($this->is_cms ? 'cms_' : '').'category', ($this->is_cms ? '1' : Category::getRootCategory()->id )); else $position_group_identifier = Category::getRootCategory()->id; $positions = array_map(create_function('$elem', 'return (int)($elem[\'position\']);'), $this->_list); sort($positions); } Does it require any changes? I see that the getIsset was replaced with getValue already. Link to comment Share on other sites More sharing options...
eduk2 Posted October 31, 2014 Share Posted October 31, 2014 Hello everyone, maybe the column called position is necessary. Can you get the error: Unknown column 'position' in 'field list when you try to create a new attribute? If so, you can fix it with: ALTER TABLE `ps_attribute_group` ADD `position` TINYINT(3) NOT NULL DEFAULT '1' ; ALTER TABLE `ps_attribute` ADD `position` TINYINT(3) NOT NULL DEFAULT '1' ; Link to comment Share on other sites More sharing options...
millien Posted January 22, 2015 Share Posted January 22, 2015 (edited) You can also correct it in the updatePosition method of the Attribute class: Replace if (!$id_attribute_group = (int)Tools::getValue('id_attribute_group')) $id_attribute_group = (int)$this->id_attribute_group; by $id_attribute_group = (int)$this->id_attribute_group; That way, the group id is always right, and the position update process does not fail. The Bear where do i find this code pice ? Edited January 22, 2015 by millien (see edit history) Link to comment Share on other sites More sharing options...
millien Posted January 22, 2015 Share Posted January 22, 2015 (edited) i upgraded to 1.6.0.9 and have the mobile theme that are not working properly with attributes. it's the prestashop standard mobile template from 1.4 , it worked just fine until prestashop 1.6.0.9 :/ to se the page in mobile version http://www.nettotobak.com/lossnus/628-phantom-classic-lossnus.html?mobile_theme_ok Edited January 22, 2015 by millien (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts