how to revert the use of my widget in the sidebar?

WCMp Core

Resolved
Viewing 19 reply threads
  • Author
    Posts
    • #120223
      l.gan
      Participant

      Hello, how do I permanently disable the “vendor sidebar store” widget?
      there is a conflict between your plugin and my theme. I would like to use my default sidebar, but for some reason, uncheck the display of your sidebar in your plugin settings does not help – and my default sidebar is still not displayed.
      After removing the check mark, the vendor’s store page remains without a sidebar at all …

    • #120296

      @l.gan, in our vendor shop page, only WCMp sidebar will be displayed.

      In order to display your own sidebar, you have to do custom code. If you need any coding reference, please do let us know

      • #120310
        l.gan
        Participant

        Yes, I need a link to the code

      • #120311
        l.gan
        Participant

        I do not quite understand the translation, if you give me a link to the code, then ok, but if you help and give me the code itself, it will be even better

    • #120356

      Hi,
      To remove WCMp sidebar
      Please add this code in the function.php of the current active theme

      add_action('init', 'wcmp_remove_sidebar');
      function wcmp_remove_sidebar(){
        global $WCMp;
        remove_action( 'wcmp_store_widget_contents', array($WCMp->frontend, 'wcmp_store_widget_contents' ));
      
      }
      Copy

      regards,

    • #120380
      l.gan
      Participant

      I pasted your code, but it doesn’t work the way I need it.
      I switched themes, storefront and my default theme, but it doesn’t work.
      As far as I understand, your code should remove your sidebar permanently, and I could use my default sidebar widget. But nothing happens.

      Please watch the video. – I need the sidebar of the vendor’s store to display not your sidebar widget, but a widget called Mine Area Widget (default for pages and posts) that my theme creates.

      https://disk.yandex.ru/i/FDXA3dUpCPcDWA

    • #120439

      Hi,
      For previous vendor shop page design you can use the below code –

      Please add this code in the function.php of the current active theme:

      add_filter( 'wcmp_load_default_vendor_store', '__return_true' );
      Copy

      or if you want the new design and your requirement then you have to add custom code on your end.

      Let me know if you need any hook and filter for this.

      Regards

    • #120469
      l.gan
      Participant

      Hi yes I need an hook or a filter – because I want to use a new page design, but with my own widget to display in the sidebar

      Thanks i will wait

    • #120481

      Hi,
      As per your requirement you have to add you custom code and change our default flow.
      To change the flow override templates/wcmp-archive-page-vendor.php template by copying it to yourtheme/dc-product-vendor/wcmp-archive-page-vendor.php

      Regards,

    • #120552
      l.gan
      Participant
      This reply has been marked as private.
    • #120629
      l.gan
      Participant
      This reply has been marked as private.
    • #120818
      l.gan
      Participant

      Hi, you probably forgot about my problem, so I am writing to you again. I also had a problem with your widget and my sidebar display https://disk.yandex.ru/i/_MXYA11TySjgcg. the theme developer replied:

      1. Here is a screenshot of our theme structure https://prnt.sc/128jtui
      It is created in the following set of files

      woodmart/inc/template-tags/template-tags.php
      woodmart/index.php
      woodmart/sidebar.php
      2. And here is a plugin structure. It is totally different and obviously, our off-canvas CSS and JS can’t be applied here without rewriting https://prnt.sc/128jwvg
      It is written in the file dc-woocommerce-multi-vendor/templates/wcmp-archive-page-vendor.php
      above I indicated a link to the discussion of the problem with the support of woodmart.

      can you help me with this?
      Kind Regards

    • #120956
      l.gan
      Participant

      Will you help me with my problem?
      I need to ditch your sidebar widget entirely, and be able to use my sidebar in the sidebar of my theme.

    • #121025

      @l.gan, the flow you need i.e. add your own sidebar, requires good amount of custom code. Also, by checking code snippets, it will be difficult for us to find the issue in your code.

      Now to help you out further, as your theme suggested here : https://multivendorx.com/support-forum/topic/how-to-revert-the-use-of-my-widget-in-the-sidebar/#post-120552

      You also need to study our template wcmp-archive-page-vendor.php, this will guide you further on how you can add your own sidebar.

      You can study our code here : https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/blob/master/templates/wcmp-archive-page-vendor.php

    • #121034
      l.gan
      Participant

      could you help me with this? I don’t understand the code at all.

      I have inserted the function dynamic_sidebar( ‘sidebar-7309’ ); in wcmp-archive-page-vendor.php, I see the sidebar I need, but the products disappear from the vendor’s page right away. And in the mobile version, the sidebar is also not displayed in the sidebar, it is empty.

      what should I do? I can’t spend half a year studying the php language, Please help me …

    • #121043
      l.gan
      Participant

      you write to me that “Also, by checking code snippets, it will be difficult for us to find the issue in your code.”
      I don’t have my personal code, I only have my woodmart theme and your plugin. And after the update your plugin began to create its own sidebar, which conflicts with my theme. Above, I already wrote the answer of the theme developers that you and they have a different layout structure

      I don’t know what to do anymore, please run compatibility tests with the theme. a fairly common topic, it scares me that there are such inconsistencies

    • #121065

      @l.gan, from WCMp 3.7 we have redesigned the vendor shop page, to make this compatible with elementor. That is the reason we have to add our own sidebar instead of the theme’s sidebar.

      Now, as you have requested here (https://multivendorx.com/support-forum/topic/how-to-revert-the-use-of-my-widget-in-the-sidebar/#post-120223), you needed your own custom side, as you can understand this does require custom code.

      However, you can use a filter, using this you can keep the older version of the Vendor Shop page. But please note, if you use this filter, then you can’t use the element to edit the page.
      To get this, add this below code in your currently active theme functions.php file

      add_filter('wcmp_load_default_vendor_store', '__return_true');
      Copy
    • #121089
      l.gan
      Participant

      thanks, I have applied this feature now and your sidebar is gone. Now the vendor’s store page displays a sidebar intended for the Shop Page Widget Area.

      How can I assign a different sidebar to the vendor’s store page?

      The fact is that now I have to share the side panel with the catalog page, and if I want to use the widgets of your plugin in the side panel, they are displayed on the catalog page in the form of this inscription:

      Notice: Undefined property: WP_Post_Type::$term_id in /home/l/lagane10/testpaf.site/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/includes/wcmp-core-functions.php on line 4407

    • #121112

      @l.gan, can you please share a video explaining this i.e. The fact is that now I have to share the side panel with the catalog page, and if I want to use the widgets of your plugin in the side panel, they are displayed on the catalog page in the form of this inscription:

      Because we are not able to recreate this error. Can you share the link of the catalog page too?

      Also, please note as you have used the filter, hence this page is a taxonomy page like Category or tax. So, the widget you will see there the same will be displayed on our vendor shop page.

    • #121140
      l.gan
      Participant
      This reply has been marked as private.
    • #121172

      Hi,
      We can’t give you any advice. Because sidebar settings completely depending on theme setting or any other plugin and WordPress default setting. One thing that may help u that — if the sidebar is empty then it can’t display. If there is no widget found then it will hide from that page. There are may some custom coding/settings are there so that it can happen.
      Thanks

    • #124393

      Hi, we haven’t heard back from you for a while. We presume this issue has been fixed.

      Please open another thread if you need any further help

Viewing 19 reply threads

The topic ‘how to revert the use of my widget in the sidebar?’ is closed to new replies.