Jump to content

gregy

Members
  • Content count

    668
  • Joined

  • Last visited

Everything posted by gregy

  1. Hi! I have modified invoice to suit our company needs, and now i was looking for any batch print contribution .. with original invoice .. they are all exported to PDF .. with new templates .. i was modifying mine for whole afternoon ... in short ... Batch Print with original invoices .. :thumbsup:
  2. 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
  3. is this topic stil live, so i can post question?
  4. gregy

    Ajax search suggest

    of course .. khmm .. how? :) :)
  5. 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
  6. gregy

    QR codes for products

    Wiki says http://en.wikipedia.org/wiki/QR_Code
  7. 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.
  8. 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!
  9. thanx :) i had to google for word slacker, cause my english is not that good :) now i know :)
  10. 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!
  11. FATAL ERROR solved .. i had another instance of SEO2.1 above already .. stupid me :)
  12. 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 :(
  13. 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
  14. Hi guys Can you please update Roadmap so we can have at least small hope for any final versions!? Thank you very much
  15. gregy

    Updated Roadmap

    spooks: what is RAC? geoffrey: check out my homepage ;)
  16. Hi! Any idea how to change this code <?php /* $Id: osc_active_desktop V 2.0 2003/03/07 23:03:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License Developped by Gyakutsuki */ // store this file in your admin directory to get the correct paths require('includes/application_top.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); $command_query = tep_db_query("select o.orders_id, date_purchased, customers_name, products_name, payment_method, products_quantity, final_price, op.orders_products_id from orders o, orders_products op WHERE o.orders_id = op.orders_id and orders_status='1' ORDER BY date_purchased DESC"); $whos_online_query = tep_db_query("select DISTINCTROW customer_id from " . TABLE_WHOS_ONLINE); $customers_query = tep_db_query("select DISTINCTROW customers_id from " . TABLE_CUSTOMERS); ?> <html> <head> <title><?php echo TEXT_ORDERS; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <META HTTP-EQUIV=Refresh CONTENT="<?php echo REFRESH_RATE;?>"> <link rel="stylesheet" type="text/css" href="../stylesheet.css"> <script> <!-- function imp(){ if (!window.print){ alert("<?php echo TEXT_NS_ALERT; ?>") return } window.print() } //--> </script> </head> <body> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="left" width="62%"> <font size="2" face="Verdana"><b><?php echo TEXT_DESKTOP; // echo STORE_NAME; ?></b></font> </td> <td align="right" width="28%"> <a href="<?php echo '';?>"><font size="1" face="Verdana" color="#000000"> <b><?php echo TEXT_ADMIN; ?></b></font></a> | <a href="<?php echo ''. HTTP_SERVER; ?>"><font size="1" face="Verdana" color="#000000"><b><?php echo TEXT_CATALOG; ?></b></font></a> | <a href="javascript:imp()" target="_self"><font size="1" face="Verdana" color="#000000"><b><?php echo TEXT_PRINT; ?></b></font></a> </td> <td align="right" width="10%"> </td> </tr> <tr> <td align="left" colspan="2"> <!-- <div align="right"> <font size="1" face="Verdana"><?php echo strftime(DATE_FORMAT_LONG); ?></font> </div> --> </td> <td align="left" width="10%"></td> </tr> <tr> <td align="left" colspan="2"> <font size="1" face="Verdana" color="#000000"><?php echo TEXT_NBR_CLIENTS_ONLINE; ?> <?php echo (tep_db_num_rows($whos_online_query)) . ' ' . TEXT_CLIENTS; ?></font> <a href="<?php echo '' . 'whos_online.php?selected_box=tools'?>"> <img border="0" src="<?php echo '../images/arrow_green.gif" width="13" height="13"'?>> </a> </td> <td align="left" width="10%"></td> </tr> <tr> <td align="left" colspan="2"> <font size="1" face="Verdana" color="#000000"><?php echo TEXT_NBR_CLIENTS_REG; ?> <?php echo (tep_db_num_rows($customers_query)). ' ' . TEXT_CLIENTS; ?></font> <a href="<?php echo ''. 'customers.php?selected_box=customers'?>"> <img border="0" src="<?php echo '../images/arrow_green.gif" width="13" height="13"'?>> </a> </td> <td align="left" width="10%"></td> </tr> <tr> <td align="left" colspan="2"> <font size="1" face="Verdana" color="#000000"><?php echo TEXT_NBR_ORDERS; ?> <?php echo (tep_db_num_rows($command_query)). ' ' . TEXT_ORDERS; ?></font> <a href="<?php echo '' .'orders.php'?>"> <img border="0" src="<?php echo '../images/arrow_green.gif" width="13" height="13"'?>> </a> </td> <td align="left" width="10%"></td> </tr> <tr> <!-- <td align="left" colspan="2"> <font size="1" face="Verdana" color="#000000">User Tracking</font> <a href="<?php echo '' . 'user_tracking.php'?>"> <img border="0" src="<?php echo '../images/arrow_green.gif" width="13" height="13"'?>> </a> </td> --> <td align="left" width="10%"></td> </tr> </table> <table border="0"> <tr class="infoBoxContents" align="center"> <td><strong><?php echo TEXT_ORDER_ID; ?></strong></td> <td><strong><?php echo TEXT_DATEOFPURCHASE; ?></strong></td> <td><strong><?php echo TEXT_CLIENTNAME; ?></strong></td> <td><strong><?php echo TEXT_PRODUCT; ?></strong></td> <td><strong><?php echo TEXT_PAYMETHOD?></strong></td> <td><strong><?php echo TEXT_QTY; ?></strong></td> <td><strong><?php echo TEXT_PRICE; ?></strong></td> <td><strong><?php echo TEXT_TOTAL; ?></strong></td> </tr> <?php while ($command = tep_db_fetch_array($command_query)) { $attributes_query = tep_db_query("select products_options, products_options_values from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES." oa where orders_id = " . $command['orders_id'] . " and orders_products_id = " . $command['orders_products_id'] . ";"); ?> <tr class="moduleRowOver"> <td align="left"><font face="verdana" size="2"> <?php echo $command['orders_id']; ?></font></td> <td align="left"><font face="verdana" size="2"> <?php echo $command['date_purchased']; ?></font></td> <td align="left"><font face="verdana" size="2"> <a href=" <?php echo '' .'orders.php?selected_box=customers&page=1&oID='. $command['orders_id'] .'&action=edit'?>"> <?php echo $command['customers_name']; ?></a></font></td> <td align="left"><font face="verdana" size="2"><?php echo $command['products_name'] . '<BR>'; while ($attrib = tep_db_fetch_array($attributes_query)) { echo " - " . $attrib['products_options'] . " " . $attrib['products_options_values'] . "<br>"; } ?></font></td> <td align="left"><font face="verdana" size="2"><?php echo $command['payment_method']; ?></font></td> <td align="center"><font face="verdana" size="2"><?php echo $command['products_quantity']; ?></font></td> <td align="right"><font face="verdana" size="2"><?php echo $command['final_price']; ?></font></td> <td align="right"><font face="verdana" size="2"><?php echo $command['products_quantity']*$command['final_price']; ?></font></td> </tr> <?php }; ?> </table> </body> </html> to display prices with tax incl. It's a great contribution. thanx
  17. gregy

    OSC Active Desktop

    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; }
  18. 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'); ?>
  19. 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
  20. gregy

    How long until v3 is ready?

    hmm .. might be stupid question .. where can we see these announcements? .. Can't wait for final version ..
  21. gregy

    Who's Online Enhancement 1.4

    Hi guys Any idea why do i get so much duplicate IPs? Any idea how to get rid of them? Thank you!
  22. gregy

    Who's Online Enhancement 1.4

    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'); ?>
  23. gregy

    Who's Online Enhancement 1.4

    please send it info at vstopnice.com Thank you very much!
  24. gregy

    Who's Online Enhancement 1.4

    sorry .. any idea on error i still receive? Where line 188 says $answer = new SimpleXMLElement($d); Thank you
  25. gregy

    Who's Online Enhancement 1.4

    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
×