Coupon Code with PayPalSelect List 5 years 1 week ago #179582

  • Topic Author
  • galmala1
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
it worked great. thank you.
I changed a bit the coupon script. now each coupon is a pair that consists the coupon code and the discount percentage so the price will be calculated based on the coupon entered.
here is the updated version, in case some would want to use it:

function ff_coupon_action(element, action)

var coupons = {
"qwe" : 10,
"asd" : 20,
"zxc" : 30

if(element.value !== ''){
var found = coupons[element.value];
if(typeof found !== "undefined")
ff_getElementByName('amount').value= (Number(ff_getElementByName('amount').value)) - ((Number(ff_getElementByName('amount').value)*coupons[element.value])/100);
} // ff_coupon_action

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

Coupon Code with PayPalSelect List 5 years 1 week ago #179583

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
That's great :cheer:

Thank you for sharing your solution with the community.

Let us know if there is anything else.
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Need to renew Pro Support?
Buy Here!
Consider a membership!
Like us on Facebook

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

Last edit: Post by lovre.
  • Page:
  • 1
  • 2
Time to create page: 0.045 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links










Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

Questions et réponses sur les forums de l'AFUJ


Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!