Skip to content

You need to set some standarad logic for logs order timeline #2378

@pubg-prog

Description

@pubg-prog

if admin added a comment and update order payment status when getting this order data then developer need to add lines of code for each property name
@if ($isStatusUpdate)
({{ ucfirst(str_replace('-', ' ', $activity->properties->get('new'))) }})
@endif
@if ($iscmup)
({{ ucfirst(str_replace('-', ' ', $activity->properties->get('content'))) }})
@endif
but this can be more managable by llike property common name like $activity->properties->get('label') and $activity->properties->get('value ') also if you need more data with property labels by like for loop label1, label2, label3 etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions