Forum Replies Created
- AuthorPosts
- Nico BeinParticipant
The code above is from a project WITHOUT vendors, WCFM and stuff. There I can use Elementor Pro’s “Posts” widget and either use the built-in filter options or give the query an ID and filter it via code in the functions.php (see https://developers.elementor.com/custom-query-filter/).
Now I use the marketplace and also “WCFM – WCFM Marketplace integrate Elementor” plugin. I created a store page with Elementor Pro and added the “Store Tab Contents” widget from the “WCFM – WCFM Marketplace integrate Elementor” plugin. It works and only the vendor’s products are shown. But I want this query to be sorted by a special field (in my case ‘WooCommerceEventsDate’) and I need the expired events to be hidden.
I only know the way to do that like mentioned in the first paragraph and I hoped that it would be possible to give the query created by the “Store Tab Contents” widget a custom ID (like ft_event_listing) and then order it.
What would be the best way to do that?
If there is no way with using the “Store Tab Contents” widget it might be possible the other way round…? Maybe I could use Elemetor Pro’s “Posts” widget, sort it the way I like, give it an ID (e.g. ft_event_listing) and have a function to only display the vendor’s products…?
Nico BeinParticipantThanks, but actually that doesn’t help.
I need to add a query ID on the shop page to filter it like that:
add_action('elementor/query/ft_event_listing', function($query){ $query->set('orderby', 'meta_value'); $query->set('meta_key', 'WooCommerceEventDate'); $query->set('order', 'ASC'); });
It would be great if it would be possible to easily add the ID in the Elementor widget settings (as seen on other plugins). Since that is not possible: Where may I add the ID?
Best,
NicoNico BeinParticipantIs it possible to customize the product grid that is used for the vendor’s shop pages? I want to sell tickets and need to display the date, the location etc. in the grid…
Best,
Nico - AuthorPosts