Hi, I’m trying to integrate the listing for vendors in the vendor block.
This is what I’ve accomplished since now:
What I need:
add_filter(
'hivepress/v1/templates/vendor_view_block',
function ($template) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'vendor_container' => [
'blocks' => [
'listings_container' => [
'type' => 'results',
'_order' => 20,
'blocks' => [
'listings' => [
'type' => 'listings',
'columns' => 2,
'_label' => true,
'_settings' => ['columns'],
'_order' => 10,
],
],
],
],
],
]
]
);
}
);
But all I can have is the “no results” message.
How can I have the listings inside the box?