cr0co Posted June 25, 2015 Share Posted June 25, 2015 Hello i folled this tutorial to add a new box: Copy catalog/includes/modules/boxes/bm_information.php and give it a new name. Edit that file and change bm_information to your new box name throughout that file. Change all of the constants that include _INFORMATION_ to include your new name instead. Keep them in all caps. Change the content to what you want in your new box. If you are using links to new files, keep the same format as the links in that box. The part that generates the box is in the execute() method. Copy catalog/includes/languages/english/modules/boxes/bm_information.php and give it a the same name as you did the file in step 1. Make the same changes to the constants in this file that you made in step 3. Upload your two new files. Go to your store Admin > Modules > Boxes and install your new module. Give it a sort order that will place it where you want it. Thanks to Jim now i want to add a <?php include 'file.php'; ?> inside the box. $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_searchtagcloud_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . 'include 'tag.php' ' . '</div>' . '</div>'; this is not working, i tryd diffrent settings.. can anybody help me out here? Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted June 25, 2015 Share Posted June 25, 2015 it is a bit more difficult to capture the output of an include file into a $data block, you should re-write that tag.php file to have a function that you call to return the output that you currently have by just calling that file or post tag.php and we'll have a go at it ... KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.