Allow only one purchase per user??

  • Posts: 241
  • Thank you received: 5
11 years 3 months ago #114230

I run a athletic event website.

Hikashop manages the registrations, and then the user name / profile is sent to community builder to populate the event leaderboard.

Unfortunately, users sometimes sign up their spouse, friends, etc under the same order as themselves. This causes problems because then the person's name is not available on the leaderboard.

How can i create a rule that only one person can buy one item while logged in.

Right now i have tried to set "maximum quantity per order" = 1 (screenshot 1)... but I am still getting multiple orders under one user order (screenshot 2)




Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #114253

Hi,

I think that the solution would be to use :
- ACL(access level) which are available through the business edition of hikashop
- The User group after purchase option.

Then you'll be able to change your user group after that he purchased the product one time(User group after purchase), and restrict your product to a different group than his new "after purchase" group (ACL).

Hope this will help you.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
11 years 3 months ago #114336

I am not clear on how that would work.

We currently use ACL to add "user group after purchase", but that does not stop multiple products in the cart prior to purchase.

Limiting the number of products in the cart won't work either as some have multiple options and others have no options.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #114338

Ok, but you should restrict your product to the group BEFORE your user purchased your product, then when his group will change to the "user group after purchase", he won't be able to buy it anymore.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
11 years 3 months ago #114339

sorry... maybe I am not being clear.

The product needs to be publicly available. If we change a users group, they can't come in and purchase another item later (another event in the future).

I am hoping there is a way the cart can just check and see that the product is in or not. If so, the message should say,


"you already have this item in your cart and we limit to one purchase per user"

That is how i interpret "maximum quantity" to mean. What does "maximum quantity" do if not that?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #114343

Ok :) !

Another solution will be to :
- not use the ACL option but to add another price which will be free and set the ACL of this price to the "user group after purchase"

- Then go to "Hikashop->System->Configuration->Main"
- Set the "Display 'add to cart' button for free products" option to NO

- Go to "Hikashop->System->Configuration->Language"
- Edit your language file
- Change the line :

FREE_PRICE="Free"
by :
FREE_PRICE=""

Last edit: 11 years 3 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
11 years 3 months ago #114695

hmm.

I have been playing with this but can't seem to add a "free" additional price. every time i hit save, it disappears.. i finally figured out you must enter 0.00 not just 0

Now i got the free products not adding to the cart which is a problem:


Attachments:
Last edit: 11 years 3 months ago by cberry1971.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #114697

Hi,

You shouldn't add the free products to your cart, so did you do that :

- Then go to "Hikashop->System->Configuration->Main"
- Set the "Display 'add to cart' button for free products" option to NO

Last edit: 11 years 3 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
11 years 3 months ago #114699

we have "free options" (t-shirt size) which are grouped with the product.

so when we go to checkout we get the following screenshot. it seems like the "maximum quantity per order" should do the trick... sometimes it does, and others it does not. almost like a bug.

when it does, the quantity is reducec (also in screenshot).. but other times, it is not (screenshot #2)....





Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #114706

This error is probably caused by the way you configured the "Maximum quantity per order" not by the "add to cart' button for free products" option, so you're supposed to be able to add free products as product's options.

Please Log in or Create an account to join the conversation.

Time to create page: 0.112 seconds
Powered by Kunena Forum