Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receiving Gravity Form Errors within WooCommerce Site

I have two issues which are appearing within my Chrome browsers console.

FYI, I am using WordPress 3.9, Gravity Forms 1.8.8 and WooCommerce Gravity Add On (latest).

Basically, when I am going into one of my products on my site (sorry, only have it running local on my machine), I am receiving the following two errors:

Error 1: Uncaught ReferenceError: gform is not defined

Error 2: Uncaught ReferenceError: gformCalculateTotalPrice is not defined

FYI, I am using the WooCommerce Gravity Forms Add On but am not using any pricing fields at all within my Gravity forms.

I am not sure how to track down why these errors are occurring or how to prevent them from occurring.

like image 906
tonyf Avatar asked Jun 10 '14 10:06

tonyf


1 Answers

You have to define the jquery at header section.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

I faced same issue with Gravity Forms and WooCommerce after initialize jquery at header section its resolved for me.

So, i think you have to initialize jquery at header section.

like image 51
Jayson Avatar answered Oct 13 '22 11:10

Jayson