Fix per item shipping in Products.
This commit is contained in:
parent
8f4149d082
commit
448f1ffdf5
4 changed files with 46 additions and 1 deletions
|
|
@ -128,6 +128,13 @@ sub definition {
|
|||
deleteFileUrl=>$session->url->page("func=deleteFileConfirm;file=manual;filename="),
|
||||
defaultValue=>undef
|
||||
},
|
||||
isShippingRequired => {
|
||||
tab => "shop",
|
||||
fieldType => "yesNo",
|
||||
label => $i18n->get('isShippingRequired'),
|
||||
hoverHelp => $i18n->get('isShippingRequired help'),
|
||||
defaultValue => 0,
|
||||
},
|
||||
warranty=>{
|
||||
tab => "properties",
|
||||
fieldType=>"file",
|
||||
|
|
@ -478,6 +485,21 @@ sub getWeight {
|
|||
return $self->getOptions->{weight};
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 isShippingRequired
|
||||
|
||||
Overriding the method from Sku so that the user can configure it.
|
||||
|
||||
=cut
|
||||
|
||||
sub isShippingRequired {
|
||||
my $self = shift;
|
||||
$self->session->log->warn('is shipping required: '.$self->get('isShippingRequired'));
|
||||
return $self->get('isShippingRequired');
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 moveCollateralDown ( tableName, keyName, keyValue )
|
||||
|
|
|
|||
|
|
@ -841,6 +841,18 @@ be useful, others may not.|,
|
|||
context => q|template variable|
|
||||
},
|
||||
|
||||
'isShippingRequired' => {
|
||||
message => q|Is shipping required?|,
|
||||
lastUpdated => 0,
|
||||
context => q|label for the edit sku|
|
||||
},
|
||||
|
||||
'isShippingRequired help' => {
|
||||
message => q|This determines whether shipping costs will be calculated when the user checks out.|,
|
||||
lastUpdated => 0,
|
||||
context => q|hover help for isShippingRequired in the edit sku screen|
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue