Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

theoverer

Members
  • Content count

    8
  • Joined

  • Last visited

  1. theoverer

    Automatically send data feed to Froogle

    Hi, at first I think i should excuse me for my bad english. So and here is my problem: I installed the Version 1.03 of this contribution. But when I created the feed-file I realized, that the fields "title" and "description" are empty. So I checked the sourcecode with my fields in the database. No Problem here, the names of the tables are the same. It seems to me, that the code wants to read out the right fields, but gets an empty string from the sql-query. The database fields are declared as the folowing: Field Type products_name varchar(128) products_description text If I let the contribution take the field products_description.products_id as name, it shows up the products_id's. S I think it is a problem with maybe the datatypes of products_description.products_name and products_description.products_description Have anyone an idea how to solve my problem? best regars Ole
  2. theoverer

    Register Globals Support

    Hello, i want to install the Multi-Stores Contribution on my register_global off webserver. So I tried to integreat this Contribution in the multi-stores Contribution. The shop itself seems to work too, but I am not able to get into the administrators area. Instead of the login page I get an error (something like a loop). I think the problem is in /catalog/admin/includes/functions/administrators.php, because when I uncomment the code in the "RequireLoginValidForPage" Function he loads the Background of the page and some text. So maybe you can say me, where the Problem is? Here is the code off this side: <?php $aADMBoxes = array ( 'configuration.php' => BOX_HEADING_CONFIGURATION, 'modules.php' => BOX_HEADING_MODULES, 'catalog.php' => BOX_HEADING_CATALOG, 'stores.php' => BOX_HEADING_STORES, 'customers.php' => BOX_HEADING_CUSTOMERS, 'orders.php' => BOX_HEADING_ORDERS, //rmh M-S_multi-stores 'taxes.php' => BOX_HEADING_LOCATION_AND_TAXES, 'localization.php' => BOX_HEADING_LOCALIZATION, 'reports.php' => BOX_HEADING_REPORTS, 'tools.php' => BOX_HEADING_TOOLS, 'administrators.php' => BOX_HEADING_ADMINISTRATORS, ); // associate all the admin pages with the box class that includes it $aADMPages = array( 'configuration.php' => 'configuration.php', 'index.php' => '*', 'categories.php' => '*', 'modules.php' => 'modules.php', 'categories.php' => 'catalog.php', 'products_price_schedules.php' => 'catalog.php', //rmh M-S_pricing 'products_attributes.php' => 'catalog.php', 'manufacturers.php' => 'catalog.php', 'reviews.php' => 'catalog.php', 'specials.php' => 'catalog.php', 'products_expected.php' => 'catalog.php', 'customers.php' => 'customers.php', 'customers_groups.php' => 'customers.php', //rmh M-S_pricing 'orders.php' => 'orders.php', //rmh M-S_multi-stores 'invoice.php' => 'orders.php', //rmh M-S_multi-stores 'packingslip.php' => 'orders.php', //rmh M-S_multi-stores 'countries.php' => 'taxes.php', 'zones.php' => 'taxes.php', 'geo_zones.php' => 'taxes.php', 'tax_classes.php' => 'taxes.php', 'tax_rates.php' => 'taxes.php', 'currencies.php' => 'localization.php', 'languages.php' => 'localization.php', 'orders_status.php' => 'localization.php', 'stats_products_viewed.php' => 'reports.php', 'stats_products_purchased.php' => 'reports.php', 'stats_customers.php' => 'reports.php', 'backup.php' => 'tools.php', 'banner_manager.php' => 'tools.php', 'banner_statistics.php' => 'tools.php', 'cache.php' => 'tools.php', 'define_language.php' => 'tools.php', 'file_manager.php' => 'tools.php', 'mail.php' => 'tools.php', 'newsletters.php' => 'tools.php', 'server_info.php' => 'tools.php', 'whos_online.php' => 'tools.php', 'administrators.php' => 'administrators.php', //rmh M-S_multi-stores 'distributors.php' => 'administrators.php', //rmh M-S_multi-stores 'stores.php' => 'stores.php', //rmh M-S_multi-stores ); function RequireLoginValidForPage( $aRetPage ) { global $PHP_SELF, $in_login, $login_id, $aADMPages; $aThisPage = basename( $PHP_SELF ); $aRetPage = str_replace( $aThisPage, 'index.php', $aRetPage ); if ( empty( $in_login ) ) { if ( !tep_session_is_registered( 'login_id' ) ) { header( 'Location: login.php?in_login=yes&retpage=' . urlencode( $aRetPage ) . "\n" ); } else { $aSQL = "select administrators_allowed_pages from ". TABLE_ADMINISTRATORS ." where administrators_id = '". $login_id ."'"; $aRes = tep_db_query( $aSQL ); if ( $aVal = tep_db_fetch_array( $aRes ) ) { $aPages = $aVal['administrators_allowed_pages']; if ( trim( $aPages != '*' ) ) { $aAllowedPages = explode( '|', $aPages ); $aCurrentPageBox = $aADMPages[$aThisPage]; if ( $aCurrentPageBox != '*' ) { if ( !in_array( $aCurrentPageBox, $aAllowedPages ) ) { header( 'Location: login.php?' . urlencode( $aRetPage ) . "\n" ); } } } } } } } function CanShowBox( $aBoxName ) { global $login_id; $aSQL = "select administrators_allowed_pages from ". TABLE_ADMINISTRATORS ." where administrators_id = '". $login_id . "'"; $aRes = tep_db_query( $aSQL ); if ( $aVal = tep_db_fetch_array( $aRes ) ) { $aPages = $aVal['administrators_allowed_pages']; if ( trim( $aPages != '*' ) ) { $aAllowedPages = explode( '|', $aPages ); $aCurrentPageBox = $aBoxName; if ( in_array( $aCurrentPageBox, $aAllowedPages ) ) { return true; } } else { return true; } } return false; } ?> Does anybody of you know, how I can make this site with register_globals off work? Thank you from Germany (and excuse my bad english) Ole
  3. theoverer

    Multi-Stores Multiple Shops Support

    Hello, i want to install this great contribution on my webserver. The problem is, that on this server register_globals is off. For the normal osCommerce shop there is a contribution: Register Globals which fixes the problem. So I tried to integreat this one in the multi-stores Contribution. The shop itself seems to work too, but I am not able to get into the administrators area. Instead of the login page I get an error. I think the problem is in /catalog/admin/includes/functions/administrators.php, because when I uncomment the code in the "RequireLoginValidForPage" Function he loads the Background of the page and some text. So maybe the problem is the " global $PHP_SELF, $in_login, $login_id, $aADMPages;" function RequireLoginValidForPage( $aRetPage ) { global $PHP_SELF, $in_login, $login_id, $aADMPages; $aThisPage = basename( $PHP_SELF ); $aRetPage = str_replace( $aThisPage, 'index.php', $aRetPage ); if ( empty( $in_login ) ) { if ( !tep_session_is_registered( 'login_id' ) ) { header( 'Location: login.php?in_login=yes&retpage=' . urlencode( $aRetPage ) . "\n" ); } else { $aSQL = "select administrators_allowed_pages from ". TABLE_ADMINISTRATORS ." where administrators_id = '". $login_id ."'"; $aRes = tep_db_query( $aSQL ); if ( $aVal = tep_db_fetch_array( $aRes ) ) { $aPages = $aVal['administrators_allowed_pages']; if ( trim( $aPages != '*' ) ) { $aAllowedPages = explode( '|', $aPages ); $aCurrentPageBox = $aADMPages[$aThisPage]; if ( $aCurrentPageBox != '*' ) { if ( !in_array( $aCurrentPageBox, $aAllowedPages ) ) { header( 'Location: login.php?' . urlencode( $aRetPage ) . "\n" ); } } } } } } } Does anybody of you know, how I can make this site with register_globals off work? Thank you from Germany (and excuse my bad english) Ole
  4. theoverer

    Multi-Stores Multiple Shops Support

    Hello, has anybody integreated the register_globals Contribution in the multistore Contribution? Register_Globals Greetz from Germany Ole
  5. theoverer

    Multi-Stores Multiple Shops Support

    The link to the Contribution is: http://www.oscommerce.com/community/contri...ies+description
  6. theoverer

    Multi-Stores Multiple Shops Support

    Hello, this contribution is great work!!! But one thing i am missing in this: I like to have Categorys Descriptions and i found :"categories_description" in the constributions. But my problem is, that i'm not good in php, means i can only do a little (i am a german student and will learn php in a later period of my study). So I took the categories_description an worked it in my shop, as shown in the readme, an it seemed to work, but there is as expectet one thing missing. The descriptions cannot set up to a special store (logically or not?) an i don't know how to rewrite tis constributuion to handle this.... Has anybody done this before?? Or cann anybody help me? Sorry for my bad english... Greets Ole :rolleyes:
×