Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: 1 2 3 [4]   Go Down
Print
Author Topic: Item-specific coupon code! Applies coupon amount to one product only  (Read 28980 times)
semana
Newbie
*
Posts: 8


« Reply #45 on: May 29, 2009, 22:40:09 PM »

Hello there, this looks like a great feature, it looks like it meets 95% of what I need.  I'd like to have coupon codes apply to a number of assigned products (in this case, it's a number of documents that i'd like a coupon code to be associated to.  Any suggestions?

Thanks for your help,
TS
Logged
barbara
Full Member
***
Posts: 131



« Reply #46 on: May 30, 2009, 19:56:36 PM »

You Rock!

I`ve been trying for a long time to get something like this working - it worked right away, no fuss no muss - THANK YOU!!!
Logged
barbara
Full Member
***
Posts: 131



« Reply #47 on: June 01, 2009, 22:26:30 PM »

One question... I`d love to be able to send out a mailing to all my subscribers with the coupon code, but have it so that any given user can only use the coupon once - I thought if I had it set to 'gift coupon' that would be the case, but what happens is the first person who uses the coupon erases the coupon - so I would have to somehow make unique coupons for all 1500+ subscribers?!

any suggestions would be greatly appreciated
Logged
extremeforce
Newbie
*
Posts: 2


« Reply #48 on: June 29, 2009, 14:48:09 PM »

Hi donmarvin!

Great Job! - It works!

Well do youthink that coupon for Product group is possible too?

With best regards,

             Gabriel
Logged
urso.lv
Newbie
*
Posts: 16


« Reply #49 on: July 17, 2009, 08:37:48 AM »

Hi.

Thank you for your hack. Works fine.

How about applying a coupon to multiple products or specific product category?
Logged
fbde
Newbie
*
Posts: 5


« Reply #50 on: August 29, 2009, 12:48:59 PM »

don't know if that's the best way of doing it, but I had a similar problem recently. I needed 100 distinct gift coupons, which I would send by email to distinct recipients.

I went into mysql admin and fired off the following sql:
Code:
insert into jos_vm_coupons values
(null, rand(), "total", "gift", '6.66'),
(null, rand(), "total", "gift", '6.66'),
(null, rand(), "total", "gift", '6.66'),
...

you get the idea. The "rand()" is creating a random coupon code. I think that it would be easy to concatenate it to "IS-5-", the format of this hack.
That created enough coupons for me. I then used the serial email function in open office writer to send out one code per clients. Works like a charm for me.

Frank

