Ben90 Posted September 15, 2015 Share Posted September 15, 2015 (edited) Hi guys, I know this is not the only thread that was talking about this problem, but since the very beginning of this problem arise, I reckon there is no exact solution or bug fix for this. I have 2 Prestashop versions installed: 1.6.0.9 and 1.6.1.1. Both got the same problem. That 1.6.1.1 was a copy of 1.6.0.9 that was upgraded for testing purpose. Unfortunately the problem is still there. These are my finding but still not solving the problem: 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 It may be related to the PHP setting max_input_sizeTry setting it to 10000 in your php.ini fileIn case you're not sure what that is, check out http://presto-changeo.tumblr.com/post/17589539698/understanding-php-ini-how-and-why-you-need-one https://github.com/PrestaShop/PrestaShop/commit/67cac78be312010e772f44225773c55e83310f7f None of them solve the problem. Max position attribute position value = 127 Suppose I have 300 Attribute Value, that means the attribute number 127+ will get position number 127. When I applied the changes following all the bug fix up there, the number was fixed when I move the position up & down (so it's update to 127, 128, and so on), but it doesn't save after I click refresh (all change to 127 again & the position back to the previous one). Edited September 15, 2015 by Ben90 (see edit history) Link to comment Share on other sites More sharing options...
Ben90 Posted September 25, 2015 Author Share Posted September 25, 2015 I edit the attribute position value in the database, it said the value must be less than or equal to 127. No wonder it's error since the attribute has more than 127 entries. How can I fix it? Link to comment Share on other sites More sharing options...
Ben90 Posted September 29, 2015 Author Share Posted September 29, 2015 Found the problem! The DB structure was not correct. Probably because I updated from Prestashop 1.4. I changed it following the latest structure & it fixed. https://github.com/PrestaShop/PrestaShop/blob/develop/install-dev/data/db_structure.sql#L89 Link to comment Share on other sites More sharing options...
mwfloral Posted October 30, 2015 Share Posted October 30, 2015 My attributes and values will not change on the front end. They just revert back to the default. Here is a link to an example... http://florasourcedirect.com/buythebox/red-roses/223-freedom-red-roses-100-stems.html?live_configurator_token=67bb7fc6d28ec1cf4e03293dc4483783&id_shop=1&id_employee=1&theme=&theme_font=font1 When selecting the stem length, 60cm is the default. When you try to change it to the other two options, it just goes back to 60cm. Please help. Link to comment Share on other sites More sharing options...
Ben90 Posted November 1, 2015 Author Share Posted November 1, 2015 My attributes and values will not change on the front end. They just revert back to the default. Here is a link to an example... http://florasourcedirect.com/buythebox/red-roses/223-freedom-red-roses-100-stems.html?live_configurator_token=67bb7fc6d28ec1cf4e03293dc4483783&id_shop=1&id_employee=1&theme=&theme_font=font1 When selecting the stem length, 60cm is the default. When you try to change it to the other two options, it just goes back to 60cm. Please help. You mean the "set as default" function in product combination doesn't work? You might want to create a new topic regarding that problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now