Right now when a price update is performed, uc_aac blindly replaces the product attribute's HTML on the page with the results from the server (ie. this.childNodes[this.childNodes.length-1].textContent = " " + radio_option.label + " " + radio_option.adjustment;).
The problem with this implementation is that it doesn't give you the freedom to alter the position/weight of your attribute options on the page (after the first price update, the HTML order of your options will be altered by uc_aac).

So I'm proposing a solution to just update the labels of the options and not the whole HTML code of an attribute.

I'm also going to submit a patch for this but only after #474400: Add support for checkbox attributes gets in.

Cheers !

Comments

jantoine’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Fixed

andreiashu,

I am moving this issue to the 6.x-2.x branch and marking it fixed, as this is not an issue with the new branch. Please re-open the issue if you continue to have similar issues with the 6.x-2.x branch.

Cheers,

Antoine

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.