Jump to content
Latest News: (loading..)

Bobber

Members
  • Content count

    97
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Bobber
  • Gender
    Male

Recent Profile Visitors

6,028 profile views
  1. 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!
  2. 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!
  3. 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 🙂
  4. 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 🙂
  5. 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!
  6. This should help @valquiria23: https://developers.facebook.com/docs/plugins/comments/ https://developers.facebook.com/docs/apps/register/
  7. 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?
  8. 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.
  9. Great Contribution @raiwa... Very Well Done Sir!!!
  10. @JcMagpie I had been using: data-href="<?php echo ($PHP_SELF); ?>" Do you know what the technical differences or benefits would be to you suggestion of: data-href="<?php echo 'https://'. $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?>" I am just asking as an inquire... Everything you said and explained worked great when I tested it! Thank you... Great Add-On Sir!
  11. @JcMagpie this is a great add-on too! I decided to go with the CK Editor because it is Free... where tinymce is a pay per month add-on... I am surprised a text editor for Product Descriptions is not a Standard Core item in OsCommerce... Maybe in the future!
×