Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    I get this JS error.

    Timestamp: 25/02/2016 11:30:44
    Error: ReferenceError: tarif is not defined
    Source File: https://www.live-sim.com/bLive-Sim/wp-includes/js/underscore.min.js?ver=1.6.0 line 5 > Function
    Line: 56

    You probably add a custom field called ‘tarif’ in the functions.php, and not set the data in the admin area? If you for a second comment all custom modifications, does it still not work?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you try to go to the Tools section on the WPSL settings page, and clear the transient cache?

    Thread Starter murrey35

    (@murrey35)

    I have clear the transient cache.
    Yes I have added a custom field called tarif in the functions.php file.
    I have 2 questions :
    – How did you show the JS error. Do you use something to show ?
    – where in the admin area can I add my custom fields ?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You can see the JS errors in the browser console

    You mean the store details section in the admin area? This article walks you through the steps, from creating the field, adding the data to the returned content and showing it on the front-end.

    Thread Starter murrey35

    (@murrey35)

    It’s the article I have used.
    You said previously :

    You probably add a custom field called ‘tarif’ in the functions.php, and not set the data in the admin area?

    what do you mean by setting in admin area ? do you mean in wp-admin ?

    If you for a second comment all custom modifications, does it still not work?

    I have tried yesterday to comments all my custom fields and I still have the error message. I will change again this afternoon and tell you when it will be done.

    Thread Starter murrey35

    (@murrey35)

    On functions.php I have commented custom fields.
    Here is the page (I have clear the transcient cache)
    https://www.live-sim.com/bLive-Sim/la-simulation-a-la-carte/

    As you can see when I click on Itinéraires (it’s direction). I have an error. However I discover that URL is linked to https://www.live-sim.com/bLive-Sim/la-simulation-a-la-carte/#. May be it’s the root cause ? It should be linked to google shouldn’t it ?

    Thread Starter murrey35

    (@murrey35)

    It solved now.
    For others, it was because option (When a user clicks on “Directions”, open a new window, and show the route on google.com/maps ?) was not ticked in parameters.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error when I click on get directions’ is closed to new replies.