コード例 #1
0
ファイル: ProductHandler.php プロジェクト: vespolina/commerce
 public function getSearchTerms(ProductInterface $product)
 {
     $data = array();
     $data['name'] = $product->getName();
     return $data;
 }
コード例 #2
0
 protected function buildProductDescriptions(ProductInterface $product)
 {
     $product->setDescription('Brief description of ' . $product->getName(), 'brief');
     $product->setDescription('Extended description of ' . $product->getName(), 'extended');
     $product->setDescription('Big and detailed description of ' . $product->getName(), 'detail');
 }