Hi, been looking around this for a while.
I have a fresh installation of CS-Cart MultiVendor(Demo) and I’ve been following around the tutorials, but this Advanced Addon Tutorial just doesnt show.
I’ve tried clearing cache
I’ve enabled and disabled rebuild cache automatically.
I’ve copied the code of the snippets in the tutorial
I’ve double-checked the routes
I’ve enabled Debug Mode, no errors there nor anything strange.
Its as if everything is correct but it just doesnt work. I heard something about “maybe is enabled and showing but behind another block”, but I wasnt able to find the option to move blocks in the Admin Dashboard.
I just dont know what to do anymore. Thanks.
Hi!
Could you please describe exactly what steps you have taken and what result you are trying to achieve?
Been some time since I did this, but if your code is right (look for errors in the error_log file in you home directory, clear it before going to admin/home (stats) page and check after, if no errors your code is probably right.) 2. Ensure you have created and enabled block in the layout. If that is all right then you are going to have to do a few navigations around for it to log the data for display (and the more users that do it the more entries you will get, otherwise it will just show your history as admin).
If working what you expect to see is userID followed by page visited in the Admin/home screen, think it was in a drop down list … whether there is a header or not will depend on what you named the block when you added it to your layout and what wrapper you chose in the block settings.
Thanks for your answers, the problem was that the tutorial is not updated for 4.16.1 and upwards.
This was the steps I took (thanks to Tech Support Team)
1.-Rename design/backend/templates/addons/advanced_addon/hooks/index/index.tpl to simple_dashboard.tpl
Seems that this makes it show the block two times, dont know why.
2.- Replace a line in app/addons/advanced_addon/func.php from
$viewed_categories[$category_id] = true;
to
$viewed_categories[] = $category_id;
3.-Lastly, replace this line in the controller in /app/addons/advanced_addon/controller/backend/index.post.php
$category_data['categories'] = fn_get_category_name(array_keys($category_data['categories']));
$category_data['categories'] = fn_get_category_name(array_values($category_data['categories']));
I would love to see the documentation updated for the new version, seems like some things changed from what the documentations says.
3 Likes
Thank you for sharing the solution with the other forum members. We have also created a task for the documentation maintainers to update the article.