Trying to allow registered users to only see/add their own products

Started by thenorman138, November 07, 2021, 16:05:42 PM

Previous topic - Next topic

thenorman138

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

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


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

Milbo

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/