file
default code:
issue about $this->Featured was not right .you need change it to $this->isFeatured()
src\addons\XFA\RMMarketplace\XFRM\Entity\ResourceItem.php
default code:
PHP:
public function canBuyFeaturing()
{
if ($this->Category->canPurchaseFeaturing()
&& $this->isForSaleInMarketplace()
&& (!$this->Featured || !$this->Featured->feature_date)
&& $this->user_id == \XF::visitor()->user_id)
{
return true;
}
else
{
return false;
}
}
PHP:
public function canBuyFeaturing()
{
if ($this->Category->canPurchaseFeaturing()
&& $this->isForSaleInMarketplace()
&& (!$this->isFeatured() || !$this->isFeatured()->feature_date)
&& $this->user_id == \XF::visitor()->user_id)
{
return true;
}
else
{
return false;
}
}
Last edited: