Forum Support

Shape 5
January 20, 2022, 10:30:15 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Restrict access to VM categories or products  (Read 22276 times)
nettemor
Jr. Member
**
Offline Offline

Posts: 13



« on: February 01, 2010, 01:44:24 PM »

I came across your S5 Quick Category module in my search for needs to Virtuemart.

So therefore I'd like to ask you some questions to see if this module can be what I need to solve my problem i VM:

I have around 10 customers who should be able to shop from my site. There will be no registration at the site, i will create and hand out the userid's and password myselves.
 
Customer A can buy product 1 and product 2. Product 1 has a f.ex. a price of $2.
Customer B can buy product 1 and product 3. For this customer Product 1 has a price of $4.
In VM i can assign groups to different prices for a product, so when logged in i achieve the pricing functionallity.

When Customer A is browsing the products, they will only be able to see "their own products", - product 1 and product 2
( product 3 are NOT going to be visible cause they are not able to buy this product)

So my question is: is it possible to assign/restrict access to products to different VM groups so that f.ex. Customer A only can see "their own products" by using your quick category module?

Or can you see another way to achieve this  ? I am really struggling with this. I notice a lot of people needing this functionallity so i just cannot understand that no solution for this would exist..
Maybe you should create one if this module of yours does not handle this either :.-)

Looking forward to hear from you.

 

Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: February 01, 2010, 02:06:42 PM »

Hello, we have a module that will do this and is posted in the aluma photography board. Here is the description:

There have been several requests for a way to limit categories so only a specific user can see their own photos. There is no way to do this directly through Virtuemart so we have developed the attached module.

To set it up:

1. Publish this module to any position on the template.
2. In the backend of the module specify your error message - This message will show on the page if the user is not authorized rather than showing the actual category page.
3. In the backend specify the administrator user - This user will be able to see everything.
4. Specify a VM category ID and the username allowed to see this category - All others will see the error message in step #2 if they try to access the page.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
nettemor
Jr. Member
**
Offline Offline

Posts: 13



« Reply #2 on: February 01, 2010, 04:44:13 PM »

Hi Mikek,

and thanks for getting back to me so soon. I am in a hurry with this and have spent so much time searching so i am really really pleased by your answer :-)

So i have signed up and downloaded and installed the extention.
But i am not quite sure how to do this?

regarding your answers:

2. Where in the backend can i add the error message
3. Where in the backend of this module can i specify the admin user ?
4. Where do i specify the VM category id and usernamed allowed to see the category?

As far as i can see the only thing i can specify in the module is colors and stuff like that.

What am i missing here ?
Logged
nettemor
Jr. Member
**
Offline Offline

Posts: 13



« Reply #3 on: February 01, 2010, 07:23:19 PM »

ah, i was missing the whole point; i thought you were talking about the vm Quick Category module, but you were actually talking about another one:-)

Well, i have now installed this module, and have managed to restrict user access to a category.

But i am not quite sure i achieve what i need with this.
To achieve what i need i have done the following:

1. Created two VM customer groups; CustomerGroupA and CustomerGroupB

2. Created two users in VM; UserA and UserB. UserA is added to the CustomerGroupA while UserB is added to CustomerGroupB.

3. Created a category named "Customer A" and a category "Customer B".

4. No i need to create products. Some products are only available in category Customer A. But some products are available for both categories, Customer A and Customer B.
I create a productX which is available for both categories, but should have different prices. To achieve this i have to create a price for USD 100 and add CustomerGroupA to this price. Then i create another price and add the CustomerGroupB to this price of USD 150.

5. When logging on with UserA everything looks fine. The product is listed with the correct price. price for productX. But when logging on with UserB, the product is also listed but without any price. It says call for price...

So my question to you is: do you have any idea why pt 5 above failes ?
And also - is this the best way to solve my case with your extention (see my first topic below for description of what i need to accomplish) ?

Hope you can be so kind to answer these questions for me.

Cheers
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #4 on: February 02, 2010, 08:00:15 AM »

Hello, I am sorry but I having trouble picturing exactly what you are trying to do but the module works by restricting users to specific categories. If a user is set to view a specific category only that user can even see it, all others will see an error message. If that category is not specified anywhere all users can see that category. This is the how the module works.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
nettemor
Jr. Member
**
Offline Offline

Posts: 13



« Reply #5 on: February 02, 2010, 08:16:15 AM »

ok, i'll try to explain better:

I am using my customer names (ex. customer A) as categories in VM. This way i can make the logged in user (UserA) only see products in this category.

As you know in VM you can assign a product to one or more categories. So in my case both customer A and customer B can sell ProductX, but with different prices.

When userA is logged in everything looks fine. When accessing category "customer A" the ProductX is listed with the correct price. But when UserB is logged in and accessing category "customer B" ProductX is listed without any price. It says "Call for price" instead of showing the price.

So my question is, why does it do this? Why does it not show the price which is assigned?
Maybe your extention does not handle a product with different prices connected to multiple categories ?
Hope this was easyer to understand...?

Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #6 on: February 02, 2010, 11:22:10 AM »

Can you please private message me the url to your site and the logins necessary to see this problem? So that I can see the problem first hand.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
scept1c
Jr. Member
**
Offline Offline

Posts: 23



WWW
« Reply #7 on: February 04, 2010, 08:22:04 AM »

hi, I've got 2nd price field empty too (price for the 2nd user actually). If you resolve it, please post the solution here, too.
Logged

Joomla extensions and components.
Home of Auction Factory, Love Factory (Dating Extension) and other ecommerce and social extensions
nettemor
Jr. Member
**
Offline Offline

Posts: 13



« Reply #8 on: February 04, 2010, 10:01:47 AM »

Hi,

i figured it out, and it was my mistake. Seemed that my second user (the user which did not get the price) was connected to the wrong customer group.
If you have the same senario as me, check VM Users and see if you have connected the user to the correct customer group.

Works great here now, and i am sooooo pleased i found this module. It really saved the whole installation of VM for me, otherwise i could not use it.

So thanks to you at Shape 5 for this one :-)

Hope it will work fine for you too scept1c.
Logged
scept1c
Jr. Member
**
Offline Offline

Posts: 23



WWW
« Reply #9 on: February 22, 2010, 08:58:36 AM »

thanks Nettemor, it's ok now, though I didn't quite get what the issue was, my friend fixed it somehow, I'll ask details if someone collide with the same issue.
Logged

Joomla extensions and components.
Home of Auction Factory, Love Factory (Dating Extension) and other ecommerce and social extensions
sawslider
Jr. Member
**
Offline Offline

Posts: 9



« Reply #10 on: June 11, 2016, 04:44:19 PM »

Hello, we have a module that will do this and is posted in the aluma photography board. Here is the description:

There have been several requests for a way to limit categories so only a specific user can see their own photos. There is no way to do this directly through Virtuemart so we have developed the attached module.

To set it up:

1. Publish this module to any position on the template.
2. In the backend of the module specify your error message - This message will show on the page if the user is not authorized rather than showing the actual category page.
3. In the backend specify the administrator user - This user will be able to see everything.
4. Specify a VM category ID and the username allowed to see this category - All others will see the error message in step #2 if they try to access the page.

Can you let me know what is the name of the module or where can I find it?

Thanks,
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.