jDownloadsownloads.com


Author Topic: Jdownloads per shopper group  (Read 202 times)

0 Members and 1 Guest are viewing this topic.

Offline suffering

  • Newbie
  • *
  • Posts: 1
Jdownloads per shopper group
« on: 15.06.2019 18:16:11 »
Hello
I have a B2b site and i am using joomla and virtuemart.
I would like to ask whether i can add some downloads for pricelists for my clients per shopper group.
I have 6 pricelists with six shopper groups.
I would like to be able that my clients can download their pricelist.
I cant make one download since all clients will have same prices.
Each client is set to one shoppergroup.
So i would like to add a download according to the shopper group that one is logged in.
If its just registered then for example show no downloads.
If one is in shopper group 1 then he can download a file with pricelist1
If one in in shoppergroup2 then he can download a file with pricelist2
etc

Please advise.

Offline ColinM

  • Moderator
  • *
  • Posts: 4.001
Re: Jdownloads per shopper group
« Reply #1 on: 16.06.2019 14:05:44 »
Hi
If you create Joomla! User Groups corresponding to your shopper Groups then it is straight forward to have Downloads that can only be downloaded by the relevant group member.   
Suppose these User Groups are called say shopper1-ug, shopper2-ug and so on set Registered as the parent of these user groups. Further if you create an Access level called say shopper1-view whose only member is shopper1-ug; an access level called say shopper2-view whose only member is shopper2-ug; and so on then only members of the relevant user group will be able to see thier price list. 
In jD you could have an individual Category for each shopper group , called say shopper1-cat and so on.  For Shopperi-cat set the view access to shopper1-view and the Download permision for shopper1-ug as allowed.  Any Download you create in shopper1-cat would inherit those setting and only be seen and downloadable by members of shopper1-ug.
An important aspect is to also change the default jDownloads Download permission for the Public user group from Allowed to Inherited (NEVER use Deny as it has many unintended consequences due to Joomla! inheritance rules).  You can get to this by going to the jD Control Panel and using Options button near top left.  This wil open upthe 'component' jD permissions for the Public ug and you will see Downloads permission set in green as Allowed - change to Inherited and then save & close.If you have other Downloads that are in other Categories then change the permisions for the Public ug to Allowed in each such category. Always do a Save.
ColinPS the Documentation has  several articles on this topichttp://www.jdownloads.net/documentations/category/jdownloads-version-3-2
PPS you will may now see a warning notice in jD Control panel about not having any global 'component' permissions set but you can ignore that message
 
« Last Edit: 16.06.2019 14:07:52 by ColinM »