Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

AlainBensimon

Pioneers
  • Posts

    23
  • Joined

  • Last visited

Posts posted by AlainBensimon

  1. Hi,

    I installed the contribution as described, and I have a few problems.

     

    1. At the step 13, I found only one instance of include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); instead of two I was supposed to.

    2. I didn't understand the step 14, I don't have the option "column box" in admin/modules/boxes.

    3. The featured appears in "configuration", but not in "catalog". Instead, I have " BOX_CATALOG_FEATURED_PRODUCTS ", and when I click on it, I get this:

     

    "1146 - La table 'lejoaillier.table_featured' n'existe pas (means don't exist).

     

    select count(*) as total from products p, TABLE_FEATURED s, products_description pd where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = s.products_id"

     

    Thank you for your help.

  2. I found what was not working.

    In the file you put this:

     

    3) In includes/modules/boxes/bm_information.php

     

    REPLACE

     

    ' <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>'

     

    with

     

    ' <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a><br>' .

    ' <a href="' . tep_href_link(FILENAME_EASYMAP) . '">' . MODULE_BOXES_INFORMATION_EASYMAP . '</a>'

     

    a dot is missing at the end of the last sentence.

    Now it's working.

  3. Hello,

    I installed everything as described on my oscommerce 2.3.1.

    ans after that, when I go on the site, I get this message:

    ( ! ) Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Users\Alain\Documents\Weblocal\lejoaillier\includes\modules\boxes\bm_information.php on line 51.

    This is the line 51: ' </div>' .

    Here is the code I have in that file:

     

    <?php
    /*
     $Id$
     adapted for Information Pages Unlimited v2.05
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2010 osCommerce
    
     Released under the GNU General Public License
    */
    
     class bm_information {
       var $code = 'bm_information';
       var $group = 'boxes';
       var $title;
       var $description;
       var $sort_order;
       var $enabled = false;
    
       function bm_information() {
         $this->title = MODULE_BOXES_INFORMATION_TITLE;
         $this->description = MODULE_BOXES_INFORMATION_DESCRIPTION;
    
         if ( defined('MODULE_BOXES_INFORMATION_STATUS') ) {
           $this->sort_order = MODULE_BOXES_INFORMATION_SORT_ORDER;
           $this->enabled = (MODULE_BOXES_INFORMATION_STATUS == 'True');
    
           $this->group = ((MODULE_BOXES_INFORMATION_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right');
         }
       }
    
       function execute() {
         global $oscTemplate;
    
    // BOF: Information Pages Unlimited
         require_once(DIR_WS_FUNCTIONS . 'information.php');
    // EOF: Information Pages Unlimited
    
         $data = '<div class="ui-widget infoBoxContainer">' .
                 '  <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_INFORMATION_BOX_TITLE . '</div>' .
                 '  <div class="ui-widget-content infoBoxContents">' .
                      tep_information_show_category(1) .
    //              '    <a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a><br />' .
    //              '    <a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a><br />' .
    //              '    <a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . MODULE_BOXES_INFORMATION_BOX_CONDITIONS . '</a><br />' .
                 '    <a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_ABOUT_US . '</a><br />' .
    	      '    <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a><br>' .
                 '    <a href="' . tep_href_link(FILENAME_EASYMAP) . '">' . MODULE_BOXES_INFORMATION_EASYMAP . '</a>' 
                 '  </div>' .
                 '</div>';
    
         $oscTemplate->addBlock($data, $this->group);
       }
    
       function isEnabled() {
         return $this->enabled;
       }
    
       function check() {
         return defined('MODULE_BOXES_INFORMATION_STATUS');
       }
    
       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 ('Enable Information Module', 'MODULE_BOXES_INFORMATION_STATUS', 'True', 'Do you want to add the module to your shop?', '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, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_INFORMATION_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', 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_BOXES_INFORMATION_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
       }
    
       function remove() {
         tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
       }
    
       function keys() {
         return array('MODULE_BOXES_INFORMATION_STATUS', 'MODULE_BOXES_INFORMATION_CONTENT_PLACEMENT', 'MODULE_BOXES_INFORMATION_SORT_ORDER');
       }
     }
    ?>
    

     

    Thank you.

  4. Hello,

    I'm look for a contribution, or a way to edit pages and add informations.

    Example: I would like to add Store name, adress and opening hours in the contact page.

    I would like to be able to be able to edit it trough the admin.

    Important, I have oscommerce 2.3.1.

     

    Thanks a lot for any advice.

×
×
  • Create New...