Jump to content

Can't Save Attribute Value Position (1.6.0.9 / 1.6.1.1)


Ben90

Recommended Posts

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_size

Try setting it to 10000 in your php.ini file

In 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).

 

:mellow:

Edited by Ben90 (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...