Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

marcochiana

Pioneers
  • Posts

    62
  • Joined

  • Last visited

Everything posted by marcochiana

  1. Hello Jim, thanks for your replay, I try to install Banner Rotator in Header and/or Footer by tito4 http://addons.oscommerce.com/info/9500 (it'is an adaptation of your Banner Rotator Content Module (Bootstrap)), but as you can see in the 2 pictures the same code work perfectly in tne index (banner is in the center) but doesn't work correctly in Header or footer (Banner is only in the left) Thanks for your time Marco bannerheaderr.pdfbannerfooter.pdf
  2. Hello, I'm trying to using this addon in the latest oscommerce 234 bootstrap (version 18 April 2017). It's seems to work but i'd like to respect the Google's rules about hide interstitials on mobile responsive pages. Can anyone help me? I'm not a programmer, what do you think we can use to hide interstitials on mobile? @@media queries??? these are the only 2 files changed to work on the latest version includes\modules\content\footer\cm_footer_popup.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_footer_popup { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_footer_popup() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_FOOTER_POPUP_TITLE; $this->description = MODULE_CONTENT_FOOTER_POPUP_DESCRIPTION; if ( defined('MODULE_CONTENT_FOOTER_POPUP_STATUS') ) { $this->sort_order = MODULE_CONTENT_FOOTER_POPUP_SORT_ORDER; $this->enabled = (MODULE_CONTENT_FOOTER_POPUP_STATUS == 'true'); } } function execute() { global $oscTemplate, $languages_id, $popups_id; $schedule_query = tep_db_query("select popups_id, expires_date, date_scheduled,status from popups"); if (tep_db_num_rows($schedule_query)) { while ($schedule = tep_db_fetch_array($schedule_query)) { if (($schedule['status'] == '1') && tep_not_null($schedule['expires_date']) && (date('Y-m-d H:i:s') >= $schedule['expires_date'])) { tep_db_query("update popups set status = '0', date_status_change = now(), expires_date = NULL where popups_id = '" . (int)$schedule['popups_id'] . "'"); }elseif (($schedule['status'] == '0') && tep_not_null($schedule['date_scheduled']) && (date('Y-m-d H:i:s') >= $schedule['date_scheduled'])) { tep_db_query("update popups set status = 1, date_status_change = now(), date_scheduled = NULL where popups_id = '" . (int)$schedule['popups_id'] . "'"); } } $popup_query = tep_db_query("select po.popups_id, pod.popups_id, pod.language_id, po.popups_title, po.popups_image, pod.popups_html_text from popups po, popups_description pod where status = '1' and po.popups_id = pod.popups_id and pod.language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($popup_query)) { $popup = tep_db_fetch_array($popup_query); if (tep_not_null($popup['popups_html_text'])) { $popup_html = $popup['popups_html_text']; } else { $popup_html = ''; } if (tep_not_null($popup['popups_image'])) { $popup_image = tep_image('images/' . $popup['popups_image'], $popup['popups_title']) .'<br />'; } else { $popup_image = ''; } $popup_string = $popup_image . $popup_html; ob_start(); include('includes/modules/content/' . $this->group . '/templates/popup.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_FOOTER_POPUP_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 Message Popup Footer Module', 'MODULE_CONTENT_FOOTER_POPUP_STATUS', 'true', 'Do you want to enable the Message popup content module?', '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, date_added) values ('Sort Order', 'MODULE_CONTENT_FOOTER_POPUP_SORT_ORDER', '999', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("drop table if exists popups;"); tep_db_query("create table popups (popups_id int(11) not null auto_increment, popups_title varchar(64) not null, popups_image varchar(64) not null, expires_date datetime, date_scheduled datetime, date_added datetime not null, date_status_change datetime,status int(1) default '1' not null,PRIMARY KEY (popups_id))"); tep_db_query("drop table if exists popups_description;"); tep_db_query("create table popups_description (popups_id int(11) not null,language_id int(11) default '1' not null,popups_html_text text)"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); tep_db_query("drop table if exists popups;"); tep_db_query("drop table if exists popups_description;"); } function keys() { return array('MODULE_CONTENT_FOOTER_POPUP_STATUS', 'MODULE_CONTENT_FOOTER_POPUP_SORT_ORDER'); } } includes\modules\content\footer\templates\popup.php <?php if (($_SERVER['HTTPS'] !== 'on') && (!tep_session_is_registered('popup'))) { ?> <script src="ext/jquery/jquery-2.2.3.min.js"></script> <div class="modal fade" id="popupModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <center><h5><?php echo $popup_string; ?></h5></center> </div> <div class="modal-footer"> <button type="button" class="btn btn-default pull-right" data-dismiss="modal"> <?php echo IMAGE_BUTTON_CONTINUE;?> <span class="glyphicon glyphicon-chevron-right"></span></button> </div> </div> </div> </div> <script type="text/javascript"> $(window).load(function(){$('#popupModal').modal('show');}); </script> <?php tep_session_register('popup'); } ?> Any help is appreciate. Marco
  3. Hello, i'm trying to use the code of Front Page Banner Rotator to show Banner Rotator in the header, it's seems to work except for the ALIGN When i change in the admin "Align Banners" the banner show allways in left this is the code. Any help is appreciate catalog\includes\modules\content\header\cm_header_carousel.php <?php /* $Id: cm_header_carousel.php, v1.0 20160521 TITO4$ Based and adapted on a previous work of Kymation. All credits go to James C Keebaugh. Thanks Jim for your great work. osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2016 Agustín Devós Released under the GNU General Public License v2.0 or later */ class cm_header_carousel { public $version = '2.0.1'; public $code; public $group; public $title; public $description; public $sort_order; public $enabled = false; public function __construct() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CAROUSEL_TITLE; $this->description = MODULE_CONTENT_HEADER_CAROUSEL_DESCRIPTION; if (defined('MODULE_CONTENT_HEADER_CAROUSEL_STATUS')) { $this->sort_order = MODULE_CONTENT_HEADER_CAROUSEL_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CAROUSEL_STATUS == 'True'); } } public function execute() { global $oscTemplate; $this->set_css(); $this->set_javascript(); $banners_data = $this->get_banner_data(); if ( $banners_data !== false && count( $banners_data ) > 0 ) { ob_start(); include('includes/modules/content/' . $this->group . '/templates/' . basename(__FILE__)); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } } public function isEnabled() { return $this->enabled; } public function check() { return defined('MODULE_CONTENT_HEADER_CAROUSEL_STATUS'); } function enable() { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'True' where configuration_key = 'MODULE_CONTENT_HEADER_CAROUSEL_STATUS'"); $this->enabled = (MODULE_CONTENT_HEADER_CAROUSEL_STATUS == 'True'); } function disable() { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'False' where configuration_key = 'MODULE_CONTENT_HEADER_CAROUSEL_STATUS'"); $this->enabled = (MODULE_CONTENT_HEADER_CAROUSEL_STATUS == 'False'); } public function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Module Version', 'MODULE_CONTENT_HEADER_CAROUSEL_VERSION', '" . $this->version . "', 'The version of this module that you are running.', '6', '0', 'tep_cfg_disabled(', now() ) "); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Banner Rotator', 'MODULE_CONTENT_HEADER_CAROUSEL_STATUS', 'True', 'Do you want to show the banner rotator?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CAROUSEL_SORT_ORDER', '80', 'Sort order of display. Lowest is displayed first.', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CAROUSEL_CONTENT_WIDTH', '12', 'What width container should the content be shown in?', '6', '3', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Banner Order', 'MODULE_CONTENT_HEADER_CAROUSEL_BANNER_ORDER', 'Asc', 'Order that the Banner Rotator uses to show the banners.', '6', '4', 'tep_cfg_select_option(array(\'Asc\', \'Desc\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banner Rotator Group', 'MODULE_CONTENT_HEADER_CAROUSEL_GROUP', 'rotator2', 'Name of the banner group that the Banner Rotator uses to show the banners.', '6', '5', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banner Rotator Max Banners', 'MODULE_CONTENT_HEADER_CAROUSEL_MAX_DISPLAY', '4', 'Maximum number of banners that the Banner Rotator will show', '6', '6', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Align Banners', 'MODULE_CONTENT_HEADER_CAROUSEL_ALIGN', 'center', 'Align the banners to the left, center, or right?', '6', '7', 'tep_cfg_select_option(array(\'left\', \'center\', \'right\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Automatic Carousel', 'MODULE_CONTENT_HEADER_CAROUSEL_AUTOPLAY', 'true', 'Do you want the carousel to run automatically?', '6', '8', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Start Delay', 'MODULE_CONTENT_HEADER_CAROUSEL_START_DELAY', '0', 'Delay the start of the carousel (1000 = 1 second).', '6', '9', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Hold Time', 'MODULE_CONTENT_HEADER_CAROUSEL_HOLD_TIME', '4000', 'The time each banner is shown (1000 = 1 second).', '6', '10', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Transition Time', 'MODULE_CONTENT_HEADER_CAROUSEL_TRANSITION_TIME', '500', 'The time to transition between banners (1000 = 1 second).', '6', '11', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Easing', 'MODULE_CONTENT_HEADER_CAROUSEL_EASING', 'swing', 'How the carousel transitions between banners.', '6', '12', 'tep_cfg_pull_down_easing_list(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Loop Around', 'MODULE_CONTENT_HEADER_CAROUSEL_LOOP', 'true', 'Do you want the carousel to start again after showing all of the banners?', '6', '13', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); } public function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } public function keys() { $keys = array(); $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_VERSION'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_STATUS'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_SORT_ORDER'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_CONTENT_WIDTH'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_BANNER_ORDER'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_GROUP'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_MAX_DISPLAY'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_ALIGN'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_AUTOPLAY'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_START_DELAY'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_HOLD_TIME'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_TRANSITION_TIME'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_EASING'; $keys[] = 'MODULE_CONTENT_HEADER_CAROUSEL_LOOP'; return $keys; } private function get_banner_data() { $banner_query_raw = " select banners_id, banners_url, banners_image, banners_html_text from " . TABLE_BANNERS . " where banners_group = '" . MODULE_CONTENT_HEADER_CAROUSEL_GROUP . "' and status = '1' order by banners_id " . MODULE_CONTENT_HEADER_CAROUSEL_BANNER_ORDER . " limit " . MODULE_CONTENT_HEADER_CAROUSEL_MAX_DISPLAY; $banner_query = tep_db_query($banner_query_raw); if( tep_db_num_rows($banner_query) > 0 ) { $banners_data = array(); while( $banners = tep_db_fetch_array($banner_query) ) { $banners_data[] = array( 'banners_id' => $banners['banners_id'], 'banners_url' => $banners['banners_url'], 'banners_image' => $banners['banners_image'], 'banners_html_text' => $banners['banners_html_text'] ); } return $banners_data; } return false; } private function set_css() { global $oscTemplate; // Set the CSS to load in the footer $add_css = ' <link rel="stylesheet" href="ext/jquery/slideshow/slideshow.css" />' . PHP_EOL; $add_css .= ' <style type="text/css"> .slideshow { position: relative; width: 100%; } .slideshow .slide figure { position: relative; margin: 0; } .slideshow .slide figure img { width: 100%; vertical-align: top; } .slideshow .slideTabs { text-align: center; position: absolute; bottom: 2%; width: 100%; z-index: 10; } .slideshow .slideTabs a { padding: 10px; margin: 0 5px; line-height: 2em; background: url(images/slideshow/dot_white.png) no-repeat center center; opacity: 0.6; } .slideshow .slideTabs a.selected { opacity: 1; } .slideshow .prev, .slideshow .next { position: absolute; cursor: pointer; padding: 10px 3px; background-color: rgba(0,0,0,0.1); } .slideshow .prev { left: 0; } .slideshow .next { right: 0; } </style>' . PHP_EOL; $oscTemplate->addBlock($add_css, 'footer_scripts'); } private function set_javascript() { global $oscTemplate; // Set the JavaScript to load in the footer $add_scripts = ' <script src="ext/jquery/slideshow/jquery.easing.1.3.js"></script>' . PHP_EOL; $add_scripts .= ' <script src="ext/jquery/slideshow/jquery.imagesloaded.js"></script>' . PHP_EOL; $add_scripts .= ' <script src="ext/jquery/slideshow/slideshow.js"></script>' . PHP_EOL; $add_scripts .= ' <script type="text/javascript"> $(document).ready(function() { var slideshow_tabs = new Slideshow({ align: \'' . MODULE_CONTENT_HEADER_CAROUSEL_ALIGN . '\', id: \'rotator2\', autoplay: ' . MODULE_CONTENT_HEADER_CAROUSEL_AUTOPLAY . ', autoplay_start_delay: ' . MODULE_CONTENT_HEADER_CAROUSEL_START_DELAY . ', displayTime: ' . MODULE_CONTENT_HEADER_CAROUSEL_HOLD_TIME . ', transition_delay: ' . MODULE_CONTENT_HEADER_CAROUSEL_TRANSITION_TIME . ', easing: \'' . MODULE_CONTENT_HEADER_CAROUSEL_EASING . '\', loop: ' . MODULE_CONTENT_HEADER_CAROUSEL_LOOP . ', loader_image: \'images/slideshow/loader.gif\' }); }); </script>' . PHP_EOL; $oscTemplate->addBlock($add_scripts, 'footer_scripts'); } }// End class //////////////////////////////////////////////////////////////////////////// // // // This is the end of the module class. // // Everything past this point is an independent function, not a method. // // // //////////////////////////////////////////////////////////////////////////// //// // Function to show a disabled entry (Value is shown but cannot be changed) if (!function_exists('tep_cfg_disabled')) { function tep_cfg_disabled($value) { return tep_draw_input_field('configuration_value', $value, ' disabled'); } } //// // Generate a pulldown menu of the available easing methods if (!function_exists('tep_cfg_pull_down_easing_list')) { function tep_cfg_pull_down_easing_list( $easing_type, $key = '' ) { $easing_array = array(); $easing_array[] = array('id'=>'linear','text'=>'linear'); $easing_array[] = array('id'=>'swing','text'=>'swing'); $easing_array[] = array('id'=>'jswing','text'=>'jswing'); $easing_array[] = array('id'=>'easeInQuad','text'=>'easeInQuad'); $easing_array[] = array('id'=>'easeInCubic','text'=>'easeInCubic'); $easing_array[] = array('id'=>'easeInQuart','text'=>'easeInQuart'); $easing_array[] = array('id'=>'easeInQuint','text'=>'easeInQuint'); $easing_array[] = array('id'=>'easeInSine','text'=>'easeInSine'); $easing_array[] = array('id'=>'easeInExpo','text'=>'easeInExpo'); $easing_array[] = array('id'=>'easeInCirc','text'=>'easeInCirc'); $easing_array[] = array('id'=>'easeInElastic','text'=>'easeInElastic'); $easing_array[] = array('id'=>'easeInBack','text'=>'easeInBack'); $easing_array[] = array('id'=>'easeInBounce','text'=>'easeInBounce'); $easing_array[] = array('id'=>'easeOutQuad','text'=>'easeOutQuad'); $easing_array[] = array('id'=>'easeOutCubic','text'=>'easeOutCubic'); $easing_array[] = array('id'=>'easeOutQuart','text'=>'easeOutQuart'); $easing_array[] = array('id'=>'easeOutQuint','text'=>'easeOutQuint'); $easing_array[] = array('id'=>'easeOutSine','text'=>'easeOutSine'); $easing_array[] = array('id'=>'easeOutExpo','text'=>'easeOutExpo'); $easing_array[] = array('id'=>'easeOutCirc','text'=>'easeOutCirc'); $easing_array[] = array('id'=>'easeOutElastic','text'=>'easeOutElastic'); $easing_array[] = array('id'=>'easeOutBack','text'=>'easeOutBack'); $easing_array[] = array('id'=>'easeInOutQuad','text'=>'easeInOutQuad'); $easing_array[] = array('id'=>'easeInOutCubic','text'=>'easeInOutCubic'); $easing_array[] = array('id'=>'easeInOutQuart','text'=>'easeInOutQuart'); $easing_array[] = array('id'=>'easeInOutQuint','text'=>'easeInOutQuint'); $easing_array[] = array('id'=>'easeInOutSine','text'=>'easeInOutSine'); $easing_array[] = array('id'=>'easeInOutCirc','text'=>'easeInOutCirc'); $easing_array[] = array('id'=>'easeInOutCirc','text'=>'easeInOutCirc'); $easing_array[] = array('id'=>'easeInOutElastic','text'=>'easeInOutElastic'); $easing_array[] = array('id'=>'easeInOutBack','text'=>'easeInOutBack'); $easing_array[] = array('id'=>'easeInOutBounce','text'=>'easeInOutBounce'); return tep_draw_pull_down_menu( 'configuration_value', $easing_array, $easing_type ); } }
  4. Hello, I started to adapt Product Specification to work with Oscommerce BS, Can i post the code here?
  5. Hello, i'm try to install product specification in a fresh install os OScommerce Bootstrap, it's working with few changes in Firefox (38.0.5) , Opera (30.0) but not in Internet Explorer (11.0), test site is at this address enoprova.altervista.org Any help is appreciate Marco
  6. Hello, I installed this addons http://addons.oscommerce.com/info/9013about Europe confidentialities cookie law. Can someone help me to install this addons also in my mobile store? thanks Marco
  7. Hi Bill @@phi148 , I appreciate, if you share the modification needed for MVS in mobile checkout_process.php and checkout_confirmation.php here or via PM Thanks Marco
  8. Thanks Jim, it's working. when finished i'll post the code in the support forum for mobile Best regards Marco
  9. hello, i'll try change the filter in includes/modules/ that goes in page content, that at the moment is orizontal. My oscommerce is 2.3.4
  10. Good morning, i'm using Product specification in my Desktop store but i'd like to use also in my mobile store. The product filter is orizontal and i need to have it in vertical to use in mobile but i don't understand which file i need to modify. I tried with modules/product_filter but doesn't work Can you help me? Thanks Marco
  11. Thanks Rainer, Now my MVS is working in my mobile OSCommerce 2.3.4 these are the modified files mobile/checkout_shipping.php checkout_shipping.php mobile/checkout_payment.php checkout_payment.php and includes/modules/vendor_shipping.php vendor_shipping.php
  12. I installed osc mobile in My oscommerce 2.3.4 with many addons, I try to install MVS (multi vendor System) in Mobile These files are modified to work under mobile. mobile/checkout_shipping.php checkout_shipping.php and includes/modules/vendor_shipping.php vendor_shipping.php NOTE: I'm NOT a programmer but could be a good starting point to implement MVS Mobile Little problem to make Radio Button mobile in this part // Start Javascript patch if ( ($checked == true) || ($n == 1 && $n2 == 1) ) { echo ' <tr id="defaultSelected_' . $vendor_id . '_' . $radio_buttons . '" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ', ' . $vendor_id .')">' . "\n"; } else { echo ' <tr id="defaultSelected_' . $vendor_id . '_' . $radio_buttons . '" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ', ' . $vendor_id . ')">' . "\n"; } // End Javascript patch
  13. Hi Rainer, I found in your instruction to update to 7.5.8 r1 2. CATALOG /index.php Add redirect to mobile when mobilesession is registered, missed modification in 7.5.8 instructions. Find: require('includes/application_top.php'); Replace with: // redirect them to the mobile page if they come from mobile if ( tep_session_is_registered('mobilesession') && !isset($_GET['MredirectCancelled']) && ('MredirectCancelled' != 'true') ) tep_redirect($mobile_url, 'redirectCancelled=true'); I Think it's not Replace but Add Below (same in instal osc 2.3.x point 18) Thanks for your help, now my site work also in Mobile !! :thumbsup: Marco
  14. in my oscommerce 2.3.4 I installed QPBPP, i'm trying to modify this add to work in mobile site and I need to detect when the site is in mobile, i tried if(isset($_GET['redirectCancelled']) && $_GET['redirectCancelled'] == 'true') { ........ } else { but not always is possible to use this code, can you help me? When is finish i'll post all the code for thsi add happy Easter to all Marco
  15. i debug my website with firebug and received this message <div class="errorMsg">This mobile web shop requires Javascript. Please enable Javascript in your browser or change the view:<br><a rel="external" href="http://mysite.com/product_info.php?products_id=121&amp;MredirectCancelled=true">CLASSIC View</a></div> Any help is appreciate Marco
  16. Hello yes, I followed the instruction in support 4.4 mosc 7.5.x about Ultimate Seo Url Standar until the point 2D my mobile store is www.mysite.com/mobile (subdirectory) thanks
  17. Hi Jim, i'm using product specification in my 2.3.4 store, but i'm interesting to migrate to 2.3.4 BS do you know if this add is possiblw to install in 2.3.4BS? Thanks Marco
  18. Hi Rainer, thanks for your help with images. My Oscommerce is with ultimate seo url by frw Media and all is working fine in desktop, but in mobile all the product page are redirect to index. I tried to install, ultimate seo url and ioscmobile in fresh 2.3.4 oscommerce and i have the same problem, I read all your instruction but i don't understand the problem. feel free to visit my website. Any help is appreciate Marco
  19. hi, my DIR_WS_IMAGES before define('DIR_WS_IMAGES', 'images/'); and after installed mobile (defined('MOBILE_SESSION') ? define('DIR_WS_IMAGES', ((getenv('HTTPS') == 'on')? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_HTTP_CATALOG) . 'images/') : define('DIR_WS_IMAGES', 'images/')); I installed CATALOG/MOBILE/ at the moment is in local under xampp thanks Marco
  20. Hello, i'll try to install mobile version in mi modified oscommerce 2.3.4 (php 5.5) the problem is that i can't show images (THIS IMAGE FAILED TO LOAD) I don't have addons about images installed, colud you help me, where i need to check to understand the problem product_info.php si modificated with Multi Vendor System and Product Specification, but I don't think they create problems, Any helo is appreciate Marco
  21. Hello, solved my error, just reset the usu cache :blush: Marco
  22. Hello, I'm using this contribution in heavy modified store version 2.3.4 in php 5.3 and all is fine, i'd like to upgrade php at 5.4 or better 5.5 I tried the solution posted by @@acidvertigo here http://www.oscommerce.com/forums/topic/336702-ultimate-seo-urls-5-by-fwr-media/page-183 but I received these messages Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: usu_cache in C:\xampp\.........\includes\modules\ultimate_seo_urls5\main\usu5.php on line 308 Fatal error: Call to a member function fetchArray() on a non-object in C:\xampp\......\includes\modules\ultimate_seo_urls5\main\usu5.php on line 309 there's someone that solve these problems? thanks a lot Marco
  23. I installed the Oscaffiliate 2.3 in my store (vers 2.3.4) I can't show the banner pic. I think the problem is the right configuration in affiliate_configure.php define('AFFILIATE_KIND_OF_BANNERS','2'); // 1 Direct Link to Banner ; no counting of how much banners are shown // 2 Banners are shown with affiliate_show_banner.php; bannerviews are counted (recommended) define('AFFILIATE_SHOW_BANNERS_DEBUG', 'false'); // Debug for affiliate_show_banner.php; If you have difficulties geting banners set to true, // and try to load the banner in a new Browserwindow // i.e.: http://yourdomain.com/affiliate_show_banner.php?ref=3569&affiliate_banner_id=3 define('AFFILIATE_SHOW_BANNERS_DEFAULT_PIC', ''); // absolute path to default pic for affiliate_show_banner.php, which is showed if no banner is found // Only works with AFFILIATE_KIND_OF_BANNERS=2 Can someone help me to solve the problem? thanks Marco
  24. Hello, Is it possible to set minimum order quantity for each vendors? In My store I sell wine and some vendors want to sell min 6 bottles or multiple. Any help is appreciate
  25. This is the code of vendor_order_data.php <?php /* $Id: vendor_order_data.php V1.1 By Craig Garrison Sr. ([email protected]) for Multi-Vendor Shipping for MVS V1.0 2006/03/25 JCK/CWG $Loc: /catalog/includes/ $ $Mod: MVS V1.2 2009/02/28 JCK/CWG $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2006 osCommerce Released under the GNU General Public License */ //prende i dati dal link if (isset ($_GET['order_id']) && $_GET['order_id'] != '') { $order_id = (int) $_GET['order_id']; } $index2 = 0; //let's get the Vendors $vendor_data_query = tep_db_query("select orders_shipping_id, orders_id, vendors_id, vendors_name, shipping_module, shipping_method, shipping_cost from " . TABLE_ORDERS_SHIPPING . " where orders_id = '" . (int) $order_id . "'"); while ($vendor_order = tep_db_fetch_array($vendor_data_query)) { $these_products[$index2] = array ( 'Vid' => $vendor_order['vendors_id'], 'Vname' => $vendor_order['vendors_name'], 'Vmodule' => $vendor_order['shipping_module'], 'Vmethod' => $vendor_order['shipping_method'], 'Vcost' => $vendor_order['shipping_cost'], 'Vnoname' => 'Shipper', 'spacer' => '-' ); $index = 0; $orders_products_query = tep_db_query("select orders_products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price, vendors_id from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int) $order_id . "' and vendors_id = '" . (int) $vendor_order['vendors_id'] . "'"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $these_products[$index2]['orders_products'][$index] = array ( 'qty' => $orders_products['products_quantity'], 'name' => $orders_products['products_name'], 'tax' => $orders_products['products_tax'], 'model' => $orders_products['products_model'], 'price' => $orders_products['products_price'], 'vendor_name' => $orders_products['vendors_name'], 'vendor_ship' => $orders_products['shipping_module'], 'shipping_method' => $orders_products['shipping_method'], 'shipping_cost' => $orders_products['shipping_cost'], 'final_price' => $orders_products['final_price'], 'spacer' => '-' ); $subindex = 0; $attributes_query = tep_db_query("select products_options, products_options_values, options_values_price, price_prefix from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int) $order_id . "' and orders_products_id = '" . (int) $orders_products['orders_products_id'] . "'"); if (tep_db_num_rows($attributes_query)) { while ($attributes = tep_db_fetch_array($attributes_query)) { $these_products[$index2]['orders_products'][$index]['attributes'][$subindex] = array ( 'option' => $attributes['products_options'], 'value' => $attributes['products_options_values'], 'prefix' => $attributes['price_prefix'], 'price' => $attributes['options_values_price'] ); $subindex++; } } $index++; } $index2++; } // let's build the email confirmation without html $package_num = sizeof($these_products); $box_num = $l +1; $products_ordered .= 'There will be at least ' . $package_num . ' packages shipped.' . "\n\t"; for ($l = 0, $m = sizeof($these_products); $l < $m; $l++) { $products_ordered .= "\n" . 'Shipment Number ' . $box_num++ . ' ' . $these_products[$l]['spacer'] . ' ' . $these_products[$l]['Vmodule'] . ' ' . $these_products[$l]['spacer'] . ' ' . $these_products[$l]['Vmethod'] . ' ' . $these_products[$l]['spacer'] . ' ' . $these_products[$l]['Vcost'] . "\n\t"; for ($i = 0, $n = sizeof($these_products[$l]['orders_products']); $i < $n; $i++) { $products_ordered .= "\n\t" . $these_products[$l]['orders_products'][$i]['qty'] . ' x ' . ' ' . $these_products[$l]['orders_products'][$i]['name'] . ' ' . $these_products[$l]['spacer'] . ' ' . $these_products[$l]['orders_products'][$i]['model'] . "\n\t"; if (isset ($these_products[$l]['orders_products'][$i]['attributes']) && (sizeof($these_products[$l]['orders_products'][$i]['attributes']) > 0)) { for ($j = 0, $k = sizeof($these_products[$l]['orders_products'][$i]['attributes']); $j < $k; $j++) { $products_ordered .= "\n\t" . 'Options Selected - ' . $these_products[$l]['orders_products'][$i]['attributes'][$j]['option'] . ': ' . $these_products[$l]['orders_products'][$i]['attributes'][$j]['value']; if ($these_products[$l]['orders_products'][$i]['attributes'][$j]['price'] != '0') $products_ordered .= ' (' . $these_products[$l]['orders_products'][$i]['attributes'][$j]['prefix'] . $currencies->format($these_products[$l]['orders_products'][$i]['attributes'][$j]['price'] * $these_products[$l]['orders_products'][$i]['qty'], true, $these_info['currency'], $these_info['currency_value']) . ')' . "\n\t"; } } $products_ordered .= "\n\t" . 'Tax ' . tep_display_tax_value($these_products[$l]['orders_products'][$i]['tax']) . '% ' . "\n\t" . 'Price Per Item - ' . $currencies->format($these_products[$l]['orders_products'][$i]['final_price'], true, $these_info['currency'], $these_info['currency_value']) . "\n\t" . 'Total Without Tax - ' . $currencies->format($these_products[$l]['orders_products'][$i]['final_price'] * $these_products[$l]['orders_products'][$i]['qty'], true, $these_info['currency'], $these_info['currency_value']) . "\n\t" . 'Total Including Tax - ' . $currencies->format(tep_add_tax($these_products[$l]['orders_products'][$i]['final_price'], $these_products[$l]['orders_products'][$i]['tax']) * $these_products[$l]['orders_products'][$i]['qty'], true, $these_info['currency'], $these_info['currency_value']) . "\n\t"; } } ?>
×
×
  • Create New...