Using the provided jQuery / commerce javascript plugins

Sep 19, 2014 5:20 pm

With many of Freedom's default commerce themes you'll need to include our jQuery widget that has commerce features such as hiding billing, and a form validator built in.

To do this you'll need to create a new widget in Green -> Layouts -> Widgets subtab, and add a new widget, and select 'jQuery Include' from the New Widget list, then just be sure to use that widget in any of your layouts.

Without this widget, you'll often see 'Uncaught ReferenceError: $ is not defined index.php?src=forms&id=commerce_checkout' in the developer console of your browser, and including it will fix that error.

You can also watch this screencast for walk through details on how to do this.