One question... I`d love to be able to send out a mailing to all my subscribers with the coupon code, but have it so that any given user can only use the coupon once - I thought if I had it set to 'gift coupon' that would be the case, but what happens is the first person who uses the coupon erases the coupon - so I would have to somehow make unique coupons for all 1500+ subscribers?!

any suggestions would be greatly appreciated
« Last Edit: August 29, 2009, 13:14:27 PM by fbde » Logged
floodhammer
Newbie
*
Posts: 7


« Reply #51 on: September 28, 2009, 14:31:48 PM »

Works great but I noticed a few things that might want to be addressed.

1. the discount is applied to the product base price which is fine for a coupon based on a dollar amount. But if you use a percentage based coupon, then the percentage off does not reflect any discounts that may be applied to the item. In other words if my items base price is $10.00 but the item has a $2.00 discount, a 10% coupon would yield a $1.00 discount rather than a $.80 discount.

I tried to hack a fix but no worky around line 207
$coupon_value_basis = round($price['product_base_price']-$price['product_discount'] * $cart[$i]['quantity'],2) ;

I think I just need a query to get the discount in.

2. Also on a percentage based coupon. If the customer adds more than one of the coupon items to the cart, the discount is only applied to 1 item and not the additional items. In other words I have a $10.00 item with a 10% coupon. If the customer has one of the items they get a $1.00 coupon. If they add more of the same items, they still only get a $1.00 coupon. Maybe this is by design.

Thanks for your work this should be implemented into future version of virtuemart.

Logged
jacarp212
Newbie
*
Posts: 5


« Reply #52 on: October 17, 2009, 15:19:39 PM »

It's also going to be a problem for some users that if you add 2 of the discounted product it gives you twice the discount, even if it is a gift coupon. But this most certainly differs for each user so it would take som setting to be perfected.

But I am as happy as I can be for this, thank you so very much!


Was there ever a fix for this? I have it set up that a customer will go to a retail store. Buy a gift coupon and then come to my site to use it. If the customer is able to add quantity more than one and get a discount on all products, this is not good. How can I fix this so that one coupon code is good for only one product and quantity one?

Any comments?
Logged
dheimoz
Newbie
*
Posts: 2


« Reply #53 on: February 02, 2010, 11:06:54 AM »

Hi everyone, this add-on seems to be perfect, however I'm having a big issue. I have installed the "test" virtuemart enviroment (Washupito's store) I have replaced the new ps_coupon.php at home/administrator/components/com_virtuemart/classes, then I added a new test coupon IS-1-TEST. Far as I understand, IS-xx-whatever the "xx" is the productid, this coupon will in theory only works on product "hand shovel" no matter what SKU is right? However, no discount is applied and there's an error "Notice: Undefined variable: coupon_value_basis in N:\programas\wamp\www\Joomla\administrator\components\com_virtuemart\classes\ps_coupon.php on line 218" what am I doing wrong?
Logged
ccraciun
Newbie
*
Posts: 5


« Reply #54 on: April 13, 2010, 15:22:51 PM »

dheimoz: i'm sure there is a problem with your wamp configuration. the mod it's ok as it is without any other hack.

donmarvin, many thanks for the mod! It works excellent with 1.1.4!
« Last Edit: April 13, 2010, 15:25:22 PM by ccraciun » Logged
topherotica
Newbie
*
Posts: 7


« Reply #55 on: June 02, 2010, 11:38:05 AM »

I've implemented this and it works great, to an extent. I'm having an issue with the total. (the item # is 26, the product is a dvd collection, the promotional coupon is "IS-26-100509-P"

The total is coming out as 0 after i apply the coupon and remains that way for the first 3 of 4 steps. The coupon is applying fine, in the very last step it shows the total correctly, but until then it doesnt calculate.

Did i possibly overwrite something important? im looking at the php right now and comparing the original php file to the one supplied and im hitting my head against the wall.

Heres a screenshot- hopefully someone might be able to help?
http://imgur.com/EsOQV.png

Thank you!
Logged
Black Magic Digital
Newbie
*
Posts: 5


« Reply #56 on: July 02, 2010, 09:27:23 AM »

Hi, im looking to find out if this will work for multiple products as i have parent products and child products i would like to be able to apply a code to the parent and child products?

Logged
ssanchez
Newbie
*
Posts: 29


« Reply #57 on: July 09, 2010, 14:57:09 PM »

nice!
Logged
Electronicsky
Newbie
*
Posts: 1


« Reply #58 on: January 06, 2011, 02:44:51 AM »

Designing coupons is also a good way to show off your creative mind. Right coupon campaign could help us bring in repeat business, attract new customers, and so on. What important features you should bear in mind when you design?

1. All coupons should have a starting date and an expiration date. For example, PickEgg wholesale electronics coupon code abcd8678 ($20 off for purchase $150+), abcd7678 ($12 off for purchase over $100+), abcd6678 (15% discount for purchase $150+), and abcd5678 (any purchase at PICKEGG Sitewide) have told you they are available from 28th, December, 2010 to 30th, January, 2010.

2. Combination of image and text is easy to catch people's eyes and make them know when, where to use coupon and what kind of products or services they could use.. But too many images or too much text would cause bad effect.

3. State clear about any restriction on the coupon.

http://www.pickegg.com/
Logged
OGBoardman
Newbie
*
Posts: 4


« Reply #59 on: June 02, 2011, 04:40:07 AM »

Is there a way to apply a coupon code to all products except for one?
Logged
Pages: 1 2 3 [4]   Go Up
Print
Jump to: