• Resolved yasbadri

    (@yasbadri)


    Your plugin is awesome! I wanted to know if it is possible to retrieve the value of the radio button for the type of service on the order page to display or not some fields. I can’t get the value with document.getElementById(“wfs_service_type_pickup”) and document.getElementById(“wfs_service_type_delivery”)

    Thanks by advance for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter yasbadri

    (@yasbadri)

    I used another solution. I use the value in url: /?type=pickup or /?type=delivery

    Thanks

    Thread Starter yasbadri

    (@yasbadri)

    Thanks

    Thread Starter yasbadri

    (@yasbadri)

    sorry, I open this ticket, in reality the POST is present in the url only when the change is made on the order page. How can we retrieve this service type value when the service is selected on the previous page?
    I can’t with getelementbyid !

    Thanks you

    Plugin Author WP Scripts

    (@wpscripts)

    Hello @yasbadri ,

    Thanks for using the food store plugin. You can get the selected service type by using the service_type cookie. You can use this cookie key and this will return you the selected service type.

    Let us know if that doesn’t work for you.

    Regards,

    Thread Starter yasbadri

    (@yasbadri)

    Ah yes great, I’ll take a look there. Thank you for your comeback

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Value checked of type of service on the order page’ is closed to new replies.