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!

Suggestion RM marketplace code

F2uG2u

New Member
RMMarketplace\XFRM\Entity\ResourceItem.php

code :
suggestion from
PHP:
   public function isForSaleInMarketplace()
    {
        if (($this->xfa_rmmp_type == 'none') 
                || ($this->Category->xfa_rmmp_conf == 0))
        {
            return false;
        }
        
        if ($this->xfa_rmmp_amount > 0.00)
        {
            return true;
        }
        
        return false;
    }
to

PHP:
  public function isForSaleInMarketplace()
    {
      
        
        if ($this->xfa_rmmp_amount > 0.00)
        {
            return true;
        }
        
        return false;
    }

For better maybe keep to save return true only
 
That change does not make sense, the amount could be non 0 if the category sales configuration changed so you would want false to be returned
 
Top