Support » Plugin: PPOM for WooCommerce » PPOM has stopped working.

  • Resolved rafaelgg89



    It’s stopped working. Does not load JavaScript. Conditionals do not work and cannot be added to the cart.

    Can you help me?

    Best regards!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • There was a recent change to the disable past dates feature for the date input field. It needs to have a valid value.

    From the developer console the error shows:
    TypeError: input.past_dates is undefined

    You need to add a value to the Disable Past Dates option under the Fecha recogida meta group field or just update it. It doesn’t appear anything has been saved in the database for that field.

    It can be one of the following:

    • on – will set minDate to the current day
    • A date using the default format of mm/dd/yyyy – e.g. 07/02/2019
    • A shortcode (if using the jQuery datepicker) – e.g. +5d (five days from today)

    More information can be found here for shortcodes:

    If you don’t want to disable past dates then just leave it empty, update the field and save the meta group.

    • This reply was modified 4 months, 3 weeks ago by brozra. Reason: spelling correction
    • This reply was modified 4 months, 3 weeks ago by brozra. Reason: more details

    @nmedia – should probably add some error checking to the ppom.inputs.js script to make sure the value isn’t undefined and also do some value cleaning with trim().

    if (typeof input.past_dates !== 'undefined') {
    	if (input.past_dates.length > 0) {
    	    var minDate = input.past_dates.trim();
    	    // accommodate for previous values with "on" as the option
    	    if (minDate === "on") { minDate = new Date(); }
    	    InputSelector.datepicker('option', 'minDate', minDate);
    Plugin Author N-Media



    Thanks, @brozra thanks for sharing, we will also update our PPOM right now.

    Plugin Author N-Media


    @rafaelgg89, please re-install plugin we have fixed this issue.

    Thanks for the information @brozra @nmedia . I’ve been able to solve the problem.

    Greetings from Spain!

    Plugin Author N-Media


    Cheers. If you like our support/plugin please rate our plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.