♥kymation Posted August 25, 2015 Author Posted August 25, 2015 No, the modules were written for stock osCommerce and are not Bootstrap compatible. Should not be too hard to rewrite them if you want to try. Regards Jim dinera 1 Quote See my profile for a list of my addons and ways to get support.
TomB01 Posted September 13, 2015 Posted September 13, 2015 I just entered some new text to Text Main this morning. Now, I can't edit the text anymore. When I select Edit, I no longer get the text field to edit anymore. At the top of the Modules listing in Admin, this is the error message: "Parse error: syntax error, unexpected T_STRING in /home1/tomb/public_html/catalog/tube4391/modules.php(251) : eval()'d code on line 3" Quote
TomB01 Posted September 13, 2015 Posted September 13, 2015 I guess it was some sort of error in the HTML I used. I wiped out the added text in PHPAdmin and carefully added new text with correct HTML (don't know what I did the first time). Now, everything is fine. Quote
♥kymation Posted September 13, 2015 Author Posted September 13, 2015 The most common cause is using a single quote/apostrophe. This causes problems with the code. Any single quote should be escaped with a backslash. Regards Jim Quote See my profile for a list of my addons and ways to get support.
dvharrison Posted January 27, 2016 Posted January 27, 2016 Hi Jim Does this add-on work with OSCommerce 2.3.4 and PHP 5.5? I have to ask because my server has been upgraded and these are the restrictions. Quote Debbie Harrison
♥kymation Posted January 27, 2016 Author Posted January 27, 2016 Yes, this one is also compatible. Regards Jim Quote See my profile for a list of my addons and ways to get support.
dvharrison Posted January 27, 2016 Posted January 27, 2016 (edited) You're right it does. :lol: Edited January 27, 2016 by dvharrison Quote Debbie Harrison
♥kymation Posted February 1, 2016 Author Posted February 1, 2016 I've uploaded a new version that includes a set of Bootstrap modules for the latest osCommerce Responsive codebase. They should work with PHP 5.5, 5.6, and 7. The old modules are still there, in a separate folder, for those who need them. The Bootstrap modules only include the standard set. I plan to release additional modules separately as I have the time to make them. Regards Jim BrockleyJohn 1 Quote See my profile for a list of my addons and ways to get support.
♥kymation Posted February 1, 2016 Author Posted February 1, 2016 Updated the Responsive modules to add version numbers and fix some minor typos. If you have this installed already, no need to do anything unless you want to. If you do, replace the module files and then uninstall and reinstall to see the changes. Regards Jim altoid 1 Quote See my profile for a list of my addons and ways to get support.
♥kymation Posted February 2, 2016 Author Posted February 2, 2016 And updated again. This one fixes bugs in the New Products and Upcoming Products modules. The previous versions did not display the products in the correct order. I suggest that you replace those two modules, or just replace all of them. There is no need to uninstall first. More modules coming as soon as I can write them. Regards Jim Quote See my profile for a list of my addons and ways to get support.
♥kymation Posted February 3, 2016 Author Posted February 3, 2016 And a new module -- the Categories Images Content Module is here: http://addons.oscommerce.com/info/9434. Regards Jim Quote See my profile for a list of my addons and ways to get support.
♥kymation Posted February 8, 2016 Author Posted February 8, 2016 Another new module -- the Banner Rotator Content Module is here: http://addons.oscommerce.com/info/9436 Regards Jim TITO4 1 Quote See my profile for a list of my addons and ways to get support.
LeeFoster Posted February 8, 2016 Posted February 8, 2016 Hi, Is it possible to hide a category from the front page but still show it in the infobox? Thanks Quote
♥kymation Posted February 8, 2016 Author Posted February 8, 2016 Anything is possible. You would need to modify the code to exclude your category. For example, in the module file find this code: where c.parent_id = '0' and cd.language_id = '" . (int) $languages_id . "' and add just after that and c.categories_id != '13' That will prevent the category with an ID of 13 from showing in the Categories Images box. Regards Jim Quote See my profile for a list of my addons and ways to get support.
LeeFoster Posted February 8, 2016 Posted February 8, 2016 Thanks, I didn't even think of doing it that way, I was too busy looking for a tick box addon that would do it. Quote
♥kymation Posted February 8, 2016 Author Posted February 8, 2016 I'm pretty sure there is no Addon to do that. That's a pretty specific -- and unusual -- request. There are several Addons that would hide a category everywhere, but you would have to modify the code of one of those to do what you want. This was the easiest way to do what you asked. Regards Jim Quote See my profile for a list of my addons and ways to get support.
LeeFoster Posted February 8, 2016 Posted February 8, 2016 Based on what you've said I don't think it would be hard to make an addon. Gonna have a look now Quote
♥kymation Posted February 8, 2016 Author Posted February 8, 2016 It's not at all hard to make one. Just be prepared for people asking you for custom modifications. :) :thumbsup: Regards Jim Quote See my profile for a list of my addons and ways to get support.
♥kymation Posted February 9, 2016 Author Posted February 9, 2016 I've updated the Modular Front Page Bootstrap modules and the Categories Images module to add the Width parameter. This allows you to set a width for each module, so modules can be side-by-side. If you want to update an existing installation, uninstall your modules and then upload all of the modules directory (including the templates) and reinstall. Regards Jim Quote See my profile for a list of my addons and ways to get support.
♥kymation Posted February 12, 2016 Author Posted February 12, 2016 Another new Front Page module: This module shows a products box on the front page, similar to the stock New Products, but with the products selectable in the module admin. See: http://addons.oscommerce.com/info/9438 Regards Jim Quote See my profile for a list of my addons and ways to get support.
♥kymation Posted February 12, 2016 Author Posted February 12, 2016 And a carousel rotator version of the above. See: http://addons.oscommerce.com/info/9439 Regards Jim Quote See my profile for a list of my addons and ways to get support.
LeeFoster Posted February 13, 2016 Posted February 13, 2016 I thought I would share the changes I made to allow you to hide a category from the front page but not the boxes includes\modules\front_page\fp_categories_images.php Find and cd.language_id = '" . (int) $languages_id . "' Add below and c.hide != '1' admin\Categories.php Find tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $HTTP_GET_VARS['cPath'] . '&pID=' . $HTTP_GET_VARS['pID'])); break; case 'insert_category': case 'update_category': if (isset($HTTP_POST_VARS['categories_id'])) $categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']); $sort_order = tep_db_prepare_input($HTTP_POST_VARS['sort_order']); Add below $hide = tep_db_prepare_input($HTTP_POST_VARS['hide']); Find $sql_data_array = array('sort_order' => (int)$sort_order); if ($action == 'insert_category') { $insert_sql_data = array('parent_id' => $current_category_id, 'date_added' => 'now()'); Replace with $sql_data_array = array('sort_order' => (int)$sort_order, 'hide' => (int)$hide); if ($action == 'insert_category') { $insert_sql_data = array('parent_id' => $current_category_id, 'date_added' => 'now()'); Find $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and cd.categories_name like '%" . tep_db_input($search) . "%' order by c.sort_order, cd.categories_name"); } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.sort_order, cd.categories_name"); } while ($categories = tep_db_fetch_array($categories_query)) { $categories_count++; $rows++; Replace with $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.hide, c.date_added, c.last_modified from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and cd.categories_name like '%" . tep_db_input($search) . "%' order by c.sort_order, cd.categories_name"); } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.hide, c.date_added, c.last_modified from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.sort_order, cd.categories_name"); } while ($categories = tep_db_fetch_array($categories_query)) { $categories_count++; $rows++; Find $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image')); $contents[] = array('text' => '<br />' . TEXT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', '', 'size="2"')); $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath))); Replace with $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image')); $contents[] = array('text' => '<br />' . TEXT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', '', 'size="2"')); $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_HIDE . '<br />' . tep_draw_input_field('hide', '', 'size="2"')); $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath))); Find $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br />' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br />' . DIR_WS_CATALOG_IMAGES . '<br /><strong>' . $cInfo->categories_image . '</strong>'); $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image')); $contents[] = array('text' => '<br />' . TEXT_EDIT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"')); $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id))); Replace with $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br />' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br />' . DIR_WS_CATALOG_IMAGES . '<br /><strong>' . $cInfo->categories_image . '</strong>'); $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image')); $contents[] = array('text' => '<br />' . TEXT_EDIT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"')); $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_HIDE . '<br />' . tep_draw_input_field('hide', $cInfo->hide, 'size="2"')); $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id))); admin\includes\languages\english\categories.php Add before final ?> define('TEXT_EDIT_CATEGORIES_HIDE', 'Hide From Front Page: <p>(1 to hide, 0 to show)') SQL Changes ALTER TABLE `categories` ADD `hide` INT(3) NOT NULL AFTER `sort_order`; bruyndoncx 1 Quote
♥bruyndoncx Posted February 13, 2016 Posted February 13, 2016 I thought I would share the changes I made to allow you to hide a category from the front page but not the boxesi can see you have programmed this in the most flexible way, but I was just wondering if a configuration key with a comma separated list of categories ids to hide wouldn't have worked too, without the need to add a database field and amend the data entry for categories ... Quote 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
LeeFoster Posted February 13, 2016 Posted February 13, 2016 i can see you have programmed this in the most flexible way, but I was just wondering if a configuration key with a comma separated list of categories ids to hide wouldn't have worked too, without the need to add a database field and amend the data entry for categories ... It would have worked but this method makes it easy to add and remove categories from the front page. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.