Dokan plugin issues (Dashboard & Store pages)
Author | Posts |
---|---|
September 22, 2014 at 7:26 am 27162 | |
Brenda | Wedevs, Congratulations on the release of the new Dokan plugin. After following your installation instructions and activating the plugin, I am encountering some issues I hope you can help me resolve. I added the [dokan-dashboard] shortcode on the /dashboard page. The published page is producing a fatal error... I tested adding the [dokan-dashboard] shortcode to a new page. I was able to get the page to render without the error, but it is not appearing correctly and all of the links go to 404's. I am able to get the [dokan-stores] shortcode to work... https://www.brumberry.com/storefronts/ However, the subsequent store pages are producing 404's. (i.e. ) I see some other customers may be having similar issues. Please let me know if you have any suggestions on how to fix these. Thanks, Tom |
September 22, 2014 at 7:47 am 27165 | |
Thomas | I retried resetting the permalinks and it fixed the 404’s for the store pages. The good news is the page is rendering, the bad news is the layout is messed up. Standard sidebar widgets are appearing above the store content, and the store content is stretched across the entire screen. |
September 22, 2014 at 9:01 am 27168 | |
morgan | I am having the same problems with the store pages. I think it has to do with the sidebar “store” that is called in the template file but does not actually exist. |
September 22, 2014 at 10:57 am 27170 | |
Mike | Maybe a problem with your SSL? |
September 22, 2014 at 11:48 am 27171 | |
Sk | Hello, Thank you for the issue. It a bug. [php] <div id="secondary" class="col-md-3 clearfix" role="complementary"> <div class="widget-area collapse widget-collapse"> <?php $args = array( if ( class_exists( ‘Dokan_Store_Location’ ) ) { } <?php do_action( ‘dokan_sidebar_store_after’, $store_user, $store_info ); ?> Thank you… 🙂 |
September 22, 2014 at 6:26 pm 27191 | |
Thomas | Ok, i added the file to my theme directory. I am now getting the following error… Parse error: syntax error, unexpected ‘{‘ in /home/tdrugan/public_html/wp-content/themes/organique/sidebar-store.php on line 16 Here is a direct link: https://www.brumberry.com/store/brumberry-store-demo/ Also, are you able to help with the fatal error detailed above that is happening on /dashboard? Thanks. |
September 22, 2014 at 8:03 pm 27201 | |
Tareq Hasan | @Tom, the fatal error is coming up from your theme. We have nothing to do with that, you should repair your theme. Sidebar: The plugin expects that your theme has a file called sidebar-store.php, if it’s not found, it’ll search for sidebar.php in your theme and will display the widgets. There are 3 new widgets in the plugin specifically for the store page: 1) Seller Store Category, 2) Map Location and 3) Contact Seller widget. You can drop the widgets on the sidebar and only it’ll be visible on the store page, not other pages. If you don’t like the layout of store page, you can override the store template like this: Dashboard: May be you haven’t set the dashboard page in the plugin settings. Go to Dokan -> Settings -> Page tab and select the dashboard page. Styles will be back again I hope. |
September 22, 2014 at 9:51 pm 27227 | |
Thomas | Ok, I was able to fix the dashboard fatal error within my theme files. I tried to add the Dokan widgets to both my sidebar and “shop filter store” sidebar. Neither are appearing on the store pages. I am still getting the default sidebar, and it is appearing above the store page content. Here is the link again… https://www.brumberry.com/store/brumberry-store-demo/ Any ideas of what is happening here? |
September 23, 2014 at 1:02 am 27247 | |
Tareq Hasan | Wow, you don’t have any sidebar in your theme? By the screenshot it looks it has, but it doesn’t. Look in your theme directory if there is any |
September 23, 2014 at 1:21 am 27249 | |
Thomas | Hi Tareq, I am using this function on the store.php page…
This is the code on the sidebar-store.php page…
I am getting the following parse error when trying the above implementation…. Parse error: syntax error, unexpected ‘{‘ in /home/tdrugan/public_html/wp-content/themes/organique/sidebar-store.php on line 16 Here is the link to the test store page… |
September 23, 2014 at 1:25 am 27251 | |
Tareq Hasan | You may want to copy the |
September 23, 2014 at 1:52 am 27256 | |
Thomas | Tareq, Ok, we are making progress. I was able to get sidebar-store and the corresponding widgets to render by adding the Dokan 2.0 theme sidebar-store.php file to my theme directory. While it is functional, the sidebar is using the styling from my theme vs. the styling from the Dokan plugin. Is this expected? Or do the widgets come with styling like the rest of the assets? If so, how do I fix this? Thanks, |
September 24, 2014 at 12:16 am 27331 | |
Tor B | When adding the code from Reply #27171 to sidebar-store.php, I get this: Parse error: syntax error, unexpected T_STRING in /var/www/html/wp-content/themes/themename/sidebar-store.php on line 10 EDIT: Copying the file from the theme took care of the syntax error. The store content is still stretched across the entire screen, as in Reply #27165 |
September 24, 2014 at 3:53 pm 27414 | |
Tareq Hasan | As I explained before, it’s impossible to support every other theme. Thats why you have to override the |
October 24, 2014 at 3:53 pm 29007 | |
Brenda | My theme, Virtue Premium, doesn’t have a “store” page and this was causing problems. I read this thread and decided to do as suggested. I made a Virtue Premium Child theme. Finally my individual stores are looking better. Not all is fixed (e.g. the location map isn’t there yet) but it is a start good start since now my theme will be able to recognize that there is actually something called “store” to work with. I hope others will also try to implement this fix because it seems to work with non-wedevs themes. Brenda |
October 25, 2014 at 2:52 am 29031 | |
Brenda | Although I now have the vendors’ individual store pages showing up properly with the sidebar, the icons for their social links aren’t showing. What do I need to do so that will sow as well on their pages? Finally, I’d like to include a free text field for them to describe themselves on their store page. How is this done? |