Home Forums WC Vendors Free Support Vendor list issue

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #8524
    Anonymous
    Inactive

    Hello,

    I created into my shop sidebar a widget “text” with inside teh shortcode : wcv_vendorslist show_products=”no”

    I modified the file vendor-list.php as following :

    but, when I am on the main page of the products, passing to the page 2, vendor’s list is becoming to numbers :

    http://hop3fully.alcalina.net/en/shop/page/2/

    Maybe I did it on wrong way. How can we correct this bug ? thx for your help !

    #8526
    WC Vendors Support
    Participant

    Hmm. /shop/ is your store permalink. wcv_vendorslist wont really fire on that page. You would want to make a different page, let’s call it /vendor-list/ or whatever you like, and add the shortcode to that page instead. 🙂

    #8527
    WC Vendors Support
    Participant

    Oh wait! I’m sorry, you said you added the shortcode as a widget. Yes, you can do that on any page. 😉 But the shortcode is really only formatted for a full page display, not a sidebar widget. You’d probably have to set it to one column with:

    columns=”1″

    …..otherwise that’s going to get messy.

    You might have to copy the shortcode function and rename it and then edit it to remove the pagination, because again, it’s meant for a page, not a sidebar.

    #8529
    Anonymous
    Inactive

    hum, this is not what I need. We need the vendor list into the side bar in order to facilitate the navigation to the customer. This is why I created this widget on that way. Is there any other way maybe ?

    #8530
    Anonymous
    Inactive

    pagination is not the problem, as I modified the file vendor-list.php to have only the name :

  • "><?php echo $shop_name; ?>
  • the problem is that when I pass from page 1 to 2 on my main shop, the vendor list is replaced by numbers 1 and 2, which are, I presume, the navigation pages, in fact. Am I clear ?

    main page :
    http://hop3fully.alcalina.net/shop/

    then go to page 2 :
    http://hop3fully.alcalina.net/shop/page/2/

    and designer lis is not anymore correct. Do you see that ?

#8532
WC Vendors Support
Participant

I’m pretty sure that *is* the pagination because it thinks you are on page 2 because of /page/2/ in the URI. Again, that’s why this isnt designed to be a sidebar widget. If we wanted to add a widget for it, we’d write a widget. You’re using a shortcode as a widget, which isn’t exactly reliable. 🙂 🙂

You would have to copy the shortcode and remove the pagination code. The template you’ve edited doesn’t control the pagination, the plugins source code does. Particularly this right here:

https://github.com/wcvendors/wcvendors/blob/master/classes/includes/class-wcv-shortcodes.php line #546 through line #632. And also line # 34 is where the shortcode was added. If you copied line 34, and 546 through 632, and renamed wcv_vendorslist to, say, wcv_custom_vendorslist and then removed the pagination code in there, then it should work just fine with your new wcv_custom_vendorslist code.

#8534
Anonymous
Inactive

ok thx I’ll try that and give you feedback.

#8536
Anonymous
Inactive

ok I copy paste the function and changed the name but I’m not very familiar with it. Could you indicate me which line should I remove to solve this issue ?

thx for your help !

#8537
WC Vendors Support
Participant

It’s more than just a few lines. You have to rewrite it to remove all the pagination stuff. It’d probably take you about 30 minutes to figure it out if you’re good with PHP. This type of customization is a paid service, of course it’s free if you do it yourself. 🙂 We just guide you to the right path to do it!

#8565
Anonymous
Inactive

ok thks for your help. I’ll let you know if I need futher developpment.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.