piwowartomek
Forum Replies Created
-
Thank you for your reply. I didn’t see it because of my website is multisite, and I had to activate plugin in whole network to see this images settings.
Thank you, Tom.Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Copy ‘Export’ button to frontendI have already export button on the frontend:
<form method="get" action="/wp-admin/admin-ajax.php"> <input type="hidden" name="action" value="order_exporter"> <input type="hidden" name="method" value="run_one_job"> <input type="hidden" name="profile" value="now"> <input type="submit" name="exportAllOrders" id="exportAllOrders" value="Export"> </form>
Is it also possible to copy to frontend “Date range” section from dashboard with two date pickers (from & to) to allow user select date range?
Btw. Why the “Date range” section exports order data not <from -> to> picked dates, but from one day after and to one day before I picked in input?
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Copy ‘Export’ button to frontendWorks great!
Thank you for your superb feedback.Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Copy ‘Export’ button to frontendThanks for quick reply. Now I have this code in page template:
<form method="post"> <input type="submit" name="exportAllOrders" id="exportAllOrders" value="Export" /> </form>
And this in functions.php:
add_action( 'parse_request', function( $query ) { if ( array_key_exists('exportAllOrders',$_POST) ) { $_REQUEST['profile'] = 'now'; WC_Order_Export_Ajax::run_one_job(); die(); } return $query; });
But my new button still cause HTTP ERROR 500 instead of download file.
- This reply was modified 5 years, 9 months ago by piwowartomek.
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Copy ‘Export’ button to frontendI made the button on my page which is calling the code you write but nothing is happening :/
Here is my code:<form method="post"> <input type="submit" name="test" id="test" value="Export" /> </form> <?php if(array_key_exists('test',$_POST)){ $_REQUEST['profile'] = 'now'; WC_Order_Export_Ajax::run_one_job(); } ?>
- This reply was modified 5 years, 9 months ago by piwowartomek.
- This reply was modified 5 years, 9 months ago by piwowartomek.
Thank you so much! Great feedback.