TOPIC:

Paypal button doesn't work - ff_btnPaypal_action is not defined 1 year 1 week ago #266018

  • Admin@opendofe.org's Avatar Topic Author
  • Admin@opendofe.org
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 62
  • Thanks: 0
Hi
I am trying to click on a paypal button, and it doesn't take me to Paypal.
In the JS console, I get an error
"ReferenceError: ff_btnPaypal_action is not defined"

Where do I start looking for the ff_btnPaypal_action code?

Thanks
Mike
Mike

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

Paypal button doesn't work - ff_btnPaypal_action is not defined 1 year 1 week ago #266021

  • Admin@opendofe.org's Avatar Topic Author
  • Admin@opendofe.org
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 62
  • Thanks: 0
I found the ff_btnPaypal_action() - it's the Paypal button.
The error message appears to be erroneous.

Here's my paypal code:
function ff_btnPaypal_action(element, action) {
    switch (action) {
        case 'click':
            prod = ff_getElementByName('selMembership');
            prod1= prod.options[prod.selectedIndex].innerHTML;
            n = prod1.indexOf('£');
            m = prod1.length;
            item = prod1.substr(0,n);
            itemcost = prod1.substr(n+1,m-n);
            qty=ff_getElementByName('selQty').value;
            cost = itemcost*qty;
            ff_getElementByName('rdCost').value = cost;
            if (qty==1) {pers = ' person '} else {pers = ' persons '}
            if (qty>1) {ea = 'each'} else {ea = ''}
            paypal =  item + ' - '  + qty + pers + '@£' +  itemcost + ea + '|0|' + cost + '|0';
            ff_getElementByName('PaypalSelect').value = paypal;
            ff_validate_submit();
            break;
    } 
}

The ff_validate_submit() isn't executing, although I can't see why not.
Mike

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

Paypal button doesn't work - ff_btnPaypal_action is not defined 1 year 1 week ago #266028

  • Admin@opendofe.org's Avatar Topic Author
  • Admin@opendofe.org
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 62
  • Thanks: 0
You can close this case - I had a custom validation with no JS code associated wityh it that was causing the validation to fail, but as it had no code, it didn't issue any errors messages regarding the validation!
Thanks for your time.
Mike

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

Paypal button doesn't work - ff_btnPaypal_action is not defined 1 year 1 week ago #266031

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11643
  • Karma: 3
  • Thanks: 756
Hi,

ok :)

If you need anything else, feel free to ask

Regards,
Tihana

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.050 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!