× Please post all pre-sales questions of all products on this forum

Javascript conflict / error - MPRO 2.3.0

  • Paulzero
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 weeks 1 hour ago - 4 weeks 1 hour ago #117660 by Paulzero
Hi !

Working on old J2.5 / PHP 5.3 site using Membership-Pro 2.3.0. The site was recently moved to new server (.zipped & restored)

Have possible Javascript error ( ? ) Or Conflict - Effecting 'Custom Fields' & 'Coupon Field' auto-recalculation of 'Gross Amount':

Used to work fine, now changing values does not force re-calc ;

Page Effected :

'index . p h p ?option=com_osmembership&view=register'

'< h e a d >< script s r c="/components/com_osmembership/assets/js/paymentmethods . j s" type="text/javascript"></script></h e a d>'

(Corresponding JS - 'components/com_osmembership/assets/js/paymentmethods . j s' - L179 - calculateSubscriptionFee)

In 'Chrome Console' :

'Uncaught ReferenceError: calculateSubscriptionFee is not defined'

'paymentmethods.js:106 Uncaught ReferenceError: OSM is not defined'

'jquery.validationEngine.js:13 Uncaught ReferenceError: OSM is not defined'

I'm suspecting a JS conflict (Or something to do with changing server)- any ideas on what to do.or how to isolate the problem ?

Thanks for a great product,

Cheers - Paulzero.
Last edit: 4 weeks 1 hour ago by Paulzero.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 weeks 32 minutes ago #117662 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Javascript conflict / error - MPRO 2.3.0
Hello Paulzero

Please submit a support ticket sending us super admin account of your site and link to the form

I will check to see what's the reason causing this conflict and get it sorted

However, since we stopped the development for Joomla 2.5 long time ago and your subscription was expired, we could not provide more support like this in the future

Tuan

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

  • Paulzero
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 weeks 3 days ago #117777 by Paulzero
Replied by Paulzero on topic Javascript conflict / error - MPRO 2.3.0
Hi Tuan,

Thanks for reply - found conflict & solved problem.

Just one question regarding 'Coupons' : When entering a 'Coupon Code' should the User 'Tab' out of the field after entering 'Coupon Code' (To fire Ajax - onchange) or just wait ?

Could be my server, but sometimes the 'Wait' for fee re-calculation after entering a 'Coupon Code' can be feel very long (3 seconds +).

Thanks again - Cheers - Paulzero.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 weeks 3 days ago #117780 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Javascript conflict / error - MPRO 2.3.0
Hello Paulzero

Yes, they should move out the field to trigger onchange event for the field to trigger validation coupon process

If it takes that long, I would say that it's server issue. This should not take more than 0.5 seconds (just a simple ajax request to validate the coupon, so it's fast)

Tuan

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam