convert feature collateral to JSON
This commit is contained in:
parent
52d29d90e4
commit
d7c6507c8b
3 changed files with 69 additions and 69 deletions
|
|
@ -148,10 +148,22 @@ $products->setCollateral('Product_specification', 'Product_specificationId', {
|
|||
units => 'Hertz',
|
||||
});
|
||||
|
||||
$products->setCollateral('Product_specification', 'Product_specificationId', {
|
||||
name => 'hue',
|
||||
value => '75',
|
||||
units => 'lumens',
|
||||
my $propertiesf = {
|
||||
className => 'WebGUI::Asset::Wobject::Product',
|
||||
url => 'feature_Product',
|
||||
price => 3.33,
|
||||
title => 'feature Product',
|
||||
description => 'feature Product',
|
||||
};
|
||||
|
||||
my $productf = $root->addChild($propertiesf);
|
||||
|
||||
$productf->setCollateral('Product_feature', 'Product_featureId', {
|
||||
feature => 'leather interior',
|
||||
});
|
||||
|
||||
$productf->setCollateral('Product_feature', 'Product_featureId', {
|
||||
feature => '25% less code',
|
||||
});
|
||||
|
||||
$tag->commit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue