How to change Templates without Hook avoiding Core modifications

I use my_chanes addon for modifications, but i would like to change the breadcrumbs html code. Breadcrumb's code is located in the commeon_templates/ breadcrumbs.tpl file. Unfortunatelly there is no hook in this template.

How could I change breadcrumb's HTML without any core modifications?

It's not core file, it's your theme file. Be bold to edit it. But if you still don't want to edit breadcrumbs.tpl file, then create blocks/static_templates folder in my_changes addon. Then create a tpl file example site-breadcrumbs.tpl in blocks/static_templates. Write your code in it.

Then create a block choose Template one and choose the file you created from dropdown list. Replace your breadcrumbs block with original breadcrumbs block.

[quote name='sertaconay' timestamp='1369900626' post='162710']

It's not core file, it's your theme file. Be bold to edit it. But if you still don't want to edit breadcrumbs.tpl file, then create blocks/static_templates folder in my_changes addon.

[/quote]

Thank you. Your idea helped me a lot.

Hi there,

We were also looking for such kind of question. Thanks sertaconay for your response. It definitely deserves an upvote.

Btw, as you mentioned that it is a static template, or theme file. Hence, my next question is that how many types of files are there in terms of classification? apart from hook files and static templates while considering the usage of “my_changes” addon.

Regards,

NaMo

@NaMo,



If your question relates only to the theme, you can use the My changes addon to:


  • use .pre, .post, .override hooks
  • extend block manager (add static templates or block templates for the dynamic objects (php changes in the add-on are requried in this case))
  • add .js files
  • add .css files
  • store media for your theme (images, fonts, e.t.c.)
  • store tempates for the custom controllers
  • store the information specified above for the e-mail templates



    Thanks.

[color=#282828][font=arial, verdana, tahoma, sans-serif]Hi eComlabs,[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]I tried modifying the block template [/font][/color]my_account.tpl [color=#282828][font=arial, verdana, tahoma, sans-serif]locatedin the “design\themes\basic\templates\blocks” folder using the my_changes addon. [/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]I put the modified file in the “templates\addons\my_changes\blocks\static_templates” folder but still when I go to design>layout and add a template then the “_my_account.tpl” is not being displayed. I've deleted the cache also.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]What should I do? [/font][/color]

Hello NaMo!



Please check my post in the My Changes Addon Is Not Working In 4.1.3 topic.



I hope this explanation will help you.



Thank you.





Anastasiya Kozlova

CS-Cart Support team