Jump to content
Latest News: (loading..)

Bobber

Members
  • Content count

    99
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Bobber
  • Gender
    Male

Recent Profile Visitors

6,248 profile views
  1. Bobber

    Slim Checkout for BS

    Thank you for your help @raiwa!!! Yes... When I uninstall and reinstall I have the same issues... it does "reset" the module to the coded preferences in the module. osCommerce Online Merchant v2.3.4.1 (Frozen CE Version) HTTP Server: Apache PHP Version: 5.6.38 (Zend: 2.6.0) I checked my "php_errorlog" and there are no error associated with this problem and no errors for this week in general... below is my /includes/modules/header_tags/ht_slim_checkout.php file <?php /* $Id$ Slim Checkout by @raiwa Rainer Schmied / info@oscaddons.com / www.oscaddons.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2017 osCommerce Released under the GNU General Public License */ class ht_slim_checkout { var $code = 'ht_slim_checkout'; var $group = 'header_tags'; var $title; var $description; var $sort_order; var $enabled = false; function __construct() { $this->title = MODULE_HEADER_TAGS_SLIM_CHECKOUT_TITLE; $this->description = MODULE_HEADER_TAGS_SLIM_CHECKOUT_DESCRIPTION; if ( defined('MODULE_HEADER_TAGS_SLIM_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_HEADER_TAGS_SLIM_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_HEADER_TAGS_SLIM_CHECKOUT_STATUS == 'True'); } } function execute() { global $oscTemplate; $oscTemplate = new oscTemplateExt; } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_HEADER_TAGS_SLIM_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Current Version', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_VERSION', '1.1', 'Read only.', '6', '1', 'tep_version_readonly(', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Slim Checkout', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_STATUS', 'True', 'Enable this module?', '6', '2', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Hide Navbar', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_NAVBAR', '" . implode(';', $this->get_default_pages()) . "', 'Hide the Navabar module on Checkout Pages?', '6', '3', 'ht_slim_navbar_show_pages', 'ht_slim_navbar_edit_pages(', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Hide Header Area Modules', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_HEADER', '" . implode(';', $this->get_default_pages()) . "', 'Hide the modules in the Header Area on Checkout Pages?', '6', '4', 'ht_slim_header_show_pages', 'ht_slim_header_edit_pages(', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Hide Side Column Boxes', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_BOXES', '" . implode(';', $this->get_default_pages()) . "', 'Hide the Side Column Boxes on Checkout Pages?', '6', '5', 'ht_slim_boxes_show_pages', 'ht_slim_boxes_edit_pages(', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Hide Footer Modules', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_FOOTER', '" . implode(';', $this->get_default_pages()) . "', 'Hide the Footer Modules on Checkout Pages?', '6', '6', 'ht_slim_footer_show_pages', 'ht_slim_footer_edit_pages(', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Hide Footer Suffix Modules', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_FOOTER_SUFFIX', '" . implode(';', $this->get_default_pages()) . "', 'Hide the Footer Suffix Modules on Checkout Pages?', '6', '7', 'ht_slim_footer_suffix_show_pages', 'ht_slim_footer_suffix_edit_pages(', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Exclude Header Modules', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_EXCLUDE', 'cm_header_logo', 'List of modules to show always in the header area, even the header module area is hidden?<br>Comma separated list.<br>Only for header modules: \"cm_header_...\"', '6', '8', 'tep_textarea(', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Content Width', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_CONTENT_WIDTH', '12', 'Content width if side columns are hidden.<br>Should be a pair value between the normal main content width (default = 8) => no content stretch, and the max width (12) => stretch content to full width.<br>Usual values: 8, 10 or 12', '6', '9', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '11', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_HEADER_TAGS_SLIM_CHECKOUT_VERSION', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_STATUS', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_NAVBAR', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_HEADER', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_BOXES', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_FOOTER', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_FOOTER_SUFFIX', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_EXCLUDE', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_CONTENT_WIDTH', 'MODULE_HEADER_TAGS_SLIM_CHECKOUT_SORT_ORDER'); } function get_default_pages() { return array('login.php', 'checkout_shipping.php', 'checkout_shipping_address.php', 'checkout_payment.php', 'checkout_confirmation.php'); } } // end class function ht_slim_navbar_show_pages($text) { return nl2br(implode("\n", explode(';', $text))); } function ht_slim_navbar_edit_pages($values, $key) { global $PHP_SELF; $files_array = get_controlled_pages(); $values_array = explode(';', $values); $output = ''; foreach ($files_array as $file) { $output .= tep_draw_checkbox_field('ht_slim_navbar_file[]', $file, in_array($file, $values_array)) . '&nbsp;' . tep_output_string($file) . '<br />'; } if (!empty($output)) { $output = '<br />' . substr($output, 0, -6); } $output .= tep_draw_hidden_field('configuration[' . $key . ']', '', 'id="htrn_navbar_files"'); $output .= '<script> function htrn_navbar_update_cfg_value() { var htrn_navbar_selected_files = \'\'; if ($(\'input[name="ht_slim_navbar_file[]"]\').length > 0) { $(\'input[name="ht_slim_navbar_file[]"]:checked\').each(function() { htrn_navbar_selected_files += $(this).attr(\'value\') + \';\'; }); if (htrn_navbar_selected_files.length > 0) { htrn_navbar_selected_files = htrn_navbar_selected_files.substring(0, htrn_navbar_selected_files.length - 1); } } $(\'#htrn_navbar_files\').val(htrn_navbar_selected_files); } $(function() { htrn_navbar_update_cfg_value(); if ($(\'input[name="ht_slim_navbar_file[]"]\').length > 0) { $(\'input[name="ht_slim_navbar_file[]"]\').change(function() { htrn_navbar_update_cfg_value(); }); } }); </script>'; return $output; } function ht_slim_header_show_pages($text) { return nl2br(implode("\n", explode(';', $text))); } function ht_slim_header_edit_pages($values, $key) { global $PHP_SELF; $files_array = get_controlled_pages(); $values_array = explode(';', $values); $output = ''; foreach ($files_array as $file) { $output .= tep_draw_checkbox_field('ht_slim_header_file[]', $file, in_array($file, $values_array)) . '&nbsp;' . tep_output_string($file) . '<br />'; } if (!empty($output)) { $output = '<br />' . substr($output, 0, -6); } $output .= tep_draw_hidden_field('configuration[' . $key . ']', '', 'id="htrn_header_files"'); $output .= '<script> function htrn_header_update_cfg_value() { var htrn_header_selected_files = \'\'; if ($(\'input[name="ht_slim_header_file[]"]\').length > 0) { $(\'input[name="ht_slim_header_file[]"]:checked\').each(function() { htrn_header_selected_files += $(this).attr(\'value\') + \';\'; }); if (htrn_header_selected_files.length > 0) { htrn_header_selected_files = htrn_header_selected_files.substring(0, htrn_header_selected_files.length - 1); } } $(\'#htrn_header_files\').val(htrn_header_selected_files); } $(function() { htrn_header_update_cfg_value(); if ($(\'input[name="ht_slim_header_file[]"]\').length > 0) { $(\'input[name="ht_slim_header_file[]"]\').change(function() { htrn_header_update_cfg_value(); }); } }); </script>'; return $output; } function ht_slim_boxes_show_pages($text) { return nl2br(implode("\n", explode(';', $text))); } function ht_slim_boxes_edit_pages($values, $key) { global $PHP_SELF; $files_array = get_controlled_pages(); $values_array = explode(';', $values); $output = ''; foreach ($files_array as $file) { $output .= tep_draw_checkbox_field('ht_slim_boxes_file[]', $file, in_array($file, $values_array)) . '&nbsp;' . tep_output_string($file) . '<br />'; } if (!empty($output)) { $output = '<br />' . substr($output, 0, -6); } $output .= tep_draw_hidden_field('configuration[' . $key . ']', '', 'id="htrn_boxes_files"'); $output .= '<script> function htrn_boxes_update_cfg_value() { var htrn_boxes_selected_files = \'\'; if ($(\'input[name="ht_slim_boxes_file[]"]\').length > 0) { $(\'input[name="ht_slim_boxes_file[]"]:checked\').each(function() { htrn_boxes_selected_files += $(this).attr(\'value\') + \';\'; }); if (htrn_boxes_selected_files.length > 0) { htrn_boxes_selected_files = htrn_boxes_selected_files.substring(0, htrn_boxes_selected_files.length - 1); } } $(\'#htrn_boxes_files\').val(htrn_boxes_selected_files); } $(function() { htrn_boxes_update_cfg_value(); if ($(\'input[name="ht_slim_boxes_file[]"]\').length > 0) { $(\'input[name="ht_slim_boxes_file[]"]\').change(function() { htrn_boxes_update_cfg_value(); }); } }); </script>'; return $output; } function ht_slim_footer_show_pages($text) { return nl2br(implode("\n", explode(';', $text))); } function ht_slim_footer_edit_pages($values, $key) { global $PHP_SELF; $files_array = get_controlled_pages(); $values_array = explode(';', $values); $output = ''; foreach ($files_array as $file) { $output .= tep_draw_checkbox_field('ht_slim_footer_file[]', $file, in_array($file, $values_array)) . '&nbsp;' . tep_output_string($file) . '<br />'; } if (!empty($output)) { $output = '<br />' . substr($output, 0, -6); } $output .= tep_draw_hidden_field('configuration[' . $key . ']', '', 'id="htrn_footer_files"'); $output .= '<script> function htrn_footer_update_cfg_value() { var htrn_footer_selected_files = \'\'; if ($(\'input[name="ht_slim_footer_file[]"]\').length > 0) { $(\'input[name="ht_slim_footer_file[]"]:checked\').each(function() { htrn_footer_selected_files += $(this).attr(\'value\') + \';\'; }); if (htrn_footer_selected_files.length > 0) { htrn_footer_selected_files = htrn_footer_selected_files.substring(0, htrn_footer_selected_files.length - 1); } } $(\'#htrn_footer_files\').val(htrn_footer_selected_files); } $(function() { htrn_footer_update_cfg_value(); if ($(\'input[name="ht_slim_footer_file[]"]\').length > 0) { $(\'input[name="ht_slim_footer_file[]"]\').change(function() { htrn_footer_update_cfg_value(); }); } }); </script>'; return $output; } function ht_slim_footer_suffix_show_pages($text) { return nl2br(implode("\n", explode(';', $text))); } function ht_slim_footer_suffix_edit_pages($values, $key) { global $PHP_SELF; $files_array = get_controlled_pages(); $values_array = explode(';', $values); $output = ''; foreach ($files_array as $file) { $output .= tep_draw_checkbox_field('ht_slim_footer_suffix_file[]', $file, in_array($file, $values_array)) . '&nbsp;' . tep_output_string($file) . '<br />'; } if (!empty($output)) { $output = '<br />' . substr($output, 0, -6); } $output .= tep_draw_hidden_field('configuration[' . $key . ']', '', 'id="htrn_footer_suffix_files"'); $output .= '<script> function htrn_footer_suffix_update_cfg_value() { var htrn_footer_suffix_selected_files = \'\'; if ($(\'input[name="ht_slim_footer_suffix_file[]"]\').length > 0) { $(\'input[name="ht_slim_footer_suffix_file[]"]:checked\').each(function() { htrn_footer_suffix_selected_files += $(this).attr(\'value\') + \';\'; }); if (htrn_footer_suffix_selected_files.length > 0) { htrn_footer_suffix_selected_files = htrn_footer_suffix_selected_files.substring(0, htrn_footer_suffix_selected_files.length - 1); } } $(\'#htrn_footer_suffix_files\').val(htrn_footer_suffix_selected_files); } $(function() { htrn_footer_suffix_update_cfg_value(); if ($(\'input[name="ht_slim_footer_suffix_file[]"]\').length > 0) { $(\'input[name="ht_slim_footer_suffix_file[]"]\').change(function() { htrn_footer_suffix_update_cfg_value(); }); } }); </script>'; return $output; } function get_controlled_pages() { $files_array = array('login.php', 'shopping_cart.php', 'checkout_shipping.php', 'checkout_shipping_address.php', 'checkout_payment.php', 'checkout_confirmation.php', 'checkout_success.php'); return $files_array; } // Function to read in text area in admin if(!function_exists('tep_textarea')) { function tep_textarea($text, $key = '') { $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value'); return tep_draw_textarea_field($name, false, 35, 5, $text, 'style="font: inherit;"'); } } // function show the version read only if(!function_exists('tep_version_readonly')) { function tep_version_readonly($value){ $version_text = '<br>Version ' . $value; return $version_text; } } // Begin template class extension if (class_exists('oscTemplate')) { class oscTemplateExt extends oscTemplate { public $_title; public $_blocks = array(); public $_hide_column = false; function __construct() { global $PHP_SELF, $oscTemplate; $this->_title = $oscTemplate->_title; $this->_blocks = $oscTemplate->_blocks; } function getGridContentWidth() { if ( $this->_hide_column == true ) { return MODULE_HEADER_TAGS_SLIM_CHECKOUT_CONTENT_WIDTH; // define main content width if side columns are hidden } else { return $this->_grid_content_width; } } function getGridColumnWidth() { if ( $this->_hide_column == true ) { // define columns width if side columns are hidden return (12 - MODULE_HEADER_TAGS_SLIM_CHECKOUT_CONTENT_WIDTH) / 2; } else { return (12 - BOOTSTRAP_CONTENT) / 2; } } function getBlocks($group) { global $PHP_SELF; if ( $this->hasBlocks($group) && ((strpos($group, 'boxes_column') === false) || !in_array(basename($PHP_SELF), $this->checkPages('bm_'))) ) { // hide side columns return implode("\n", $this->_blocks[$group]); } } function getContent($group) { global $PHP_SELF, $language; if ( !class_exists('tp_' . $group) && file_exists('includes/modules/pages/tp_' . $group . '.php') ) { include('includes/modules/pages/tp_' . $group . '.php'); } if ( class_exists('tp_' . $group) ) { $template_page_class = 'tp_' . $group; $template_page = new $template_page_class(); $template_page->prepare(); } foreach ( $this->getContentModules($group) as $module ) { if ( !class_exists($module) ) { if ( file_exists('includes/modules/content/' . $group . '/' . $module . '.php') ) { if ( file_exists('includes/languages/' . $language . '/modules/content/' . $group . '/' . $module . '.php') ) { include('includes/languages/' . $language . '/modules/content/' . $group . '/' . $module . '.php'); } include('includes/modules/content/' . $group . '/' . $module . '.php'); } } if ( class_exists($module) ) { $mb = new $module(); if ( $mb->isEnabled() && !in_array(basename($PHP_SELF), $this->checkPages($module))) { // check if module should be hidden, get hidden pages array $mb->execute(); } } } if ( class_exists('tp_' . $group) ) { $template_page->build(); } if ($this->hasContent($group)) { return implode("\n", $this->_content[$group]); } } function checkPages($module){ //$module what is called in the and content modules global $PHP_SELF; if (strtok($module, '_') == 'bm') { $module_group_prefix = strtok($module, '_'); } elseif ((strpos($module, 'cm_footer_extra') !== false)) { $module_group_prefix = 'footer_extra'; } elseif (strtok($module, '_') == 'cm') { $module_group_prefix = (strtok($module, '_'.strtok($module, '_'))); } $hide_array[$module_group_prefix] = array(); $hide_array['navbar'] = explode(';', MODULE_HEADER_TAGS_SLIM_CHECKOUT_NAVBAR); if ( !in_array($module, explode(',', MODULE_HEADER_TAGS_SLIM_CHECKOUT_EXCLUDE)) ) { $hide_array['header'] = explode(';', MODULE_HEADER_TAGS_SLIM_CHECKOUT_HEADER); } $hide_array['bm'] = explode(';', MODULE_HEADER_TAGS_SLIM_CHECKOUT_BOXES); $hide_array['footer'] = explode(';', MODULE_HEADER_TAGS_SLIM_CHECKOUT_FOOTER); $hide_array['footer_extra'] = explode(';', MODULE_HEADER_TAGS_SLIM_CHECKOUT_FOOTER_SUFFIX); // check if side columns are hidden if (in_array(basename($PHP_SELF), $hide_array['bm'])) $this->_hide_column = true; return $hide_array[$module_group_prefix]; } } // end class } // end if class exists // Begin template class extension ?>
  2. Bobber

    Slim Checkout for BS

    Great Add-On @raiwa!!! Very Well Done Sir!!! I do seem to have a bug in my install... When I install the module everything is good... If I go in and edit ( even if I do not change anything ) and click save... The module does not save my settings and it clears out all of the settings leaving the modules content blank... Any ideas here? I have attached 3 screenshots which I hope help explain the problem I am encountering...
  3. Hi Everyone, The reason I was getting () brackets was I did not have a description for the shipping method... I wanted to offer FedEx Ground... at a flat rate to the customer of $9.99. I changed my /home/public_html/includes/languages/english/modules/shipping/flat.php from: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'FedEx Ground'); define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'FedEx Ground Flat Rate Shipping'); define('MODULE_SHIPPING_FLAT_TEXT_WAY', ''); ?> To this: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'FedEx Ground'); define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'FedEx Ground Flat Rate Shipping'); define('MODULE_SHIPPING_FLAT_TEXT_WAY', ' Flat Rate Shipping '); ?> And now it looks like this on the /checkout_shipping.php and /checkout_confirmation.php pages: I hope this helps / generates ideas for others in the future!
  4. Hi Everyone, Does anyone know how to remove the () brackets from the shipping and payment / credit card methods on the checkout_confirmation.php page? I have attached a picture of the issue I am talking about... I have been making little cosmetic updates to my test site and the () brackets need to go... Any ideas / help is appreciated!
  5. I want to Very Much Thank: @frankl @clustersolutions @oscoMMarket Below is the complete code solution... should anyone else ever need this solution in the future: <?php /* osCompose, E-Commerce Solutions https://oscompose.com Copyright (c) 2018 osCompose Contact: Henry Withoot Email: osc2nuke@gmail.com */ class cm_pi_slick { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function __construct() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_PI_SLICK_TITLE; $this->description = MODULE_CONTENT_PI_SLICK_DESCRIPTION; $this->description .= '<div class="secWarning">' . MODULE_CONTENT_BOOTSTRAP_ROW_DESCRIPTION . '</div>'; if ( defined('MODULE_CONTENT_PI_SLICK_STATUS') ) { $this->sort_order = MODULE_CONTENT_PI_SLICK_SORT_ORDER; $this->enabled = (MODULE_CONTENT_PI_SLICK_STATUS == 'True'); } } function execute() { global $oscTemplate, $product_info; $content_width = (int)MODULE_CONTENT_PI_SLICK_CONTENT_WIDTH; $slick_width = (int)MODULE_CONTENT_PI_SLICK_WIDTH; $output = null; if (tep_not_null($product_info['products_image'])) { $slicks = []; $Qslick = tep_db_query("select image, htmlcontent from products_images where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order"); while($Qresult = tep_db_fetch_array($Qslick)){ $slicks[] = $Qresult; } $output .= '<div class="col-sm-'.$slick_width.'">'; $output .= ' <section class="slider-for slider">'; //Main images and htmlcontent foreach($slicks as $slick){ if(tep_not_null($slick['htmlcontent'])){ $output .= ' <div class="item"><div class="embed-container"><iframe src="'.$slick['htmlcontent'].'" frameborder="0" allowfullscreen></iframe></div></div>'; }else{ $output .= ' <div class="item">'. tep_image('images/' . $slick['image'], htmlspecialchars($product_info['products_name']), '', '').'</div>'; } } $output .= ' </section>'; //thumbnails $output .= ' <div class="col-sm-10 col-sm-push-1">'; $output .= ' <section class="slider-nav slider">'; foreach($slicks as $slick){ $output .= ' <div class="thumbnail">'. tep_image('images/' . $slick['image'], htmlspecialchars($product_info['products_name']), '', '').'</div>'; } $output .= ' </section>'; $output .= ' </div>'; $output .= '</div>'; } ob_start(); include('includes/modules/content/' . $this->group . '/templates/tpl_' . basename(__FILE__)); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_PI_SLICK_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Slick Gallery', 'MODULE_CONTENT_PI_SLICK_STATUS', 'True', 'Should this module be shown on the product info page?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_PI_SLICK_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '2', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Gallery Width', 'MODULE_CONTENT_PI_SLICK_WIDTH', '12', 'The width of the gallery itself?', '6', '2', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_PI_SLICK_SORT_ORDER', '65', 'Sort order of display. Lowest is displayed first.', '6', '3', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_PI_SLICK_STATUS', 'MODULE_CONTENT_PI_SLICK_CONTENT_WIDTH', 'MODULE_CONTENT_PI_SLICK_WIDTH', 'MODULE_CONTENT_PI_SLICK_SORT_ORDER'); } } I have tested this on 2.3.4.1 CE and it worked perfectly for me 🙂
  6. Thank you for the help @frankl! This results in: This add-on is a great update... displaying the "main image" really stinks 😕 Attached #1 is the default add-on... ( displays the "main image"... ). Attached #2 is based off your suggestion with: Attached #3 is what I am working towards 🙂
  7. For all who are looking to change their gallery in 2.3.4.1 CE I would definitely suggest this add-on by @wHiTeHaT https://apps.oscommerce.com/6V87X&amp;bs-slick-image-gallery The formatting is clean and orderly... very nicely done! I do have a question I hope someone can help with... How do I change this add-on so it Does Not display the "main image"... This way it would only display the "Large Images" as the standard gallery does by default in 2.3.4.1 CE? I know changes need to be made in: /includes/modules/content/product_info/cm_pi_slick.php I am just not having any luck with this change... Thank you in advance for your help!
  8. This should help @valquiria23: https://developers.facebook.com/docs/plugins/comments/ https://developers.facebook.com/docs/apps/register/
  9. Hi @valquiria23! Yes I was able too and everything works perfectly for me... You do need to be logged in with your facebook account and have your developer code in the module for it to work correctly... Did you create a facebook developer account and create an app so you get the proper code to insert into this module yet?
  10. Great Work Bruce! I agree with you cautions about risks pertaining to public facing parts of the site... I only use it on the admin side personally.
  11. Great Contribution @raiwa... Very Well Done Sir!!!
×