Skip to content

Instantly share code, notes, and snippets.

/gist:2053055
Created Mar 16, 2012

Embed
What would you like to do?
Asset/Sku/Ad.pm:
in view():
my %var = (
... stuff...
formImage => WebGUI::Form::Image($session, {
-name => "formImage",
-value => $options->{image} || $form->get('formImage','image'),
-size => 40
-forceImageOnly => 1,
}),
... stuff...
);
... stuff...
return $self->processTemplate(\%var,undef,$self->{_viewTemplate});
in www_addToCart():
my $imageStorageId = $form->process('formImage', 'image');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.