Advertisement:

Author Topic: [Plugin] Promotion codes V 2.0 compatible with 3.1.+  (Read 65057 times)

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #15 on: July 30, 2011, 08:41:43 am »
Hi Jay,

I have take 5 min to test your pluggin and i just have to say : congradulation !

Anyway i found a very minor bug :

In admin if we set a value for number of use for a code and the code is all use the colum use left show unlimited in place of 0 or none.
This is because in your code you take value 0 to be unlimited so i suggest you to add a new value in the db and set this value true or false for unlimited.

But again very usefull pluggin !

Thank you Keny for trying out the plugin I am glad you find it useful.

As for the small bug I think I understand I will fix that.

Jay

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [New Plugin] Promotion codes
« Reply #16 on: August 02, 2011, 02:35:23 am »
hey, for some reason there isnt a limit anymore when i made a promo code, i can use it unlimited amount of times on the same account.

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #17 on: August 02, 2011, 04:13:29 am »
Hi

Is the promo code log showing that you used the code?
Are you useing 2.2 stable or 2.2 rc?

Jay

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [New Plugin] Promotion codes
« Reply #18 on: August 02, 2011, 04:16:49 am »
no, the log isnt showing anything and im using 2.2 stable

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #19 on: August 02, 2011, 04:18:04 am »
I am just upgrading to 2.2 right now I will see if I get the same problem.

Jay

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #20 on: August 02, 2011, 04:27:05 am »
Hi usclassifieds.org

Just finished my upgrade and the promo codes works fine on my site. How do you have the prpmo code set? Is it set for a set amount of uses or unlimited?

Jay

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [New Plugin] Promotion codes
« Reply #21 on: August 02, 2011, 04:30:04 am »
unlimited

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #22 on: August 02, 2011, 04:40:43 am »
After you enter the promo code you can then hit redeem again and it credits you account? It should be displaying you have already redeemed this promo code. Can you check in your mysql database to make sure that both table got created promo_code and promo_codes_redeemed.

Jay

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [New Plugin] Promotion codes
« Reply #23 on: August 02, 2011, 04:44:14 am »
sure, how do i check my mysql database?

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #24 on: August 02, 2011, 04:46:44 am »
In your web hosting control panel there should be a button labelled phpmyadmin after clicking there it should show you your database tables.

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [New Plugin] Promotion codes
« Reply #25 on: August 02, 2011, 04:47:19 am »
i found it only promo_code got created

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #26 on: August 02, 2011, 04:55:04 am »
Ok I think I have got the problem sorted out.

« Last Edit: August 02, 2011, 06:24:18 am by trains58554 »

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [New Plugin] Promotion codes
« Reply #27 on: August 02, 2011, 05:03:31 am »
okay, now the redeemed database thing has been created and the log works, but still i can keep on redeeming it how many times i want.

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Promotion codes
« Reply #28 on: August 02, 2011, 05:13:31 am »
okay, now the redeemed database thing has been created and the log works, but still i can keep on redeeming it how many times i want.

Is that with the same user or different users?

If it is the same user it should not be possible to redeem the code more then once. I will look over the code and see if I can see how that might happen.

Jay

usclassifieds.org

  • Sr. Member
  • ****
  • Posts: 268
Re: [New Plugin] Promotion codes
« Reply #29 on: August 02, 2011, 05:17:32 am »
its all for the same user