What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Bug Not a bug Featured Issue for XF2.3

F2uG2u

New Member
file
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;
        }
    }
issue about $this->Featured was not right .you need change it to $this->isFeatured()

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:
Top