Home Forums WC Vendors Pro Support Vendor Shop Page Not Playing Well With Theme

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 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #16898
    Michelle
    Participant

    Hi Guys,

    I was going to post yesterday but saw you were actually responding to posts yesterday so decided to hold off. πŸ™‚

    I’m having an issue with the Vendor Store Page: the footer div is being pushed above the container div? I read in your knowledgebase I’m suppose to do some copy/paste things (https://www.wcvendors.com/kb/pro-store-layout-fixes/) but… before I went diving into spending a bunch of time figuring it all out, I figured I would ask you in case it is something you’ve seen before.

    Also, the permalinks on the page aren’t pulling in the vendor name, just “URL/shop/a_random_number” no matter what I change the settings to.

    Can I send you the link and a login to my stage via email so you can see what I am experiencing?

    #16916
    WC Vendors Support
    Participant

    Hi Michelle,

    What theme are you using? I’d prefer to check it out locally first since our test environments are clean and without interference from other plugins or weird issues often found on members websites. That’ll give me a better idea what you’re looking at. And screenshots for extra credit would be much appreciated, and for extra extra credit, draw some circles on what the problem is and describe it here even further. πŸ™‚

    Ben

    #16925
    Michelle
    Participant

    Theme: Legenda by 8themes.com: https://www.8theme.com/shop/wordpress/legenda/

    URL of concern: http://wereallmadhere.com/vendorstage/shop/14519/

    Normal product archive page: http://wereallmadhere.com/vendorstage/product-category/celebrations/

    I’ve attached a screenshot of the site showing the div class “footer-top” above “container” with stuff highlighted in blue. The sidebar area is pushed to the bottom.

    #16931
    WC Vendors Support
    Participant

    Your theme is coded to be incompatible with WooCommerce in general. The theme developer has injected HTML and their own PHP into Woo Templates, which causes plugins like ours who hook into those templates to look poor. Three choices:

    1.) Tell the theme author to rewrite their archive-products.php to use the WooCommerce hooks/filters, instead of manually hacking in code. (Best choice, since this is a theme developer problem, they are doing things sooooooo wrong it’s not even funny).

    2.) Follow this KB article and fix the templates yourself: https://www.wcvendors.com/kb/pro-store-layout-fixes/

    3.) Toss some cash our way ($50-$75 depending on the time it takes) for the labor to re-code the templates for your site.

    #17010
    Michelle
    Participant

    Ok. I had a chance to sit down and look at it. The layout issue was an issue with a responsive/viewport media query triggering, not a hook issue, which I didn’t think it was because you are placing the product loop in the woocommerce_before_main_content hook and I haven’t had an issue with that anywhere else in the site…unless there was an open div somewhere.

    The header and icon are not displaying and the permalink issue still is there, so I would like to get that fixed before looking at the header/icon issue in case it is an issue with the $store_id and/or $vendor_id variables…which would make sense given the nature of the issues.

    Since the free version is required to be running in addition to Pro, I am able to access both vendor dashboards. The free version I am not having the problem with…the permalinks are displaying fine and the store descriptions are displaying fine as well. However with the Pro dashboard and link…numbers in the URLs instead of usernames and no part of the header is showing up (banner, icon, text, anything).

    Any ideas RE: the url?

    #17011
    WC Vendors Support
    Participant

    Hi Michelle,

    Let’s page Jamie in on the URL issue. I’m not sure what the heck that could be. @digitalchild — and now the beast has been summoned. πŸ˜‰

    Ben

    #17028
    Michelle
    Participant

    I just realized the shops are showing different products as well: the free version is limited to just the account’s products but the pro version is showing all the products on the site, like the normal archive page would. (In case this extra info helps)

    #17041
    WC Vendors Support
    Participant
    #17094
    Omar
    Participant

    Hi guys,

    I am having the same thing here, i.e the free version works fine but when I activate the pro version the links start to show numbers instead of vendors names and the layout gets messed up too.

    Is there a way to disable the “custom pro pages” as I was really happy with the free version?

    Many thanks,
    O

    #17098
    Jamie
    Keymaster

    Hello,

    Version 1.2 will have this feature @omarobaid, at this stage I think we will be putting the custom vendor pages out to pasture as they are just causing too many issues. I’ll continue to use them on the backend but everything else will be using cleaner versions of the free store fronts. This will fix 99.9% of style issues as we will be using built in woocommerce pages as opposed to hooking into the woocommerce loop and hoping for the best.

    If the stores are showing numbers it’s because at some point the vendor didn’t set a shop name correctly. In the mean time you can use the code at the bottom of this knowledge base article for pro and that will disable the pro store links and restore the free ones :

    https://www.wcvendors.com/kb/removing-sold-by-on-your-site/

    cheers,

    Jamie.

    #17115
    Omar
    Participant

    Fantastic, this works.

    Thank you very much for the quick fix. Really appreciate your support.

    Regards,
    O

    #17186
    Michelle
    Participant

    Is there a fix to the issues I am having?

    #17315
    WC Vendors Support
    Participant

    You’re using the same slug for /shop/ for products and /shop/ for pro vendor stores.

    wp-admin > WooCommerce > WC Vendors > Pro and change the “shop” text you see to something else. The default is “vendor_stores”. Perhaps “ourshops” or something like that. Whatever you like.

    #17326
    Michelle
    Participant

    I know I am using the same term for slug and page, it is the only thing that is working to display the page remotely correctly. I added that info in case it helped you figure out as to why I was having issues with things…other than having really sh*t luck recently, that is…:)

    DIFFERENT SLUG AND PAGE NAMES:
    Things that show up: Banner, Shop name, description, address, phone number
    Issues: Icon doesn’t show up & layout gets blown like there is an open div somewhere (see previous screenshot…sans the avatar/icon now).

    SAME SLUG AND PAGE NAME
    Things that show up: Shop name & description (options for free plugin like that is over riding the pro shop page, it’s basically just pulling in the shop header file from the free plugin. When I make changes there, they show up.)
    Issues: Banner, avatar, description, address, phone number do not show up.

    Is there a way I can just add the shop icon/avatar to the free plugin template? I played around with the shop header file and have it working pretty much the way I want, if I can just add that it may be duct tape enough to roll with…without spending a boat load more time on it.

    S

    #17331
    Michelle
    Participant

    I lied. I just applied a change to the shop description for a sample vendor and everything broke. It is now just showing the default product archive page for my template. Not awesome.

    #17530
    WC Vendors Support
    Participant

    Hi Michelle,

    I logged in, and you had your Shop page, your Pro Vendor Store slug, AND your Free Vendor Store slug set to the same thing. That’s 3 conflicting permalinks. I’ve changed them back to their defaults now.

    The /vendor_stores/ pages look goofy because your theme is coded incorrectly and is not hooking into WooCommerce for all WooCommerce pages. Your theme is coded to be incompatible with WooCommerce in general. The theme developer has injected HTML and their own PHP into Woo Templates, which causes plugins like ours who hook into those templates to look poor. Three choices:

    1.) Tell the theme author to rewrite their archive-products.php to use the WooCommerce hooks/filters, instead of manually hacking in code. (Best choice, since this is a theme developer problem, they are doing things sooooooo wrong it’s not even funny).

    2.) Follow this KB article and fix the templates yourself: https://www.wcvendors.com/kb/pro-store-layout-fixes/

    3.) Toss some cash our way ($50-$75 depending on the time it takes) for the labor to re-code the templates for your site.

    If you would like to use the Free templates, instead, you certainly can, by using this code: https://www.wcvendors.com/kb/removing-sold-by-on-your-site/ and use only line #15, #16, and #17. Then you would enable Shop Headers in your WC Vendors setting, and edit the vendor-main template in order to add the avatars to match your design.

    The best solution, of course, would be to have Legenda simply fix their theme.

    #19668
    Michelle
    Participant

    I just sat down to work on this again now that the holidays are over. The advice above still didn’t work, is that the correct link to the code that is suppose to default to the free template? I don’t just want to remove functionality from the pro template, the template doesn’t work but the free template does so I’d like to actually use it.

    #19677
    Michelle
    Participant

    Okay,

    I kind of got it working…in what is probably an extremely cringeworthy way for someone who knows what the h*ll they are actually doing, but don’t judge me. It works for the moment and that is good enough for now prototype wise. I turned off the “View Stores” link option in the backend.

    I added this to class-mcvendors-pro-dashboard.php near line 472:

    $shop_name = get_current_user_id() ;

    And this before the at the end of the navigation:

    echo '<li><a href="http://www.foo.com/vendors/' .$shop_name. '">View Shop</a></li>';

    And it works! Yay! Only…exactly how it is suppose to and pulling the user id instead of the display name. Any help on what to replace “= get_current_user_id();” with to pull the vendor display name?

    I need http://www.foo.com/vendors/shop_name instead of http://www.foo.com/vendors/666

    • This reply was modified 7 years ago by Michelle.
    #19679
    WC Vendors Support
    Participant

    Hi Michelle,

    get_current_user_id() does exactly what it sounds like. Whoever is on your site and logged in, that’s the user ID it pulls. πŸ™‚

    Quite frankly, I would abandon your code project, as with v1.2.0 which Jamie is finishing up now (~1 week till release) the vendor store custom post type will be removed and your theme will work just fine without any additional coding required to fix the crappy theme. πŸ™‚

    If you continued to work on it now, v1.2.0 would make it all useless code anyway, so just kick back and enjoy the week and know it’ll be much better soon. πŸ™‚

    Ben

    #20404
    Michelle
    Participant

    I read on another forum entry that you don’t have WPMU support yet, so when I pulled the site off of WPMU to a single build (which I was planning on doing anyway after it grew a bit bigger than a blog) and it works brilliantly! As far as aesthetics go, anyway. I have to test transactions and such still but hopefully you don’t hear back from me. πŸ™‚

    Thank you so much for putting together such an amazing plugin! You guys are awesome.

    #21139
    Michelle
    Participant

    Hey Ben,

    I changed out my theme to something faster and am still having issues with the layout. Any word on when 1.2 will be out?

    S

    #21179
    WC Vendors Support
    Participant

    Pretty soon. Most likely within the next 3-4 days. We’re buttoning up as many issues as humanly possible and at the same time have added a pile of new features in Pro to v1.2.0.

    #21276
    Michelle
    Participant

    Ok, in the meantime I am just overwriting files in my child theme and leaving a note to myself to remove them once the new version comes out to get something functioning and live.

    I’ve gotten the header area sorted but I am having issues with the product area. Specifically the sidebar area, I just want to get rid of it but I can’t seem to find it. I can’t just assign display:none in the css because it doesn’t (seem to?) have a unique class, so it kills the sidebar across the site. I’ve tried where it is mentioned in the archive-vendor-store.php and single-vendor-store.php and both but no changes to these files rendered on the live site. Any help would be super please!

    #21278
    WC Vendors Support
    Participant

    The side bar is likely hard coded into the WooCommerce templates from your theme developer. Pro v1.2.0 might fix that, but it might not if it’s hard coded by the theme author. In a nutshell, shitty theme author = problems customizing things. We’ve learned the hard way that no theme author does everything right. πŸ˜‰

    #21284
    Michelle
    Participant

    I’m just going to leave this here in case it helps anyone else: there are unique classes after all. The page is wrapped in .single-vendor_store in the body tag. So:

    .single-vendor_store .YOUR_THEMES_SIDEBAR_DIV_CLASS {}

    or whatever non-wcv div isn’t playing well…can be individually styled/tackled. In this case:

    .single-vendor_store .YOUR_THEMES_SIDEBAR_DIV_CLASS {display:none;}

Viewing 25 posts - 1 through 25 (of 25 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.