Vendor store page not working on Roots Sage 8.6.0

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Vendor store page not working on Roots Sage 8.6.0

Viewing 3 reply threads
  • Author
    Posts
    • #67316
      Zeljo
      Participant

      Hi,

      the template for the Vendor Store page (what I mean by this, is the default single Vendor Store page) is not working on the Roots Sage 8.6.0 theme. After some investigation, switching themes, etc., I can see that the issue stems from the fact that Roots Sage does not load get_header() and get_footer() from header.php and footer.php files, but in the base files (base.php, etc. via DRY principle). Now, in order for the WooCommerce to work with Sage and not have duplicate get_header and get_footer calls, you have to create empty header.php and footer.php files (the issue is detailed here – https://roots.io/guides/using-woocommerce-with-sage-8/.

      When you do this, the Vendor Store page breaks, meaning, it does not load get_header and get_footer at all, so none of the scripts and stylesheets get loaded. I’ve tried introducing conditions like this:

        if(is_tax('dc_vendor_shop')) {
            array_unshift($templates, 'taxonomy-dc_vendor_shop.php'); 
          }
      

      This is normally how you would load a custom template for any content in the Sage theme. You can see more information here – https://discourse.roots.io/t/use-pre-existing-base-template-for-taxonomy-archive-and-custom-post-type/12527/3.

      But WCFM Vendor Store page does not respond to these conditionals, it does not respond to any type of template overrides. Then I installed this plugin – https://wordpress.org/plugins/show-current-template/. This plugin shows which template is currently being used by any page on the site. For Vendor Store, it says that index.php is being used. But even if I modify the index.php, introduce any type of conditionals, or even just try to output any type of text, nothing changes on the Vendor Store page, so obviously, this page is somehow overriding all template logic and not actually using the theme’s index.php file, nor any other file, for that matter.

      My question is – how do I override this page’s template, and create a custom template, or, for that matter, how can I modify anything through any type of filters or hooks for this page. More importantly, how is this page calling get_header and get_footer, and why is it doing it so differently than all the other pages, because everything else works perfectly with Sage theme.

      Please help!
      Thanks

    • #67487
      WCFM Forum
      Keymaster

      HI,

      Possibly you are at wrong site.

      if(is_tax(‘dc_vendor_shop’)) {
      array_unshift($templates, ‘taxonomy-dc_vendor_shop.php’);
      }

      – this code is not from WCFM or any of it’s addons.

      As I know it’s from WC Marketplace plugin. Please contact this plugin’s support forum for this.

      WCFM Marketplace (https://wordpress.org/plugins/wc-multivendor-marketplace/) is WCFM multi-vendor plugin, not WC Marketplace!

      Thank You

    • #68031
      Zeljo
      Participant

      Wow, this is the lamest attempt to sidestep an issue I’ve ever seen. Here’s a full Woocommerce report of all the plugins and themes I am using, please tell me, where is this WC Marketplace plugin you speak of?

      The report:

      
      ### WordPress Environment ###
      
      WordPress address (URL): *
      Site address (URL): *
      WC Version: 3.6.4
      Log Directory Writable: ✔
      WP Version: 5.2.1
      WP Multisite: –
      WP Memory Limit: 1 GB
      WP Debug Mode: –
      WP Cron: ✔
      Language: de_DE
      External object cache: –
      
      ### Server Environment ###
      
      Server Info: Apache/2.4.37 (Win32) OpenSSL/1.1.1 PHP/7.2.12
      PHP Version: 7.2.12
      PHP Post Max Size: 200 MB
      PHP Time Limit: 3600
      PHP Max Input Vars: 1000
      cURL Version: 7.61.1
      OpenSSL/1.1.1
      
      SUHOSIN Installed: –
      MySQL Version: 5.5.5-10.1.37-MariaDB
      Max Upload Size: 200 MB
      Default Timezone is UTC: ✔
      fsockopen/cURL: ✔
      SoapClient: ❌ Dein Server verfügt nicht über eine lauffähige Version der SoapClient Klasse - einige Zahlungsschnittstellen
      welche SOAP nutzen
      funktionieren unter Umständen nicht korrekt.
      
      DOMDocument: ✔
      GZip: ✔
      Multibyte String: ✔
      Remote Post: ✔
      Remote Get: ✔
      
      ### Database ###
      
      WC Database Version: 3.6.4
      WC Database Prefix: wp_
      MaxMind GeoIP Database: ✔
      Datenbank-Gesamtgröße: 5.28MB
      Datenbank-Datengröße: 3.89MB
      Datenbank-Indexgröße: 1.39MB
      wp_woocommerce_sessions: Daten: 0.02MB + Index: 0.02MB
      wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB
      wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB
      wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB
      wp_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB
      wp_woocommerce_order_itemmeta: Daten: 0.02MB + Index: 0.03MB
      wp_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB
      wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB
      wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB
      wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB
      wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB
      wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB
      wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB
      wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB
      wp_berocket_termmeta: Daten: 0.02MB + Index: 0.00MB
      wp_commentmeta: Daten: 0.02MB + Index: 0.03MB
      wp_comments: Daten: 0.02MB + Index: 0.09MB
      wp_ewwwio_images: Daten: 0.09MB + Index: 0.06MB
      wp_ewwwio_queue: Daten: 0.02MB + Index: 0.02MB
      wp_links: Daten: 0.02MB + Index: 0.02MB
      wp_options: Daten: 2.03MB + Index: 0.05MB
      wp_postmeta: Daten: 0.22MB + Index: 0.06MB
      wp_posts: Daten: 0.09MB + Index: 0.06MB
      wp_search_filter_cache: Daten: 0.02MB + Index: 0.05MB
      wp_search_filter_term_results: Daten: 0.02MB + Index: 0.05MB
      wp_social_users: Daten: 0.02MB + Index: 0.02MB
      wp_termmeta: Daten: 0.02MB + Index: 0.03MB
      wp_terms: Daten: 0.02MB + Index: 0.03MB
      wp_term_relationships: Daten: 0.02MB + Index: 0.02MB
      wp_term_taxonomy: Daten: 0.02MB + Index: 0.03MB
      wp_usermeta: Daten: 0.06MB + Index: 0.03MB
      wp_users: Daten: 0.02MB + Index: 0.05MB
      wp_wcfm_daily_analysis: Daten: 0.02MB + Index: 0.02MB
      wp_wcfm_detailed_analysis: Daten: 0.08MB + Index: 0.00MB
      wp_wcfm_enquiries: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_enquiries_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_enquiries_response: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_enquiries_response_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_following_followers: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_orders: Daten: 0.02MB + Index: 0.02MB
      wp_wcfm_marketplace_orders_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_product_multivendor: Daten: 0.02MB + Index: 0.02MB
      wp_wcfm_marketplace_refund_request: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_refund_request_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_reverse_withdrawal: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_reverse_withdrawal_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_reviews: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_reviews_response: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_reviews_response_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_review_rating_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_shipping_zone_locations: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_store_taxonomies: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_vendor_ledger: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_withdraw_request: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_marketplace_withdraw_request_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_membership_subscription: Daten: 0.02MB + Index: 0.02MB
      wp_wcfm_messages: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_messages_modifier: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_messages_stat: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_support: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_support_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_support_response: Daten: 0.02MB + Index: 0.00MB
      wp_wcfm_support_response_meta: Daten: 0.02MB + Index: 0.00MB
      wp_wc_bookings_availability: Daten: 0.02MB + Index: 0.02MB
      wp_wc_bookings_availabilitymeta: Daten: 0.02MB + Index: 0.03MB
      wp_wc_booking_relationships: Daten: 0.02MB + Index: 0.03MB
      wp_wc_download_log: Daten: 0.02MB + Index: 0.03MB
      wp_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB
      wp_wc_webhooks: Daten: 0.02MB + Index: 0.02MB
      wp_yoast_seo_links: Daten: 0.02MB + Index: 0.02MB
      wp_yoast_seo_meta: Daten: 0.02MB + Index: 0.00MB
      
      ### Post Type Counts ###
      
      acf-field: 14
      acf-field-group: 7
      attachment: 38
      bookable_resource: 1
      br_product_filter: 6
      customize_changeset: 1
      nav_menu_item: 22
      page: 11
      post: 2
      product: 4
      revision: 40
      scheduled-action: 2
      search-filter-widget: 2
      shop_order: 1
      wc_booking: 4
      
      ### Security ###
      
      Secure connection (HTTPS): ❌
      					Dein Shop benutzt kein HTTPS. Erfahre mehr über HTTPS und SSL-Zertifikate.
      Hide errors from visitors: ✔
      
      ### Active Plugins (17) ###
      
      Advanced Custom Fields PRO: von Elliot Condon – 5.8.1
      Classic Editor: von WordPress-Mitwirkende – 1.5
      EWWW Image Optimizer: von Exactly WWW – 4.8.0
      Force Regenerate Thumbnails: von Pedro Elsner – 2.0.6
      Show Current Template: von JOTAKI Taisuke – 0.3.0
      WCFM - WooCommerce Frontend Manager - Ultimate: von WC Lovers – 6.1.5
      WCFM - WooCommerce Frontend Manager: von WC Lovers – 6.1.6
      WCFM - WooCommerce Multivendor Marketplace: von WC Lovers – 3.0.9
      WCFM - WooCommerce Multivendor Membership: von WC Lovers – 2.5.4
      WooCommerce Accommodation Bookings: von WooCommerce – 1.1.8
      Advanced AJAX Product Filters for WooCommerce: von BeRocket – 1.3.2.5
      WooCommerce Bookings: von WooCommerce – 1.14.4
      WooCommerce PayPal Checkout Gateway: von WooCommerce – 1.6.14
      WooCommerce Stripe-Gateway: von WooCommerce – 4.2.0
      WooCommerce: von Automattic – 3.6.4
      Yoast SEO: von Team Yoast – 11.4 – Nicht getestest mit der aktiven WooCommerce-Version
      WP Migrate DB: von Delicious Brains – 1.0.11
      
      ### Inactive Plugins (3) ###
      
      Jetpack by WordPress.com: von Automattic – 7.4
      Klarna Payments for WooCommerce: von krokedil
      klarna
      automattic – 1.7.0
      
      Search & Filter Pro: von Code Amp – 2.4.6
      
      ### Must Use Plugins (1) ###
      
      WP Migrate DB Compatibility: von Delicious Brains – 1.2
      
      ### Settings ###
      
      API Enabled: –
      Force SSL: –
      Currency: EUR (€)
      Currency Position: left_space
      Thousand Separator: ,
      Decimal Separator: .
      Number of Decimals: 2
      Taxonomies: Product Types: booking (booking)
      external (external)
      grouped (grouped)
      simple (simple)
      variable (variable)
      
      Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
      exclude-from-search (exclude-from-search)
      featured (featured)
      outofstock (outofstock)
      rated-1 (rated-1)
      rated-2 (rated-2)
      rated-3 (rated-3)
      rated-4 (rated-4)
      rated-5 (rated-5)
      
      Connected to WooCommerce.com: –
      
      ### WC Pages ###
      
      Shop-Basis: #6 - /mieten/
      Warenkorb: #7 - /cart/
      Kasse: #8 - /checkout/
      Mein Konto: #9 - /my-account/
      Allgemeine Geschäftsbedingungen: ❌ Seite nicht festgelegt
      
      ### Theme ###
      
      ****Custom theme based on Roots Sage 8.6.0 - more on roots.io
      
      WooCommerce Support: ✔
      
      ### Templates ###
      
      Overrides: –
      
      ### Action Scheduler ###
      
      Complete: 0
      Oldest: 2019-06-03 13:40:17 +0000
      Newest: 2019-06-10 14:02:29 +0000
      
      Pending: 0
      Oldest: –
      Newest: –
      
      Canceled: 0
      Oldest: –
      Newest: –
      
      In-progress: 0
      Oldest: –
      Newest: –
      
      Failed: 0
      Oldest: –
      Newest: –
      
      
    • #68366
      WCFM Forum
      Keymaster

      HI,

      if(is_tax(‘dc_vendor_shop’)) {
      array_unshift($templates, ‘taxonomy-dc_vendor_shop.php’);
      }

      – I told you that as you show me this code.

      Where did you get this code? Is this from theme?

      Thank You

Viewing 3 reply threads
  • You must be logged in to reply to this topic.