Skip to content

Instantly share code, notes, and snippets.

Created March 16, 2012 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2053055 to your computer and use it in GitHub Desktop.
Save anonymous/2053055 to your computer and use it in GitHub Desktop.
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