/**
  * Get latest Products
  *
  * @param int $limit
  * @return array|mixed
  */
 public static function getLatest($limit = 8)
 {
     $cacheKey = "coreshop_latest";
     if (!($objects = \Pimcore\Model\Cache::load($cacheKey))) {
         $list = new Object\CoreShopProduct\Listing();
         $list->setCondition("enabled=1");
         $list->setOrderKey("o_creationDate");
         $list->setOrder("DESC");
         $objects = $list->getObjects();
     }
     return $objects;
 }
 /**
  * Get Products from the Category
  *
  * @return array
  */
 public function getProducts()
 {
     $list = new Object\CoreShopProduct\Listing();
     $list->setCondition("enabled = 1 AND categories LIKE '%," . $this->getId() . ",%'");
     return $list->getObjects();
 }