Author Topic: Trying to allow registered users to only see/add their own products  (Read 1448 times)

thenorman138

  • Beginner
  • *
  • Posts: 7
  • A beginner
I had the help of another member that led me to the ability to use this link in a front-end link ```?option=com_virtuemart&tmpl=component&manage=1&view=product&task=edit&virtuemart_product_id=0``` which would allow a logged in registered user to add products. This works perfectly for what it is

I had to alter some permissions so that I could also create a link where they can view products as well, but the issue is they can now view all products

How can I restrict both of these areas so that the logged in user can only add/view products associated with them (hopefully by store, if possible. If not, then just by  user)

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3887
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Trying to allow registered users to only see/add their own products
« Reply #1 on: November 07, 2021, 18:45:37 pm »
Have you multi vendor activated ?
If You have then Your user settings are not correct.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

thenorman138

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Trying to allow registered users to only see/add their own products
« Reply #2 on: November 07, 2021, 22:04:01 pm »
I'm not sure actually. Where would I see if that's enabled?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10579
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28337
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart  4.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10305
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Trying to allow registered users to only see/add their own products
« Reply #5 on: January 12, 2022, 13:15:12 pm »
The rest is mainly done with the normal vm permissions. You can also allow them todo anything from Frontend. You can even allow them, to see only orders with their products.

Use the new core, then you do not need to set strange links. You can create them als menu items in joomla. But only with the new core https://dev.virtuemart.net/attachments/1297/com_virtuemart.3.8.9.10578_package_or_extract.zip
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/