WCMp Core
-
AuthorPosts
-
-
April 20, 2021 at 10:01 PM #120223l.ganParticipant
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 … -
April 21, 2021 at 7:39 PM #120296NerdySupportExpert MoumitaKeymaster
@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
-
April 22, 2021 at 6:53 PM #120356MVX Support NinjaKeymaster
Hi,
To remove WCMp sidebar
Please add this code in the function.php of the current active themeadd_action('init', 'wcmp_remove_sidebar'); function wcmp_remove_sidebar(){ global $WCMp; remove_action( 'wcmp_store_widget_contents', array($WCMp->frontend, 'wcmp_store_widget_contents' )); }
Copyregards,
-
April 22, 2021 at 11:59 PM #120380l.ganParticipant
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.
-
April 23, 2021 at 7:08 PM #120439MVX Support NinjaKeymaster
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' );
Copyor 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
-
April 24, 2021 at 1:32 PM #120469l.ganParticipant
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
-
April 24, 2021 at 6:57 PM #120481MVX Support NinjaKeymaster
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.phpRegards,
-
April 27, 2021 at 5:51 PM #120552l.ganParticipantThis reply has been marked as private.
-
April 27, 2021 at 5:51 PM #120629l.ganParticipantThis reply has been marked as private.
-
April 29, 2021 at 8:52 PM #120818l.ganParticipant
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 fileswoodmart/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 -
May 2, 2021 at 10:06 PM #120956l.ganParticipant
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. -
May 3, 2021 at 7:59 PM #121025NerdySupportExpert MoumitaKeymaster
@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
-
May 3, 2021 at 11:02 PM #121034l.ganParticipant
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 …
-
May 3, 2021 at 11:29 PM #121043l.ganParticipant
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 structureI 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
-
May 4, 2021 at 10:27 AM #121065Raju The Cool GuyKeymaster
@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 fileadd_filter('wcmp_load_default_vendor_store', '__return_true');
Copy -
May 4, 2021 at 5:05 PM #121089l.ganParticipant
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
-
May 4, 2021 at 8:02 PM #121112Raju The Cool GuyKeymaster
@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.
-
May 4, 2021 at 10:25 PM #121140l.ganParticipantThis reply has been marked as private.
-
May 5, 2021 at 8:13 PM #121172Raju The Cool GuyKeymaster
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 -
July 7, 2021 at 11:28 AM #124393MVX Support NinjaKeymaster
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
-
-
AuthorPosts
The topic ‘how to revert the use of my widget in the sidebar?’ is closed to new replies.