add import/export helpers to the Product asset too
This commit is contained in:
parent
1ae7a3c6e8
commit
a45cdec243
1 changed files with 24 additions and 0 deletions
|
|
@ -457,6 +457,30 @@ sub getFileUrl {
|
|||
return $store->getUrl($self->getFilename($store));
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 getHelpers ( )
|
||||
|
||||
Add the importCSV and exportCSV helpers
|
||||
|
||||
=cut
|
||||
|
||||
override getHelpers => sub {
|
||||
my ( $self ) = @_;
|
||||
my $helpers = super();
|
||||
|
||||
$helpers->{import_products} = {
|
||||
className => 'WebGUI::AssetHelper::Product::ImportCSV',
|
||||
label => 'Import Products',
|
||||
};
|
||||
$helpers->{export_products} = {
|
||||
className => 'WebGUI::AssetHelper::Product::ExportCSV',
|
||||
label => 'Export Products',
|
||||
};
|
||||
|
||||
return $helpers;
|
||||
};
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getMaxAllowedInCart ( )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue