Future Ideas
Tagged: vendor
-
AuthorPosts
-
-
August 26, 2021 at 3:08 AM #126811KevinParticipant
Is it possible we can get a content block that contains a grid layout (fx. 3×4 with pagination functionality) with Vendors?
So instead of displaying products on the frontpage, we get to display Vendors?
The current widget with List of Vendors is really underwhelming and doesn’t suit our needs. That also only works with sidebars, top bars and footers.
Our customers prioritize Vendor -> Products
.. and not Product -> Vendor -
August 26, 2021 at 5:12 PM #126820NerdySupportExpert MoumitaKeymaster
@Kevin Ørskov, thanks for getting in touch with us.
As you want to display list of vendor’s in the homepage, you can create vendor’s list page using our shortcode : [wcmp_vendorslist orderby=”registered” order=”ASC”]. As you can see here : http://wcmpdemos.com/all-in-one-demo/vendors/
You can set this page as your Homepage.
-
August 26, 2021 at 8:58 PM #126840KevinParticipant
Looks interesting!
I can see it also allow parameters for customization.. can I see the full list of parameters somewhere and what input values are available?
This is a great start but I want to customize it to suit our needs -
August 27, 2021 at 6:33 PM #126856NerdySupportExpert MoumitaKeymaster
@Kevin Ørskov, it would be better if you can explain the modification you are looking for, so we can help you out.
-
August 28, 2021 at 4:25 AM #126879KevinParticipant
1. We want to remove the default search inputs like e-mail address, miles radius and sort functionality.
Instead, we want to be able to search specific vendors by text input and also filter vendors by custom taxonomy.2. Also, in each vendor box, we want to remove the phone-icon and location-icon.
We would also like to add the cover image from the profile to the vendor box.3. Lastly, some images of the products in the “Top Products” section in the vendor box, does not scale to fit. Some images exceed the border of the vendor box.
-
-
August 28, 2021 at 7:02 PM #126903MVX Support NinjaKeymaster
Hi,
1. We want to remove the default search inputs like e-mail address, miles radius and sort functionality.
Instead, we want to be able to search specific vendors by text input and also filter vendors by custom taxonomy.— Please add this code in the function.php of the current active theme :
add_action('init', 'wcmp_vendor_list_modification'); function wcmp_vendor_list_modification() { remove_action( 'wcmp_after_vendor_list_map_section', 'wcmp_vendor_list_map_filters', 10 ); remove_action( 'wcmp_before_vendor_list_vendors_section', 'wcmp_vendor_list_catalog_ordering', 5 ); add_action( 'wcmp_before_vendor_list_vendors_section', 'custom_wcmp_vendor_list_catalog_ordering', 5 ); } function custom_wcmp_vendor_list_catalog_ordering() { if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $WCMp, $vendor_list; ?> <div class="wcmp-store-map-pagination"> <p class="wcmp-pagination-count wcmp-pull-right"> <?php wcmp_vendor_list_paging_info(); ?> </p> <?php wcmp_vendor_list_form_wrapper(); ?> <?php wcmp_vendor_list_form_wrapper_end(); ?> </div><?php }
Copy2. Also, in each vendor box, we want to remove the phone-icon and location-icon.
We would also like to add the cover image from the profile to the vendor box.–As per your requirement kindly overridden templates/shortcode/vendor-list/content-vendor.php template by copying it to yourtheme/dc-product-vendor/shortcode/vendor-list/content-vendor.php
to remove phone icon and location icon remove lone no 32 to 43.
to add cover photo add your custom code3. Lastly, some images of the products in the “Top Products” section in the vendor box, does not scale to fit. Some images exceed the border of the vendor box.
WCMp use this below hook to add top productdo_action('wcmp_vendor_lists_vendor_top_products', $vendor);
CopyYou can also add your custom css or
remove above action hook and the add hook your custom code .Regards,
— -
September 12, 2021 at 1:21 PM #127476KevinParticipant
Thank you for the feedback!
I have another three questions:
– is it possible to configure the vendor grid to only show a fixed amount of vendors – fx. only 12 vendors?
I’ll be needing this to show 12 vendors on the frontpage and then I’ll have an additional page showing all vendors.
– is it possible to fetch the vendors in the order of the newest one first?
– is it possible to add a field that filters on name?All the best!
-
September 13, 2021 at 7:01 PM #127523MVX Support NinjaKeymaster
Hi,
Our replies are inline:– is it possible to configure the vendor grid to only show a fixed amount of vendors – fx. only 12 vendors?
I’ll be needing this to show 12 vendors on the frontpage and then I’ll have an additional page showing all vendors.
–>
using below code you can remove paginationadd_filter('wcmp_vendor_list_ignore_pagination', '__return_true');
Copy– is it possible to fetch the vendors in the order of the newest one first?
–> Yes, for this you have to add custom code using below filter -:wcmp_vendor_list_data
Copy– is it possible to add a field that filters on name?
–> Yes, for this you have to add custom code, let me know if you need hook and filters,Regards,
-
September 14, 2021 at 2:16 AM #127547KevinParticipant
I’ll respond to each inline:
1. We still want pagination on the page with all vendors, so we don’t want to disable it.
Isn’t possible to disable pagination by parameter in the shortcode?2. Alright..
3. Yes, please let me know the hook and filters.
-
September 14, 2021 at 2:34 AM #127548KevinParticipant
Additional comment:
1. We also still want to limit the numbers of vendors on the front page. In the code, the default number is 16 vendors – is it possible to limit it by passing a parameter in the shortcode? If not, then how?
-
-
September 14, 2021 at 1:06 PM #127562MVX Support NinjaKeymaster
Kevin, use the below code to set the number of vendors you want to display in a page
/*Increase number of vendors shown on vendor list */ add_filter('wcmp_vendor_list_vendors_query_args', 'display_number'); function display_number( $args ) { $args['number'] = 8; return $args; }
CopyBut this number will be same for all the pages.
-
October 10, 2021 at 3:48 PM #128908aburkhartParticipant
Hello – I’m trying to do the same thing. Did you guys get this figured out? If so, could you please share the code? I’m having a horrible time trying to figure out the vendor grid.
Thank you
-
October 11, 2021 at 6:58 AM #128918aburkhartParticipant
Nevermind. I think I figured it out! Thank you.
-
October 11, 2021 at 2:35 PM #128925MVX Support NinjaKeymaster
Thanks for the update @aburkhart
-
-
AuthorPosts
The topic ‘Grid with Vendors’ is closed to new replies.