Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Get specific values in Woocommerce Rest API

please try the plugin to Get specific values in Woocommerce Rest API [products] please see JSON output I am using two extra parameter origin, token but you can set only two parameter for permission ...
vijay pancholi's user avatar
0 votes

How to delete all customer user account that haven't placed a single order?

I would comment, but I don't have a high enough reputation here. The above script does not work - All I get is the server (IONOS virtual server) spitting out an error 500. How do I diagnose error 500 ...
Mike Williams's user avatar
0 votes

Calculate order end date based on date and number of weeks ACF fields

This seems to have worked function UpdateEndDate($post_id){ //get start date and number of weeks $start_date = get_field('pick_up_date',$post_id); $weeks = get_field('number_of_weeks',$post_id); ...
nadyawell's user avatar
0 votes

Calculate order end date based on date and number of weeks ACF fields

You could consider working with unix timestamps (a numerical representation of a date and time that is the seconds elapsed since 00:00:00 1st January 1970). This makes the math easier since we would ...
Wongjn's user avatar
  • 266
0 votes

WooCommerce - Split Multiple Items into Individual Line Items

<?php // Register custom endpoint for split orders function custom_endpoint_for_split_orders() { add_rewrite_endpoint( 'split-orders', EP_ROOT | EP_PAGES ); // flush_rewrite_rules(); // ...
Yogesh Kaushik's user avatar
0 votes

WooCommerce Hook: Content get's displayed twice and not AFTER the order total

I've had this exact issue, and after following the action hooks back I've found the cause. On lines 223 and 224 (at the time of writing) of the file wc-template-hooks.php you can see this: add_action(...
Feel Content's user avatar
0 votes

Are there any hook or filter when refund is done through admin -woocommerce

In the latest version of WooCommerce the following hooks are fired when an order is refunded: Either woocommerce_order_fully_refunded or woocommerce_order_partially_refunded hook A bunch of hooks ...
Misha Rudrastyh's user avatar

Top 50 recent answers are included