date_created
is read-only
value meaning that you cannot set it over the REST API. What you can do is:
- Send creation time from your “external system” as
order meta data
(sample PHP code below) and then in WooCommerce trigger the action using custom plug-in which updates orderdate_created
according to a meta value.
$json_encode['meta_data'][0]['key'] = 'my_date_created'; $json_encode['meta_data'][0]['value'] = '05-12-2017 13:00:00';
- Update
date_created
in your “external system” withdate_created
from jSon returned by Woocommerce in order to have values synchronised.
If you just want to pair order records do it over order ID
returned in jSon by Woocommerce (Woocommerce returns a jSon when the order was created successfully). You will add order ID
record to your “external system”.
Related Posts:
- how to use wc_create_order with subscription product
- Is it possible to add custom fields to a WooCommerce attribute term? [closed]
- Add custom variable to cart content [closed]
- WooCommerce changes lost password reset link
- Woocommerce My Account Endpoint – how to get ID parameter from URL?
- Default woocommerce placeholder image
- WooCommerce: Add New Report Tab
- How to add Woocomrce cart page shipping calculator to my country state list
- Custom Woocommerce image size [closed]
- Migrate WooCommerce Orders [closed]
- Button to update order status Woocommerce with WC Marketplace
- WooCommerce Subscriptions: Show monthly Price for annual Product
- WooCommerce: display text instead of raw checkbox value email
- How to add multiple product gallery images from front-end
- Hide income in Woocomercer [closed]
- WooCommerce single products images doesn’t zoom on hover and doesn’t change clicking on gallery
- Disabling the free shipping method when the cart has product/s which assigned a certain shipping class [closed]
- woocommerce_email_subject_customer_completed_order
- is_shop, is_home, is_front_page doesn’t work for woocommerce
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- Woocommerce – Show random product thumbnail from specific product category
- How to add a greeting message upon logging into WordPress for certain user role
- Modify some CSS with functions if (function_exists
- Limit total quantity of products in WooCommerce group product
- How can I change the functionality of breadcrumbs?
- Variation name in $product->get_name()
- WordPress keeps moving my widgets to other widget areas
- Woo-commerce Checkout Summarized in Pop-up Card Entry Only
- How do I add an extra field to comment form above the submit button?
- woocommerce email template detect email recipient
- WooCommerce – buying as well as selling
- How do I hide ‘out of stock’ products in the admin ‘product’ page?
- how to remove or disable woocommerce order review in checkout page?
- WordPress and WooCommerce – How many products are too many? [closed]
- Add custom field to Woocommerce add new attribute / edit page
- WooCommerce – Add product with image via REST API
- How to get woocommerce selected variation from order object
- JWT on Woocommerce cannot work with “Customer” role user
- Woocommerce – Add HTML around Product description [closed]
- relocate woocommerce notices/messages on Cart page
- Woocommerce emails from gmail not being sent
- lost password link not working for my site
- How to give each category name its own ACF background color?
- WooCommerce 4: Gallery size is too large in mobile
- How it it possible to disbale all WooCommerce scripts and styles, but keep wc-ajax=get_refreshed_fragments working? [closed]
- Woocommerce cart is not clear after logout
- WooCommerce event works in jQuery but not in JavaScript
- Filter default_content only for products
- Is there any way to pro-grammatically create product categories and assign thumbnails in PHP and WooCommerce?
- Remove Visual Editor and P tags from WooCommerce Taxonomy Descriptions [closed]
- Append woocommerce category to product title globally? [closed]
- get_posts $args won’t accept array as one of the criteria?
- Custom fields values not being created
- Adding additional text under the price via product page
- Display WooCommerce product category on shop page (on every product)
- Multisite login – registration is duplicated
- WooCommerce variable product can not add to cart using ajax after updating latest version of WooCommerce
- Create a Search Form that only Searches with WooCommerce Sale Products
- Update WooCommerce Sale Price & Date Based On Attribute Value
- Anonymous users can not access website
- Add quantity of variations together and show it to parent quantity field Woocommerce
- Woocommerce: How to change the attribute values per product
- add_post_meta add latest data from meta_value array
- WordPress | Woocommerce | use “category display type” in if statement
- WordPress & Woocommerce variation Price
- Adding country subdomain to an existing website like www.example.com/uk
- Move woocommerce directory
- Hide review form if user has left a comment
- Some html elements displaing in a strange order in WordPress
- Update / refresh mini cart, after custom AJAX add_to_cart event
- How can I get a get a list of customers from a list of email addresses?
- Woocommerce: sorting variable product
- Remove filter parameter from Link URL
- wordpress site auto redirect to another site when I enable woocommerce
- Woocommerce price in meta data
- White screen only on some woocommerce products
- How to create woocommerce products list
- add_action don’t updates theme layout when using values from the WordPress customizer
- How can I change my search form to bring up product results, not blog results
- Prevent user from changing any account data once it is setup
- Woocommerce: Unique price for individual basket items
- Can I get some product is virtual in Woocommerce by hook?
- Woocommerce order_complete email dont send after changing order status via sql
- How to adjust Related Page Thumb Sizes on single page?
- Adding more than one item to Woocommerce cart
- Woocommerce – get product in category with specific attribute
- Woocommerce make appear when items added to cart
- How do I change the woocommerce product gallery to show all thumbnails instead of three at a time in a carousel?
- How to add a menu page for options in wordpress for user that has the role of vendor?
- Testimonials/Reviews for Products
- add custom menu in woocommerce dashboard [closed]
- WooCommerce: Order Details Table > Add Product Meta
- Override function
- How to disable schema from Wocommerce? [closed]
- Updating order meta to have a meta entry from an item in the order
- Send data to external websites when there is an update or create a post
- Disable duplicate WC product category URLs
- how should i get products based on tags in woocommerce
- Add custom text to product category page
- Woocommerce permalink URL change in DB