Catalog Item Variable Summary appears in random ordering

MoustafaEid
Kilo Explorer

I have a catalog item that contains three variables, with order 1,2 and 3 respectively. When I use a wizard with two panels to order the item (first panel to order the item, second panel is a checkout panel), the summary of the variables in the checkout page appears in a random ordering (see screenshot). The summary displays the correct ordering of the item variables if I used the actual item to order, not the wizard.

The UI macro "servicecatalog_cart_template" is the one responsible of getting the variables and calling another macro to display them, specifically at this line of code:



var sc_cart_item_labels = new CatalogLabelEvaluator(sc_cart_item).getLabels();

But I wasn't able to find the "CatalogLabelEvaluator" function anywhere.

Any ideas on how can I fix this behavior?

3 REPLIES 3

GoBucks
Mega Sage

I have noticed the same thing with a wizard I created.   The catalog shopping cart checkout page lists the items ordered, but the variables listed for each item are listed randomly and are not in any defined order.



I'm not sure where this can be changed either.   Did you ever resolve this?


Hi Jeff,


For information, I faced the same problem and reported the bug to the support team... They admit it is a bug (there is a known problem : "Variable Order is not correct on Wizard check out") but unfortunately they decided not to fix it because Wizard is now a legacy feature! 😞


I think it should be written explicitely in the Wiki that wizard is a legacy feature...


Now it is too late : we cannot stop using wizards (not possible to do the same with order guides)... so we need to workaround this bug by ourselves.


=> We plan to overwrite the script include catalogLabelEvaluator in order to to fill item_option_new.order



Did you find a simpler way to workaround the bug?


Thanks


Valérie


Hi Valerie,



No, we have not gone back to this issue in some time.   I believe it is still an issue for us and we haven't yet attempted any type of workaround for this.



And yes, it would be nice to see Wizards documented on the wiki as legacy, if they are not currently.



Thanks,
Jeff