Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

gregy

Pioneers
  • Posts

    668
  • Joined

  • Last visited

Everything posted by gregy

  1. is this topic stil live, so i can post question?
  2. of course .. khmm .. how? :) :)
  3. Hi Im using Ajax search Suggest contribution and is working OK. But as we use tags like <b> and <br> i would like to know if it is possible to strip those tags out from search suggestions. You can see what i'm talking about here on top left, just search for any concert. Thank you in advance
  4. Wiki says http://en.wikipedia.org/wiki/QR_Code
  5. Hi guys I was looking if anybody made a QR code contribution already. A generator that will make QR codes for products. No luck or am i missing something? Thank you
  6. Hi Can i use this for links to images in description I.e. In product description i have You can see plan of hall <a href="images/plan.jpg">Here</a> Can i and how :) Thank you for your help and support.
  7. Hi Must say instalation was prety smooth, but there is always BUT :) I cannot get the design of box as all others in left column are .. this is example of search box in left column if i use the same "new infoboxheading" and the same "new infobox" nothing happens Please, if any help .. appreciate!
  8. thanx :) i had to google for word slacker, cause my english is not that good :) now i know :)
  9. Hi Jack I'm new to this contribution and i must admit i haven't read all 124 pages :) Is there a way we can remove those -p-1842.html from the URL? Thank you very much!
  10. FATAL ERROR solved .. i had another instance of SEO2.1 above already .. stupid me :)
  11. got one more .. when i add general.php then i receive error when calling administration .. says Fatal error: Cannot redeclare tep_reset_cache_data_seo_urls() (previously declared in /domains/domain.com/public_html/admin/includes/functions/general.php:1661) in /domains/domain.com/public_html/admin/includes/functions/general.php on line 1918 what happened? I'm no programmer :(
  12. Hi Just installed latest version and it works fine except one thing. We're using tags < b > and < br > in title .. now my seo url looks like http://www.vstopnice.com/bandre-rieubbr09022011-stadthalle-graz-2000-p-1526.html?osCsid=e06c91c43566944eb4797f3231948e86 .. nevermind the session :) How can i remove those b and br's form url, so it gets normal name? Thank you very much
  13. hi guys .. any idea, how to change time format to 24hours .. not AM or PM? function formatPurchaseDate($var) { $date = substr($var, 0, 10); $time = substr($var, -8, 8); $new_date = substr($date, -2, 2) . '.' . substr($date, -5, 2) . '.' . substr($date, 0, 4); $time_left = substr($time, 0, 2); $time_right = substr($time, -5, 2); if (substr($time_left, -2, 1) == 0) { $time_left = substr_replace($time_left, ' ', -2, 1); } if ($time_left == 12) { $sign = "PM"; } elseif ($time_left > 12) { $time_left -= 12; $sign = "PM"; } else { $sign = "AM"; } $new_time = $time_left . ':' . $time_right . ' ' . $sign; $date_time = $new_date . ' ' . $new_time; return $date_time; }
  14. Hi I would like this code to dispaly new products (last 24 hours) in two columns. Curently it is in 1. Can you help me work this out? Thank you <?php /* $Id: products_new.php,v 1.27 2003/06/09 22:35:33 hpdl 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'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCTS_NEW); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRODUCTS_NEW)); ?> <div align="center"> <table border="0" cellspacing="0" cellpadding="0"> <?php //begin fixed code to only actually show "new" products as new products $days_of_new_products = 1; // the numbers of days that new products will be shown on this page is selected by $days_of_new_products $time_lag = mktime(date("H"), date("i"), date("s"), date("m"), date("d")-$days_of_new_products, date("Y")); // creates the MySQL date time stamp from the UNIX date , example: 2004-12-06 10:02:44 $date_time_lag = date("Y-m-d H:i:s", $time_lag); $products_new_array = array(); $products_new_query_raw = "select p.products_quantity, p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' AND p.products_date_added > '".$date_time_lag."' order by p.products_date_added DESC, pd.products_name"; // end fix for new products $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW); if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if ($products_new_split->number_of_rows > 0) { $products_new_query = tep_db_query($products_new_split->sql_query); while ($products_new = tep_db_fetch_array($products_new_query)) { if ($new_price = tep_get_products_special_price($products_new['products_id'])) { $products_price = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])); } ?> <tr> <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id'],'NONSSL',false) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><font face="verdana" size="1"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id'],'NONSSL',false) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br><br><b>' . TEXT_PRICE . '</b> ' . $products_price; ?></font></td> <?php if ($products_new['products_quantity'] > 0) {?> <?php } ?> </tr> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } } else { ?> <tr> <td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> </table></td> </tr> </table></div> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  15. hi guys Just a question about formatting Currently we use formating for title of product like this; <b>Title</b><br>best model now, export gives out result <Product_Name><b>Title</b><br>best model</Product_Name> any idea how to make this to display correctly? Thank you in advance
  16. Hi guys Any idea why do i get so much duplicate IPs? Any idea how to get rid of them? Thank you!
  17. huh .. another one came up :) Parse error: syntax error, unexpected $end in /domains/domain.com/public_html/admin/whos_online.php on line 1087 where 1087 is last line <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  18. please send it info at vstopnice.com Thank you very much!
  19. sorry .. any idea on error i still receive? Where line 188 says $answer = new SimpleXMLElement($d); Thank you
  20. huh .. still the same error Fatal error: Cannot instantiate non-existent class: simplexmlelement in /domains/domain.com/public_html/admin/whos_online.php on line 188
  21. would you please be so kind and give us little more exact "install" info? I copy whole class to admin/includes/functions ? where to call it? Thank you
  22. Hi My sitemap works perfectly, except Google Webamster Tools says; smmain details warning are and error for smspecial.xml says: any idea? Thank you
  23. already working :) see at http://www.vstopnice.com/product_info.php?products_id=902 (only slovenian language for now) Would be cool, to get a notice when new comment is posted . .
  24. geee .. thanx a lot .. first two weeks in august i was on vacation, so this contrib passed me. Usually i check contribs. every day. Thanks a lot!!!
  25. hi any help on this .. any ideas .. coders?
×
×
  • Create New...