Advanced CS-Cart Add-on for CS Cart 4.0.1 Tutorial - TPL Hook usage

Hi,



Currently i am developing a custom addon for CS Cart 4.0.1.



For that i am following the tutorial “Advanced CS-Cart Add-on” which is on the link - http://docs.cs-cart.com/advanced-addon-tutorial



In this tutorial under the heading - “Showing Data in the Admin Area: extra.tpl, index.post.php” - they have mentioned as below…



[size=3]“In order to show the collected data in the admin area we are going to use the TPL hook extra in the admin area home template (skins/basic/admin/views/index.tpl).”[/size]



(Please find the attached screenshot image - [color=#1C2837][font=arial, verdana, tahoma, sans-serif][size=3]cs-cart-tpl-hook-1.png[/size][/font][/color])



To achieve this step, i have created separate “tpl” file with the name "extra.post.tpl”. In order to display the “tpl” file content on the Admin Dashboard page, do i need to add the following lines,



{hook name=“index:extra”}

{/hook}



In to the admin area home template file - /design/backend/templates/views/index/index.tpl - on the line number #384? (Please find the attached screenshot image - [color=#1C2837][font=arial, verdana, tahoma, sans-serif][size=3]cs-cart-tpl-hook-2.png[/size][/font][/color])



Is this the correct procedure?



If this is not correct procedure, please let me know, the procedures should I follow to display the “extra.post.tpl” file content on the Admin Dashboard Page?



Thanks,

Damian

cs-cart-tpl-hook-1.png

cs-cart-tpl-hook-2.png

You are using V3 paths in V4. That will not work.

Your extra.post.tpl file should be in

design/backend/templates/addons//hooks/index/extra.post.tpl

for v4 and for V3 it should be

skins/admin/basic/addons//hooks/index/extra.post.tpl

Hi Tbirnseth,



Thanks for your replay :)



After placing my [color=#282828][font=arial, verdana, tahoma, sans-serif]extra.post.tpl file, in the path,[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]design/backend/templates/addons/<your_addon_name>/hooks/index/extra.post.tpl[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]should i need to add [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif]the following lines,[/font][/color]



{hook name=“index:extra”}

{/hook}



[color=#282828][font=arial, verdana, tahoma, sans-serif]In to the admin area home template file - [/font][/color]/design/backend/templates/views/index/index.tpl[color=#282828][font=arial, verdana, tahoma, sans-serif] [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif]?[/font][/color]



Please clarify it.



Again thanks for your reply post.

I'm puzzled based from the attached file, what is the reason why the two freshly installed Multivendor with exactly the same settings as described in cs-cart website but not working as expected.

the first server works as expected then the 2nd installation is not working as expected but they have exact 100% setup.

Please help...

DifferenceInAdmin.pdf

I don't see this in my standard MVE environment. Are you using a 3rd party addon or a special block to display that info?

And then there is the obvious question... You did view the categories in your 2nd installation?

I don't see this in my standard MVE environment. Are you using a 3rd party addon or a special block to display that info?

And then there is the obvious question... You did view the categories in your 2nd installation?

no 3rd party addon, no special block etc. both image 1 and image 2 are standard installation except that they have different database names. that's all.

That's why I wonder why they are different and I need to know what is the difference. Did I missed anything? but I double checked if it follows exactly as stated in the tutorial and it was following 100%.

The Viewed categories section is not a part of standard Multi-Vendor package. Check installed modules