Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

WebDev22

Pioneers
  • Posts

    451
  • Joined

  • Last visited

Everything posted by WebDev22

  1. It appears to be fixed. I originally didn't upload the dimensional_support folder and files.
  2. I've thoroughly checked my work but cannot figure out why I'm getting two problems: 1. On the front end, after adding items to cart and logging in as a customer, I get the following error: Warning: constant() [function.constant]: Couldn't find constant UPSXML_Array in /home/[storename]/public_html/includes/modules/shipping/upsxml.php on line 983 2. In admin, after editing Modules > Shipping > United Parcel Service, I get the following error: Warning: constant() [function.constant]: Couldn't find constant UPSXML_Array in /home/[storename]/public_html/includes/modules/shipping/upsxml.php on line 1017 Can anyone point me in the right direction?
  3. We installed the UPSXML module on a site back in November then got redirected to another project for the same client. Now, well actually for the past month, we're back to developing the original project and keep getting a "Fatal error" when trying to check out (checkout_confirmation.php) when conducting a test order. I'm wondering if this might be related to the installation of the UPSXML module and if we should reinstall? It specifically states that it cannot redeclare class shipping and references includes/classes/shipping.php. Does this sound like it could be related to this module?
  4. I'm working on installing this and noticed some of the changes have already been made, probably during a previous contribution installation. However, now I've reached code that's instructing me to change code that was added by Header Tags. Very confused.
  5. I'm trying to install this contribution and ran across some instructions that don't relate to our code: 6. CHANGES TO admin/categories.php CAREFUL: These are not trivial changes. There is a lot of code here. 1) Locate the following line (approximately line 80) (image update bug repair provided in the bugs section on oscommerce.com): if ($categories_image = new upload('categories_image', DIR_FS_CATALOG_IMAGES)) { tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'"); } REPLACE those 3 lines with the following 5 lines: $categories_image = new upload('categories_image'); $categories_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($categories_image->parse() && $categories_image->save()) { tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'"); } The code in our file appears like this: if ($action == 'insert_category') { $insert_sql_data = array('categories_id' => $categories_id, 'language_id' => $languages[$i]['id']); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); tep_db_perform(TABLE_CATEGORIES_DESCRIPTION, $sql_data_array); } elseif ($action == 'update_category') { tep_db_perform(TABLE_CATEGORIES_DESCRIPTION, $sql_data_array, 'update', "categories_id = '" . (int)$categories_id . "' and language_id = '" . (int)$languages[$i]['id'] . "'"); } } $categories_image = new upload('categories_image'); $categories_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($categories_image->parse() && $categories_image->save()) { tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'"); } if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); } tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories_id)); break;
  6. I found it. It was pulling from Manufacturer.
  7. Product and Root are both selected.
  8. I noticed the Title tags, generated from the product_info.php file, repeat the name of the category a second time and also contains two hyphens: Category Name - Category Name - - Product Name I checked the product_info.php file and didn't see where anything was duplicated. <head> <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript" type="text/javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150') } //--></script> <?php // MVS Shipping Estimator Start ?> <script language="javascript" type="text/javascript"><!-- function estimatorpopupWindow(URL) { window.open(URL,'productsshippingestimator','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600') } //--></script> <?php // MVS Shipping Estimator End ?> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <?php /*** Begin Header Tags SEO ***/ ?> <a name="<?php echo $header_tags_array['title']; ?>"></a> <?php /*** End Header Tags SEO ***/ ?> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //-->
  9. I ran the test and received the following message: Duplicate meta description found: for English exists more than once. I checked the source code (view source) and didn't see a duplicate meta description.
  10. Never mind. All this time it was the code used in the description for several of the items.
  11. Will do. Where can I find the test section?
  12. I've been troubleshooting an issue for several hours where the column_right boxes (Shopping Cart, Manufacturer Info, etc.) are all appearing at the bottom of the page directly underneath the left column items. This is somehow related to adding Header Tags SEO, but I know it's something I've done wrong... not the actual code. Here's the page: http://www.wolfftanning.com/product_info.php?products_id=270. Any ideas?
  13. Thanks for clarifying. It appears our store is neither STS or BTS since our structure is catalog > includes.
  14. I'm installing the Header Tags SEO contribution and see a reference to STS USERS ONLY and BTS USERS ONLY. How can I tell which is applicable to our installation?
  15. I'm getting the same message after deleting a bunch of code that was hacked onto the site. Did this solution work for you?
  16. Is there a thread that discusses how a site can get compromised. For starters, we're changing the passwords for cPanel, FTP, and Admin. Is it possible emails containing passwords can get intercepted? Should we communicate this information another way?
  17. Here's what I have: $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { // {{ buySAFE Module case 'buysafe_save': if ( ( $HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA'] == '' || $HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA'] == '-- none --' ) && ( $HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_STORE_AUTHENTICATION_DATA'] == '' || $HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_STORE_AUTHENTICATION_DATA'] == '-- none --' ) ) { $seal_data = tep_db_fetch_array(tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA'")); $store_data = tep_db_fetch_array(tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_BUYSAFE_BUYSAFE_STORE_AUTHENTICATION_DATA'")); $HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA'] = $seal_data['configuration_value']; $HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_STORE_AUTHENTICATION_DATA'] = $store_data['configuration_value']; } if (strlen($HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_SEAL_AUTHENTICATION_DATA']) != 88) { $messageStack->add('Data entry error: Invalid seal authentication data. Please fix the input data and try again.', 'error'); $action = 'buysafe_edit'; } if (strlen($HTTP_POST_VARS['configuration']['MODULE_BUYSAFE_BUYSAFE_STORE_AUTHENTICATION_DATA']) != 36) { $messageStack->add('Data entry error: Invalid store authentication data. Please fix the input data and try again.', 'error'); $action = 'buysafe_edit'; } if ($HTTP_POST_VARS['test_authentication'] == '1') { $action = 'buysafe_edit'; } if ($action == 'buysafe_edit') break; // }} case 'save': while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { if (is_array($value) ) { $value = implode( ", ", $value); $value = ereg_replace (", --none--", "", $value); tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); break; case 'install': case 'remove': $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $class = basename($HTTP_GET_VARS['module']); if (file_exists($module_directory . $class . $file_extension)) { include($module_directory . $class . $file_extension); $module = new $class; if ($action == 'install') { $module->install(); } elseif ($action == 'remove') { $module->remove(); } } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class)); break; } } ?>
  18. I just went through steps 1 through 3 on the UPSXML install.txt file (UPS XML Rates v1.3.6 for osCommerce 2.2 MS2 RC2a 2009/07/18 ) and am getting the following error when I try to proceed to step 4: Parse error: syntax error, unexpected T_CASE in /home/tanningl/public_html/admin/modules.php on line 93.
  19. I have analyzed all the steps and can't determine where I made a mistake. Part of the problem might be trying to implement all the changes in the admin/categories.php file, which had already been edited with a shipping module contribution.
  20. I just installed this on a v2.2 RC2a store and am going through all the documentation and features. In the zip file, there are a couple of screenshots that I can't seem to locate in our Admin: Admin_HeaderTags_SEO_FillTags.jpg and Admin_HeaderTags_SEO_PageControl.jpg. I checked my work to see if I missed a step but cannot find the solution. Any ideas?
  21. That helped. I forgot to upload the gss.xsl file. Thanks.
  22. I am on install number two for the evening and have run into a problem: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML documen... Here's the URL: http://tanninglampstore.com/sitemapindex.xml. Any ideas?
  23. Here are the first and only four lines of the test CSV I created. When I import the file, everything gets imported except for the six custom fields: v_products_model,v_products_length,v_products_end,v_products_wattage,v_ products_reflector,v_products_uvb,v_products_rated,v_categories_name_1_1,v_catego ries_name_1_2,v_products_name_1,v_products_price,v_products_weight,eoreor test0004a,F73,RDC,120,N,5.5,1200,Radiance Lamps,Radiance Test,Radiance Test Product 004,16.95,1,eoreor test0005a,F71,BP,100,N,3.0,1200,Radiance Lamps,Radiance Test,Radiance Test Product 005,14.95,1,eoreor test0006a,F59,BP,80,N,5.0,1200,Radiance Lamps,Radiance Test,Radiance Test Product 006,14.95,1,eoreor Here is the modified code from easypopulate.php: // $custom_fields[TABLE_PRODUCTS] = array(); // this line is used if you have no custom fields to import/export $custom_fields[TABLE_PRODUCTS] = array( 'products_length' => 'Length', 'products_end' => 'End', 'products_wattage' => 'Wattage', 'products_reflector' => 'Reflector', 'products_uvb' => 'UVB', 'products_rated' => 'Rated' ); $custom_fields[TABLE_PRODUCTS_DESCRIPTION] = array(); // this line is used if you have no custom fields to import/export Here's the link to the site: www.tanninglampstore.com. It's still under development.
×
×
  • Create New...