blushp
Forum Replies Created
-
Update (in case anyone finds it useful): you can create URL in “before_send” function and store it in a hidden field on the form. Then you navigate to “Actions after submission -> Custom text” and create a link for a user to click on.
But in my case, redirection must be automatic. Is there a way to “push” this created url to plugin and force it to redirect a user?
Hey,
the option “Action after Submissions” you mentioned only works if there’s a predefined url to redirect a user.
What about when I need to generate URL dynamically – based on form field values? Specifically: there’s a datepicker where user selects a date. After form submission, a user needs to be redirected to URL which contains that selected date.
For instance: user selects “24th Jan 2018” and then needs to be redirected to ‘targetUrl?date=2018-24-01’
For the ease of development, I used javascript and “before_send” function to fetch field values and create an URL. Which worked like a charm.
But I need to create URL and redirect user AFTER form submission. I tried using “after_submit” method, but form fields are unavailable at this point.
Please advise how can I fetch form values after form is submitted. Thank you!
Forum: Plugins
In reply to: [Advanced Free Shipping for WooCommerce] plugin only working in one languageI believe I figured out what’s the issue: products, posts, pages… everything translated is saved in WordPress as a NEW entry: it gets a new ID. Which means that a condition “if a cart contains product with id 2” isn’t valid anymore when you switch languages.
Forum: Plugins
In reply to: [Advanced Free Shipping for WooCommerce] plugin only working in one languageI have the same issue: can’t get this plugin to work in translated languages. On main language it works like a charm!