
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Javascript Updating of Configured Price with Simple Options.
Quoting Fred Pope (fred@satcomresources.com):
> The output is on the flypage. The line that we are looking at reads:
>
> [table-organize cols=2 table=' ' font="size=1" pretty=1]
> [item-options td=1 label=1 bold=1 price=1]
> [/table-organize]
>
> I was looking through the interpolate.pm file and saw the "extra", but I do
> not know how to pass it a value from the flypage.
>
> This is what we tried, and failed...
>
> [item-options td=1 label=1 bold=1 price=1 extra="onUpdate=somejsfunction()"]
>
> What is the correct syntax for passing this parameter?
I don't think [item-options ...] supports it. You can add it by editing
the list of parameters to send to tag_accessories, i.e. change:
push @out, tag_accessories(
$sku,
'',
{
passed => $ref->[3],
type => $opt->{type} || $ref->[5] || 'select',
attribute => 'mv_sku',
price_data => $ref->[6],
price => $opt->{price},
item => $phony,
},
$phony || undef,
);
to:
push @out, tag_accessories(
$sku,
'',
{
passed => $ref->[3],
type => $opt->{type} || $ref->[5] || 'select',
attribute => 'mv_sku',
price_data => $ref->[6],
price => $opt->{price},
extra => $opt->{extra},
item => $phony,
},
$phony || undef,
);
in a couple of places. I will make that change in CVS.
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
Be patient. God isn't finished with me yet. -- unknown
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users