Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a user buys a product the system has to create a coupon code and email it with the rest of the order's info.
Comments
Comment #1
veshiyi2003 CreditAttribution: veshiyi2003 commentedIt would be great to have this.
Comment #2
volvic0402 CreditAttribution: volvic0402 commentedAgreed. This is critical to a deals site, and would be great to have this.
Comment #3
that0n3guy CreditAttribution: that0n3guy commentedThe coupon should be unique also. That way its trackable and can't be shared. To go along w/ that, there needs to be a way to output a list of coupon codes so as coupons are brought into a business, the cashier (for example) can cross the used coupon off the list.
Comment #4
yannisc CreditAttribution: yannisc commentedagree with that0n3guy.
We'll implement this in the next 2 weeks. (We have some paid work to do in the mean time).
Comment #5
Sansui CreditAttribution: Sansui commentedDefinitely a crucial feature for a deals style website :)
Probably could even implement something through a cck computed field easily enough
Comment #6
malahide CreditAttribution: malahide commentedany update on this? It's a little past the 2 weeks that were advised of above?
Comment #7
nchar CreditAttribution: nchar commentedComment #8
yannisc CreditAttribution: yannisc commentedWe're working on this, we'll have it on the next version... very soon!
Comment #9
nchar CreditAttribution: nchar commentedComment #11
jaxon77 CreditAttribution: jaxon77 commentedHow or where is the coupon field being set in orders upon completion? I don't see it in the rules anywhere.
Comment #12
petros CreditAttribution: petros commentedcan someone respond to what #11 says?
Comment #13
mxa055 CreditAttribution: mxa055 commentedThe way I implemented all of the above is by create a module that when a deal expires I create a coupon code for each order (orders can only have 1 item) and save it along with the order.
I also change the state of the order at that moment, so a rule that sends out emails is triggered.
As for the list to give out to the store you only need to create a view that shows order related to a specific deal, having fields such as name, address, coupon code etc.
Comment #14
jaxon77 CreditAttribution: jaxon77 commentedWhat I was asking is how the code is generated and where? It shows up in the orders but I'm unsure how that happens.
Comment #15
develop.css CreditAttribution: develop.css commentedWhat was the outcome of this issue? Does the Open Deals 7.x-1.14 version have the ability to create a coupon code and email it with the rest of the order's info?