Skip to content

Instantly share code, notes, and snippets.

@aimahdi
Created November 13, 2025 10:17
Show Gist options
  • Select an option

  • Save aimahdi/c070345100aecae8a925d0d1320c4715 to your computer and use it in GitHub Desktop.

Select an option

Save aimahdi/c070345100aecae8a925d0d1320c4715 to your computer and use it in GitHub Desktop.
How to add custom column on product table (admin view)
<?php
add_filter('fluent_cart/products_table_columns', function($columns){
$columns['title_1'] =[
'label' => 'The Custom',
'accessor' => 'iam_custom',
'render_template' => true,
'template' => '<div class="flex gap-2">
{{data.order?.invoice_no || "--"}}
<el-button type="primary">Primary</el-button>
</div>'
];
return $columns;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment