TOPIC:

Coupon Code with PayPalSelect List 4 years 7 months ago #179445

  • Topic Author
  • galmala1
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
Hello,

I have a PayPal form that contains a list of items which one can choose (PayPalSelect List). The price is determined by the chosen item. Now, I want to add a coupon code field, which will be a text field that validates a certain code. If there is a match, the price will change according to the coupon discount percentage.

For example, the user chooses item A which cost 100$. if he has a coupon code (let's say 10% discount) they final price will be 90$.

How can I achieve this behaviour?
thank you,
Gal

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

Coupon Code with PayPalSelect List 4 years 7 months ago #179478

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
Hi,

could you please send us your form so we can work on it. Follow this steps to create a Form Pacakge: crosstec.org/en/support/online-documenta...ted/94-packages.html

Zip it (.zip) and attach here.
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================

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

Coupon Code with PayPalSelect List 4 years 7 months ago #179482

  • Topic Author
  • galmala1
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
Thank you for your answer.
Please see attached.


File Attachment:

File Name: mypck_001.zip
File Size:14 KB
Attachments:

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

Coupon Code with PayPalSelect List 4 years 7 months ago #179496

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
Hi,

I have attached the form for you. Just install via package installer (BF configuration).

What we have done is redefined your select from list like this:
1;select;
0;140;140
0;120;120
0;80;80
0;50;50
, since you can not any longer use the same approach (naming the select from list element PayPalSelect).
Notice also that there are only 0 or 1 besides each entry. 1 for selected and 0 for not. Also we apologize, we could not use Hebrew characters inside the list, you can change that, but not the third column with the values, leave that the same.

We created an element to show the price called amount, a field for the coupon code and a hidden input field called PayPal Select.

Please take a look at "change" actionscripts for the coupon element:
function ff_coupon_action(element, action)
{
var coupons = ["Coupon1", "Coupon2", "Coupon3"];
var found = jQuery.inArray(element.value, coupons ) > -1;
if (found)
ff_getElementByName('amount').value=Number(ff_getElementByName('amount').value)*0.9;
} // ff_coupon_action

change the array coupons to your coupon values.

Hope this helps. Let us know how it works out.
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
Attachments:

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

Coupon Code with PayPalSelect List 4 years 7 months ago #179501

  • Topic Author
  • galmala1
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
Thank you!
Unfortunately, the PayPal button doesn't react now.
link to the form can be found here: us-visa.co.il/%D7%93%D7%A3-%D7%AA%D7%A9%...4%D7%A0%D7%97%D7%94/

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

Coupon Code with PayPalSelect List 4 years 7 months ago #179509

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
Hi,

sorry about that, you had a error in a validation and there was a bad method name for the button actionscript.

I'm sending you the new form (Attached).

You can also build a validation for the coupon element which would check if the entry is in the list or if left empty then pass.

Please let us know how this works out.
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
Attachments:

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

Last edit: Post by lovre.
  • Page:
  • 1
  • 2
Time to create page: 0.055 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

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

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

breezingforms.eddy-vh.com

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

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 sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!