module Store: allow file download to non-members

Hi,

I'm using Store module to publish some "best practice" in a school community.

Each member can add a "product" (gratis), write a description and attach files.

I would like to allow access to articles and relative files to everyone.

 

Adding a Product, I can choose "Public" in "View Product" option, so everyone can see them in detail.

But it seems I can't allow everyone (non-members) to dowload attached files, probably because "Allow purchase to" option in a product can be setted only to "Me only" or "Members" or "Friend", but not for "non-Members".

Is it possible to have a workaround? 

 

Thank you.


Andrea

Quote · 23 Jan 2017

I solved editing /home/animator/public_html/modules/boonex/store/classes/BxStoreModule.php and changing return boolean value (row 688) as follow.

 

    function isAllowedDownload(&$aItem)
    {
        if ($this->isAdmin())
            return true;
        if (0 == $aItem['price'] && $this->_oPrivacyFile->check('purchase', $aItem['id'], $this->_iProfileId))
            return true;
        if ($this->_oDb->isPurchasedItem ($this->_iProfileId, $aItem['id']))
            return true;
        return true;
    }


Quote · 24 Jan 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.