Closed (fixed)
Project:
Commerce Coupon (D7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2012 at 01:21 UTC
Updated:
8 Aug 2019 at 05:14 UTC
Jump to comment: Most recent
Comments
Comment #1
jasen commentedYes! Integration with user points would be awesome, I would totally use this.
Comment #2
pcambraI see the use case, agreed with it being useful for many things.
A "plug and play" approach should be in a separate module, but you can get into this quite straightforward for a basic integration with the current state of the things.
You'll need to create a new coupon type and in the rule regarding applying the coupon to the order, you just need to place the corresponding userpoints action (didn't try it but I'm quite sure userpoints has a rule action to apply points to a given user). What you need to add is a field to the coupon type that has the number of points assigned.
Setting this as postponed as this is a third party module material.
Comment #3
jasen commentedI ended up building this into a custom module if anybody is interested...
Comment #4
johnhanley commentedAs the OP, I no longer have the need, but I think this would be very useful as a contributed module.
Comment #5
Anonymous (not verified) commentedHi Jasen,
I'm interested in the custom module that you created for converting userpoints into a coupon. I really could use something like this for a drupal commerce site I'm working on.
Thanks!
Comment #6
jasen commentedtuong88, mine is pretty heavily configured to the exact setup of my site and other custom modules. But here's a very similar one that would do pretty much the same thing:
http://drupal.org/sandbox/kimberlydb/1882566
Comment #7
kimberlydb commentedI have written a custom module, it does work, but as a warning it does require some coding/manipulation at the moment. I am working on getting it cleaned up and adding a UI config for easy usage. I am happy to share what I have now, but you'll have to take a look at how it works and see if you can manipulate it for your site. I don't have a timeline for completion, but hopefully in the next month or two.
It does a bit more than just give the user a # of points for entering a coupon. Each of my products had a value of points that a user would be awarded after purchase. The coupon can multiply this value. It also for specified products gives a bonus, and a bonus for an order (which would be the basic mode) where if a user reaches a certain minimum price it awards the points.
Comment #8
kimberlydb commentedI have completed a stripped down version of the module and applied for project status on it.
http://drupal.org/node/1984478
Comment #9
kimberlydb commentedModule: http://drupal.org/project/commerce_coupon_userpoints
Try it out.
Comment #10
johnhanley commentedKimberly, thanks for your time putting this together.
Comment #12
Chris747Hi guys,
I would like to use this module in the registration form: The user can get e.g. 50 user points by registrating with the coupon code '50userpoints4free'. Can I do this with this module, or would i have to set it up differently?
Kind regards,
Chris
Comment #13
johnhanley commented@Chris747, welcome to drupal.org.
This issue has been closed for 6 years. Also, this isn't the place to ask for help or opinions. That said, it sounds like @kimberlydb's module might suit your need. The best thing you can do is download the module and try it out.