Jump to content

CarloC

Members
  • Content count

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Carlo Coertjens
  1. CarloC

    AJAX Attribute Manager support

    About the Price & Prefix bug : Although I’m a C#/Delphi programmer i think i found it ! If you look in the attributeManager.js around line #83 there’s an amUpdate function. Maybe when they added support for sorting they never looked at this function very well. When I change the line : amSendRequest('amAction=update&option_id='+optionId+'&option_value_id='+optionValueId+'&price='+getDropDownValue('price_'+optionValueId)+'&prefix='+getDropDownValue('prefix_'+optionValueId)+'&sortOrder='+getDropDownValue('sortOrder_'+optionValueId),'',false); And change this in the following : amSendRequest('amAction=update&option_id='+optionId+'&option_value_id='+optionValueId+'&price='+getDropDownValue('price_'+optionValueId)+'&prefix='+getDropDownValue('prefix_'+optionValueId)+'&sortOrder=0','',false); By replacing this code it will work, but I think the code has to check if sorting is enabled ! You will see that saving the price will work again… just look at : getDropDownValue('sortOrder………….. This is not working, and I think because in my installation I don’t have sorting enabled yet. is this function using some kind of getElementByName/id ?, and then trying to refer it, without checking this is null or not ?, is this happening ? Maybe the designer can tell anything how to solve this the correct way ? Carlo Coertjens Netherlands btw great contribution !
  2. Although I’m a C#/Delphi programmer i think i discovered this bug ! If you look in the attributeManager.js around line #83 there’s an amUpdate function. Maybe when they added support for sorting they never looked at this function very well. When I change the line : amSendRequest('amAction=update&option_id='+optionId+'&option_value_id='+optionValueId+'&price='+getDropDownValue('price_'+optionValueId)+'&prefix='+getDropDownValue('prefix_'+optionValueId)+'&sortOrder='+getDropDownValue('sortOrder_'+optionValueId),'',false); And change this in the following : amSendRequest('amAction=update&option_id='+optionId+'&option_value_id='+optionValueId+'&price='+getDropDownValue('price_'+optionValueId)+'&prefix='+getDropDownValue('prefix_'+optionValueId)+'&sortOrder=0','',false); By replacing this code it will work, but I think the code has to check if sorting is enabled ! ;) You will see that saving the price will work again… just look at : getDropDownValue('sortOrder………….. This is not working, and I think because in my installation I don’t have sorting enabled yet. is this function using some kind of getElementByName/id ?, and then trying to refer it, without checking this is null or not ?, is this happening ? Maybe the designer can tell anything how to solve this the correct way ? Carlo Coertjens Netherlands btw great contribution !
×