• Resolved samthedev

    (@samthedev)


    Hello Damian,

    Thank you for the wonderful plugin. I noticed that the form’s action is set to “/”(root). Would it be possible to add an option in the plugin dashboard to allow for custom form action url? I created a customized search results page and had to change the form action url with JS. Not an emergency, but would be a priceless feature to have ??

    At the bottom of search suggestion, the link “SEE ALL PRODUCTS” would redirect to this custom form action url

    • This topic was modified 4 years, 3 months ago by samthedev.
Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hello,

    You can do it using WordPress filter hook. here is code:

    
    add_filter('dgwt/wcas/form/action', function($action){
    
    	// Set your own URL
    	// $action = home_url('/search-results');
    
    	return $action;
    });
    

    Best
    Damian

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Form Action’ is closed to new replies.