Jump to content

andresull

Members
  • Content count

    32
  • Joined

  • Last visited

Everything posted by andresull

  1. andresull

    addon Products data

    There's a kind of mistake, if you use the first version it works loading a products txt without columms, needs something more to be useful. Regards, Andres
  2. andresull

    [Addon} Theme Switcher

    Thanks Jim for this Addon ! As far as I can see everything works fine but I got a lot of warnings on the Admin side: Warning: Illegal string offset 'id' in C:\Program Files\EasyPHP-12.1\www\Nueva carpeta\oscommerce-2.3.3\catalog\includes\modules\header_tags\ht_theme_switcher.php on line 159 Warning: Illegal string offset 'id' in C:\Program Files\EasyPHP-12.1\www\Nueva carpeta\oscommerce-2.3.3\catalog\includes\modules\header_tags\ht_theme_switcher.php on line 186 What should I do? Thanks and regards, Andres
  3. andresull

    [Addon} Theme Switcher

    Solved !! I went to header.php and took away "-header infoBoxHeading" from line 39: 38 <div class="grid_24 ui-widget infoBoxContainer"> 39 <div class="ui-widget -header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div> 40 </div> and now it looks like this: 38 <div class="grid_24 ui-widget infoBoxContainer"> 39 <div class="ui-widget"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div> 40 </div> Thanks and regards, Andres
  4. andresull

    [Addon} Theme Switcher

    Thanks Jim, I would like to change the color ONLY for the breadcrumb, actually whithout any color. When I make color changes all BoxHeadings change their color together, including the breadcrumb ! Regards, Andres
  5. andresull

    [Addon} Theme Switcher

    How can I change the background color of the breadcrumb? Thanks and regards, Andres
  6. I went through almost all the thread before posting, this addon would not work with a http://127.0.0.1/osc... ? Regards, Andres
  7. I have installed Ultimate Seo Urls v22d_7 in locale in a clean OsC-2.2rc2a/catalog and I get a splendid 404 error i.e. with this url http://127.0.0.1/oscommerce-2.2rc2a/catalog/matrox-g200-p-1.html or http://127.0.0.1/oscommerce-2.2rc2a/catalog/software-c-2.html What am I doing wrong ? Tks and regards, Andres
  8. I would like to use this contribution "Max total amount for cart" http://addons.oscommerce.com/info/3755 but I'm not sure how to update it to fit v2.2 RC 1 or 2. Thanks in advance, Andres Ullmann (Argentina) Installation instruction for Max Amount in Cart add-On 1) in catalog/shopping_cart.php before: if ($cart->count_contents() > 0) { add: <?php if ($messageStack->size('shopping_cart') > 0) { ?> <tr> <td><?php echo $messageStack->output('shopping_cart'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } -------------------------- 2) in catalog/includes/languages/[lang]/shopping_cart.php (where [lang] defines your language definition) add: define('TOTAL_AMMOUNT_IN_CART_ERROR', 'You have reached the maximum amount athorised by the shop owner. Please contact us for greater orders.'); -------------------------- 3) in catalog/includes/classes/shopping_cart.php Afer: function add_cart($products_id, $qty = '1', $attributes = '', $notify = true) { global $new_products_id_in_cart, $customer_id; $products_id_string = tep_get_uprid($products_id, $attributes); $products_id = tep_get_prid($products_id_string); add: // Max Amount in Cart $this->calculate(); if ($this->total < MAX_TOTAL_IN_CART || $quantity < $this->get_quantity($products_id)) { at the end of function (before last "}"), add: //Max Amount in Cart } --------------------------- 4) And do the same for function update_quantity(). --------------------------- 5) In Database, add folowing line: INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` ) VALUES ( '', 'Maximum Total Price in Cart', 'MAX_TOTAL_IN_CART', '10000', 'Define the max total price in cart. If reached, it will display an error', '3', '19', NULL , '0000-00-00 00:00:00', NULL , NULL ); In case of problem, please contact me. osc@ghweb.ch GHWEB Informatique Gaëtan Hermann
  9. andresull

    Purchase Limiter

    Hello Jack, there is a contribution named "Minimun or Maximum Amount to Enable CC Payments" http://addons.oscommerce.com/info/3450 and it works for one payment module too, I was trying to install it in another module whithout success ¿any news with purchase limiter's update? Regards, Andres Ullmann from Argentina
  10. What I need is to get a "short description" from product_description, to show it when using a search, benneath each title. This works fine with Header Tags Controller + Kurzschreibung + Fill_tags but it doesn't work when using HTC + Kurzschreibung + Header Tags Fill Tags from Admin, as far as I understand because HTFT only "gets the category or product name", does nothing with product_description. ?How could I ask HTFT to get product_description too? Regards, Andres
  11. I understand what you mean Jack, but you are saying "gets the category or product name" ?what about product description? Regards, Andres
  12. This the code I have for fill_tags.php <?php /* $Id: links_setup.php,v 1.00 2003/10/02 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $nameContribution = 'Header Tags Controller'; $stage_one_query_raw = "select products_name, products_description, products_id, language_id from products_description"; $stage_one_query = tep_db_query($stage_one_query_raw); while ($stage_one = tep_db_fetch_array($stage_one_query)) { tep_db_query("update products_description set products_head_title_tag='".addslashes($stage_one['products_name'])."', products_head_desc_tag = '". addslashes(strip_tags($stage_one['products_description']))."', products_head_keywords_tag = '" . addslashes($stage_one['products_name']) . "' where products_id = '" . $stage_one['products_id'] . "' and language_id='".$stage_one['language_id']."'"); } $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $categories_query_raw = "select categories_id, categories_name, language_id from categories_description where language_id='". (int)$languages[$i]['id']."'"; $categories_query = tep_db_query($categories_query_raw); if (tep_db_num_rows( $categories_query) > 0) { while ($categories = tep_db_fetch_array($categories_query)) { tep_db_query("update categories_description set categories_htc_title_tag='".addslashes($categories['categories_name'])."', categories_htc_desc_tag = '". addslashes($categories['categories_name'])."', categories_htc_keywords_tag = '". addslashes($categories['categories_name']) . "' where categories_id = '" . $categories['categories_id']."'"); } } } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table class="okvir" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo $nameContribution . ' Fill Tags Setup'; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"> <?php if ($db_error == false) { echo $nameContribution . ' tags successfully updated!!!'; } else { echo 'Error encountered during ' . $nameContribution . ' database update.'; } ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '20'); ?></td> </tr> <tr> <td><a target="_blank" href="http://www.oscommerce-solution.com"> Prepared by osCommerce-Solution.com</a></td> </tr> </table></td> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> and this is Header_tags_fill_tags.php <?php /* $Id: header_tags_fill_tags.php,v 1.0 2005/08/25 Originally Created by: Jack York - http://www.oscommerce-solution.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_HEADER_TAGS_CONTROLLER); /****************** READ IN FORM DATA ******************/ $categories_fill = $_POST['group1']; $products_fill = $_POST['group2']; $checkedCats = array(); $checkedProds = array(); $languages = tep_get_languages(); $languages_array = array(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $languages_array[] = array('id' => $i + 1, //$languages[$i]['id'], 'text' => $languages[$i]['name']); } $langID = $languages_id; /****************** FILL THE CATEGORIES ******************/ if (isset($categories_fill)) { $langID = $_POST['fill_language']; if ($categories_fill == 'none') { $checkedCats['none'] = 'Checked'; } else { $categories_tags_query = tep_db_query("select categories_name, categories_id, categories_htc_title_tag, categories_htc_desc_tag, categories_htc_keywords_tag, language_id from categories_description where language_id = '" . $langID . "'"); while ($categories_tags = tep_db_fetch_array($categories_tags_query)) { $updateDP = false; if ($categories_fill == 'empty') { if (! tep_not_null($categories_tags['categories_htc_title_tag'])) $updateDB = true; $checkedCats['empty'] = 'Checked'; } else if ($categories_fill == 'full') { $updateDB = true; $checkedCats['full'] = 'Checked'; } else //assume clear all { tep_db_query("update categories_description set categories_htc_title_tag='', categories_htc_desc_tag = '', categories_htc_keywords_tag = '' where categories_id = '" . $categories_tags['categories_id']."' and language_id = '" . $langID . "'"); $checkedCats['clear'] = 'Checked'; } if ($updateDB) tep_db_query("update categories_description set categories_htc_title_tag='".addslashes($categories_tags['categories_name'])."', categories_htc_desc_tag = '". addslashes($categories_tags['categories_name'])."', categories_htc_keywords_tag = '". addslashes($categories_tags['categories_name']) . "' where categories_id = '" . $categories_tags['categories_id']."' and language_id = '" . $langID . "'"); } } } else $checkedCats['none'] = 'Checked'; /****************** FILL THE PRODUCTS ******************/ if (isset($products_fill)) { $langID = $_POST['fill_language']; if ($products_fill == 'none') { $checkedProds['none'] = 'Checked'; } else { $products_tags_query = tep_db_query("select products_name, products_description, products_id, products_head_title_tag, products_head_desc_tag, products_head_keywords_tag, language_id from " . TABLE_PRODUCTS_DESCRIPTION . " where language_id = '" . $langID . "'"); while ($products_tags = tep_db_fetch_array($products_tags_query)) { $updateDP = false; if ($products_fill == 'empty') { if (! tep_not_null($products_tags['products_head_title_tag'])) $updateDB = true; $checkedProds['empty'] = 'Checked'; } else if ($products_fill == 'full') { $updateDB = true; $checkedProds['full'] = 'Checked'; } else //assume clear all { tep_db_query("update products_description set products_head_title_tag='', products_head_desc_tag = '', products_head_keywords_tag = '' where products_id = '" . $products_tags['products_id'] . "' and language_id='". $langID ."'"); $checkedProds['clear'] = 'Checked'; } if ($updateDB) tep_db_query("update products_description set products_head_title_tag='".addslashes($products_tags['products_name'])."', products_head_desc_tag = '". addslashes(strip_tags($products_tags['products_name']))."', products_head_keywords_tag = '" . addslashes($products_tags['products_name']) . "' where products_id = '" . $products_tags['products_id'] . "' and language_id='". $langID ."'"); } } } else $checkedProds['none'] = 'Checked'; ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <style type="text/css"> td.HTC_Head {color: sienna; font-size: 24px; font-weight: bold; } td.HTC_subHead {color: sienna; font-size: 14px; } </style> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="HTC_Head"><?php echo HEADING_TITLE_FILL_TAGS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="HTC_subHead"><?php echo TEXT_FILL_TAGS; ?></td> </tr> <!-- Begin of Header Tags --> <tr> <td align="right"><?php echo tep_draw_form('header_tags', FILENAME_HEADER_TAGS_FILL_TAGS, '', 'post') . tep_draw_hidden_field('action', 'process'); ?></td> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main" ><?php echo 'Language' . ' '. tep_draw_pull_down_menu('fill_language', $languages_array, $langID);?></tr> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="40%"> <tr class="smallText"> <th>CATEGORIES</th> <th>PRODUCTS</th> </tr> <tr class="smallText"> <td align=left><INPUT TYPE="radio" NAME="group1" VALUE="none" <?php echo $checkedCats['none']; ?>> Skip all tags</td> <td align=left><INPUT TYPE="radio" NAME="group2" VALUE="none" <?php echo $checkedProds['none']; ?>> Skip all tags</td> </tr> <tr class="smallText"> <td align=left><INPUT TYPE="radio" NAME="group1" VALUE="empty"<?php echo $checkedCats['empty']; ?> > Fill only empty tags</td> <td align=left><INPUT TYPE="radio" NAME="group2" VALUE="empty" <?php echo $checkedProds['empty']; ?>> Fill only empty tags</td> </tr> <tr class="smallText"> <td align=left><INPUT TYPE="radio" NAME="group1" VALUE="full" <?php echo $checkedCats['full']; ?>> Fill all tags</td> <td align=left><INPUT TYPE="radio" NAME="group2" VALUE="full" <?php echo $checkedProds['full']; ?>> Fill all tags</td> </tr> <tr class="smallText"> <td align=left><INPUT TYPE="radio" NAME="group1" VALUE="clear" <?php echo $checkedCats['clear']; ?>> Clear all tags</td> <td align=left><INPUT TYPE="radio" NAME="group2" VALUE="clear" <?php echo $checkedProds['clear']; ?>> Clear all tags</td> </tr> </table></td> </tr> <tr> <td><table border="0" width="40%"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td align="center"><?php echo (tep_image_submit('button_update.gif', IMAGE_UPDATE) ) . ' <a href="' . tep_href_link(FILENAME_HEADER_TAGS_ENGLISH, tep_get_all_get_params(array('action'))) .'">' . '</a>'; ?></td> </tr> </table></td> </tr> </form> </td> </tr> <!-- end of Header Tags --> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> ?Did I copy something wrong? Regards, Andres
  13. As far as I understand that's what "header tags controller" does !! Anyway I'm using another contrib. called "kurzschreibung" in order to have a short description after the title when making a search: here is where I'm having some trouble if using Header Tags Fill Tags from Admin. Regards, Andres
  14. As I see "fill_tags.php" is no longer used, you've replaced it with admin/header_tags_fill_tags. When I use this new file from Admin, I get the product_title benneath the same product_title when using advanced search results or manufacturers_id because I'm using "kurzschreibung" contrib. too. If I point .../admin/fill_tags.php to run, then I get correctly product_listing with a short description benneath the product_tilte at product_listing of advanced search results. ?What's going on? Regards, Andres http://www.elbuenlibro.com/bookstore/index...facturers_id=10
  15. I'm using "kurzschreibung" contrib. (3313) in product_listing which includes part of product_description after each product_title. This contrib. worked fine, but after updating to HTC 2.5.5, now product_listing shows again the product_title under each product_title instead of part of the product_description. What's happening...? Tks. and regards, Andres PS: try "quick find" for borges or dickens at http://www.elbuenlibro.com/bookstore/index.php
  16. andresull

    Updating to Header Tags Controller v2.5.5

    Today I decided to run directly .../admin/fill_tags.php as in previous version and voil? !! everything is OK again: I can see a little description benneath the title at product_listing. Something works different when using "Header_tag_fill_tags" from the Administration tool. Regards, Andres
  17. andresull

    Updating to Header Tags Controller v2.5.5

    Yes I did that update too, I find this update very coll and useful but I still don't understand what's wrong with "kurzschreibung". This is the code of "kurschreibung": ?nderung unter /catalog/index.php suche // We are asked to show only a specific category Darunter in den n?chsten 4 Abfragen vor "from" ", pd.products_head_desc_tag" einf?gen ----------------------------------------------------------------------------------------------- ?nderung unter /catalog/advanced_search_result.php suche $select_str = nach " . $select_column_list . " folgendes einf?gen pd.products_head_desc_tag, ----------------------------------------------------------------------------------------------- ?nderung unter /catalog/includes/modules/product_listing.php suche in ca. Zeile 102 case 'PRODUCT_LIST_NAME': hinter if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = folgendes einf?gen '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</b>'; $kurzbeschreibung = '<br><span class="kurzbeschreibung">' . substr($listing['products_head_desc_tag'],0 ,200) . '</span> ...</a>'; $lc_text.= $kurzbeschreibung;' } ----------------------------------------------------------------------------------------------- dann direkt danach hinter } else { $lc_text = folgendes einf?gen '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</b>'; $kurzbeschreibung = '<br><span class="kurzbeschreibung">' . substr($listing['products_head_desc_tag'],0 ,200) . '</span> ...</a>'; $lc_text.= $kurzbeschreibung; } ------------------------------------------------------------------------- regards, Andres
  18. andresull

    Updating to Header Tags Controller v2.5.5

    Yes I did that update too, I find this update very coll and useful but I still don't understand what's wrong with "kurzschreibung". regards, Andres
  19. andresull

    ### POINTS AND REWARDS MODULE V1.00 ###

    Thank for your answer, now everything works !! I made a few mistakes with "Thema configuration" I have included and the biggest mistake: I forgot to add the line to customers_sql... Thanks a regards from Argentina, yours, Andres www.elbuenlibro.com
×