Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #4502529
Estimate Delivery Date Field
Open

Comments

  • Luke started the conversation

    I have custom code that will pull the date field to show Est Delivery Date for either Variation, Parent orĀ Global date set. I need to know the field names for those specific dates so I can pull the data.

  •  1,542
    Dustin replied

    Hi Luke,

    For an individual product or variation, you can get the post meta with the key: 'wpced_rules'

    $rules  = get_post_meta( $product_id, 'wpced_rules', true ) ?: [];

    The result will look like this:

    4637455694.png

    If you want to get the calculated date based on all the settings, use the following built-in function:

    $date = Wpced_Frontend()->get_product_date( 83, 'plain' ); // 83 is product ID

    Best regards,
    Dustin