• Resolved Jon Boss

    (@jonboss)


    Hi there,

    Working on a client’s site and we bought your plugin to use on their checkout page – works as advertised! The issue I’m having is – we’d like to move the datepicker so that it appears BELOW the shipping options in the order review table on checkout. That is: when a user selects a specific option we want to show an additional row in the table that prompts the user for the delivery date using this plugin.

    That’s not a problem – I’ve added a row on the ‘woocommerce_after_template_part’ hook with some conditions, and it appears correctly. In the plugin settings under ‘Fields placement on the Checkout page:’ I set it to ‘Custom’, added my own hook, and am firing it in the cell I’d like the datepicker to appear. That also works flawlessly, and the datepicker is added.

    The problem, I think is with ajax. That table’s content is continuously updated using ajax as the user fills in their details. I think what’s happening is – even though the input itself is added, the JS that initiates the datepicker doesn’t fire at any point after page load, and there’s therefore no way I can get the datepicker to load over ajax in this way.

    Is there a JS function I can call after the ajax in the table runs to reinitialize the datepicker? Or do you have another suggestion on how I can go about this? I unforunately am working locally – this change has not been made on live, so don’t have a page link – I’m hoping the details description is enough to let you know what the issue is.

    Even just a recommendation of something I can look for to get me started would be helpful!

    Thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding Delivery Date Field to Checkout Review Table’ is closed to new replies.