Jump to content

Zahoor

Members
  • Content count

    24
  • Joined

  • Last visited

2 Followers

About Zahoor

  • Birthday 01/01/2006

Profile Information

  • Real Name
    ZA
  • Gender
    Male
  • Location
    Norway
  • Website
  1. This error can be fixed by editing catalog/includes/supertracker.php. Search for: $query = "INSERT INTO `supertracker` (`ip_address`, `browser_string`, `country_code`, `country_name`, `country_region`, `country_city`, `referrer`,`referrer_query_string`,`landing_page`,`exit_page`,`time_arrived`,`last_click`,`browser`) VALUES ('" . $ip . "','" . $browser_string . "','" . $country_code . "', '" . $country_name . "', '" . $region_name . "', '" . $city_name . "', '" . $referrer . "', '" . $query_string . "','" . $landing_page . "','" . $current_page . "','" . $time_arrived . "','" . $time_arrived . "','" . get_browser_($user_agent) . "')"; And replace with: $query = "INSERT INTO `supertracker` (`ip_address`, `browser_string`, `country_code`, `country_name`, `country_region`, `country_city`, `referrer`,`referrer_query_string`,`landing_page`,`exit_page`,`time_arrived`,`last_click`,`browser`) VALUES ('" . $ip . "','" . $browser_string . "','" . $country_code . "', '" . addslashes($country_name) . "', '" . addslashes($region_name) . "', '" . addslashes($city_name) . "', '" . $referrer . "', '" . $query_string . "','" . $landing_page . "','" . $current_page . "','" . $time_arrived . "','" . $time_arrived . "','" . get_browser_($user_agent) . "')"; This worked for me :)
  2. Zahoor

    Newsletter Unsubscribe

    For the benefit of other who might get stuck this is what was done: Place this code right under "require('includes/application_top.php');" in unsubscribe_done.php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_UNSUBSCRIBE); if (isset($HTTP_GET_VARS['email'])) { $email_to_unsubscribe = ereg_replace('[^0-9A-Za-z@._-]', '', $HTTP_GET_VARS['email']); } else { $email_to_unsubscribe = ''; } Then place the following code right under " $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'));" in the same file, unsubscribe_done.php // Check and see if the email exists in the database, and is subscribed to the newsletter. $cus_subscribe_raw = "select 1 from " . TABLE_CUSTOMERS . " where customers_newsletter = '1' and customers_email_address = '" . $email_to_unsubscribe . "'"; $cus_subscribe_query = tep_db_query($cus_subscribe_raw); $cus_subscribe = tep_db_fetch_array($cus_subscribe_query); // We know that visitor is allready subscirbed $vis_subscribe_raw = "select 1 from " . TABLE_VISITOR . " where email = '" . $email_to_unsubscribe . "'"; $vis_subscribe_query = tep_db_query($vis_subscribe_raw); $vis_subscribe = tep_db_fetch_array($vis_subscribe_query); Last you need to place this code at a proper place in the same file as above: <?php // If we found the customers email address, and they currently subscribe if ($cus_subscribe) { // Unsubscribe customer tep_db_query("update " . TABLE_CUSTOMERS . " set customers_newsletter = '0' where customers_email_address = '" . $email_to_unsubscribe . "'"); ?> <td class="main"><?php echo UNSUBSCRIBE_DONE_TEXT_INFORMATION . $email_to_unsubscribe; ?></td> <?php } else if ($vis_subscribe) { // Unsubscribe visitor tep_db_query("delete from " . TABLE_VISITOR . " where email = '" . $email_to_unsubscribe . "'"); ?> <td class="smallText"><?php echo UNSUBSCRIBE_DONE_TEXT_INFORMATION . $email_to_unsubscribe; ?></td> <?php // Otherwise, we want to display an error message (This should never occur, unless they try to unsubscribe twice) } else { ?> <td class="main"><?php echo UNSUBSCRIBE_ERROR_INFORMATION . $email_to_unsubscribe; ?></td> <?php } ?>
  3. Zahoor

    Fancier Invoice & Packingslip v1.0

    I would like to know where/how this contribution is calling calling tep_mail function. I need to change it so that it I can call another e-mail function? Could please some one point me in that direction?
  4. Zahoor

    Fancier Invoice & Packingslip v1.0

    It seems to me that you are missing the language definations in languages/english/invoice.php
  5. Zahoor

    City Ajax auto complete

    Thanks for the reply, Chris. No, I am not using version 2.3.1, but MS2.2 - it is a heavily modified code so I don't know where it went wrong. Perhaps it could be because of loading also other scripts ? Would appreciate if you have time to have a look at the file. The code is pasted below: <?php /* $Id: account.php,v 1.61 2003/06/09 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 */ require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?> <!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 $title_bar = $breadcrumb->title(0); if($title_bar != '') echo STORE_NAME . ' - ' . $title_bar; else echo TITLE;?> </title> <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"><!-- function rowOverEffect(object) { if (object.className == 'moduleRow') object.className = 'moduleRowOver'; } function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow'; } //--></script> <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) { include_once(DIR_WS_CLASSES . 'language.php'); $lng = new language; } reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { ?> <link rel="alternate" type="application/rss+xml" title="<?php echo STORE_NAME . ' - ' . BOX_INFORMATION_RSS; ?>" href="<?php echo FILENAME_RSS, '?language=' . $key.((isset($_GET['cPath']))?'&cPath='.$_GET['cPath']:'').((isset($_GET['manufacturers_id']))?'&manufacturers_id='.$_GET['manufacturers_id']:''); ?>"> <?php } ?> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <!-- Start code --> <tr><td valign="top"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="22"><?php echo tep_draw_separator('spacer.gif', '22', '1'); ?></td> <td width="185" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="185"> <tr><td width="8" class="bg9" valign="top"><?=tep_image(DIR_WS_IMAGES.'m26_2.gif')?></td> <td width="177" valign="top"><?php require(DIR_WS_INCLUDES . 'column_left.php'); ?></td> </tr> </table> </td> <td width="8" class="bg3"><?php echo tep_draw_separator('spacer.gif', '8', '1'); ?></td> <td width="800" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="800"> <tr><td width="800" bgcolor="#FFFFFF"> <?php require(DIR_WS_BOXES . 'panel_top.php'); ?> </td></tr> <tr><td width="800" height="31" bgcolor="#F00300"> <span class="tx"><?=HEADING_TITLE?></span></td></tr> <tr><td width="700" bgcolor="#FFFFFF"> <? // new infoBoxHeading($info_box_contents, true, false);?> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr><td class="sea_3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <?php if ($messageStack->size('account') > 0) { ?> <tr> <td><?php echo $messageStack->output('account'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (tep_count_customer_orders() > 0) { ?> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo OVERVIEW_TITLE; ?></b></td> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '"><u>' . OVERVIEW_SHOW_ALL_ORDERS . '</u></a>'; ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="0" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" align="center" valign="top" width="130"><?php echo '<b>' . OVERVIEW_PREVIOUS_ORDERS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php $orders_query = tep_db_query("select o.orders_id, o.date_purchased, o.delivery_name, o.delivery_country, o.billing_name, o.billing_country, ot.text as order_total, s.orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' order by orders_id desc limit 3"); while ($orders = tep_db_fetch_array($orders_query)) { if (tep_not_null($orders['delivery_name'])) { $order_name = $orders['delivery_name']; $order_country = $orders['delivery_country']; } else { $order_name = $orders['billing_name']; $order_country = $orders['billing_country']; } ?> <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'"> <td class="main" width="80"><?php echo tep_date_short($orders['date_purchased']); ?></td> <td class="main"><?php echo '#' . tep_trans_id($orders['date_purchased'],$orders['orders_id']); ?></td> <td class="main"><?php echo tep_output_string_protected($order_name) . ', ' . $order_country; ?></td> <td class="main"><?php echo $orders['orders_status_name']; ?></td> <td class="main" align="right"><?php echo $orders['order_total']; ?></td> <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '">' . tep_image_button('button_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>'; ?></td> </tr> <?php } ?> </table></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></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"> <tr> <td class="main"><b><?php echo MY_ACCOUNT_TITLE; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_personal.gif'); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td> </tr> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></td> </tr> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></td> </tr> </table></td> <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo MY_WISHLIST_TITLE; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'wishlist_account.gif'); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . '<a href="' . tep_href_link(FILENAME_WISHLIST, '', 'SSL') . '">' . BOX_HEADING_CUSTOMER_WISHLIST_ACCOUNT . '</a>'; ?></td> </tr> </table></td> <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo MY_ORDERS_TITLE; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_orders.gif'); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></td> </tr> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' ' . MY_ORDERS_DOWNLOAD_REPENT_FORM . ' <a target="_blank" href="pub/angrefristskjema.pdf">' . tep_image(DIR_WS_IMAGES . 'icons/pdf.gif', '.pdf') . '</a> <a target="_blank" href="pub/angrefristskjema.doc">' . tep_image(DIR_WS_IMAGES . 'icons/word.gif', '.doc') . '</a>'; ?></td> </tr> </table></td> <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif'); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></td> </tr> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td> </tr> </table></td> <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table> <!-- body_eof //--> <td></tr></table> <!-- End code --> </td> <td width="8" class="bg3"><?php echo tep_draw_separator('spacer.gif', '8', '1'); ?></td></tr> <tr><td valign="top" colspan="2"><?=tep_image(DIR_WS_IMAGES.'m38.gif')?></td> </table> </td> <td width="185" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="185"> <tr><td width="177" valign="top"><?php require(DIR_WS_INCLUDES . 'column_right.php'); ?></td> <td width="8" class="bg4" valign="top"><?=tep_image(DIR_WS_IMAGES.'m26.gif')?></td></tr> </table> </td> <td width="22"><?php echo tep_draw_separator('spacer.gif', '22', '1'); ?></td></tr> </table> </td></tr> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-5609688-2"); pageTracker._trackPageview(); </script> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  6. Zahoor

    Dynamic SiteMap

    First of all, thanks for a great contribution. I have installed this on a customers site and it all works fine. But now the customer wants also to show products that are listed under different categories as customers site doesn't have many products for the time being. I wanted to know if someone could look into possibility of also displaying products, but that option was up to customer to decide whether to show products or keep them hidden. Best of luck and can't wait to hear from some the experts here.
  7. Hi everybody, I fount this contribution http://addons.oscommerce.com/info/7182/ quite interesting. But for some reason this doesn't seem to work on site I am developing. Help appreciated. I have downloaded the latest verstion available (April 2010) and followed the instructions, but this doesn't got me any where. Hope someone can look into it as it is quity handy and needy script which determines city as your customer enters the postalcode. Script is based on this resource: http://www.geonames.org/export/ajax-postalcode-autocomplete.html
  8. There was no thread for this contribution: Products tabs, which I found quite interesting, but had some problems implementing. Found it to be a good solution to create a thread where problems related to this contribution could be discussed and perhaps solved. I am having a problem with this contribution showing tabs on the front end. I have followed instructions in the package dated 26. october 2008. I think it is a conflict between some js-files. I don't know if it would be smart to paste my entire code from product_info.php and product_tabs.php, but I would be really thankful if someone could look into it.
  9. Zahoor

    Need help with tracking

    Found it out, it is now in function at customers site: www.tilbaby.no
  10. Hi everybody, I am developing a website for a customer who used to be able to trace the parcels through using javascript. After a while the courier changed their routines, and this got out of function. Now courier has provided with new url, but still the code is not working. I hope someone can help me with this. code is pasted below: <form name="nettsporform" method="post" onSubmit="return submitNettsporForm(\'nettsporform\')"> <table width="750"> <tr> <td valign="top" class="main" colspan="2">Bruk skjemaet under for å hente frem sporingsinformasjon om sendingen din. Siden vil åpne et eget vindu.</td></tr> <tr> <tr> <td valign="top" class="main" colspan="2"> </td></tr> <tr> <td valign="top" class="main" align="right">Sending/kollinummer:<input type=\"text\" name=\"q\" id=\"value\" size=\"20\" maxlength=\"24\"></td> <script language="javascript"> function submitNettsporForm(nettsporform) { window.open("http://sporing.posten.no/sporing.html?q="+document.nettsporform.q.value,"Nettspor","width=720,height=585,toolbar=no,menubar=yes,resizable=yes,status=yes,scrollbars=yes"'>http://sporing.posten.no/sporing.html?q="+document.nettsporform.q.value,"Nettspor","width=720,height=585,toolbar=no,menubar=yes,resizable=yes,status=yes,scrollbars=yes"); } </script> <td valign="bottom" align="left" class="main"> <a href="javascript:submitNettsporForm(\'nettsporform\')"><img hspace="5" src="includes/languages/norwegian/images/buttons/button_track.gif" border="0" alt="Hvor er sendingen?"></a></td> </tr> </form> </table> The problem is that I am not able to add value from the field name "q" to the url: http://sporing.posten.no/sporing.html?q= . This is the field where customer puts in their parcelnummer. Thanks in advance for all help.
  11. Zahoor

    Wishlist 3.0 Support Thread

    I am using this contribution, but have 1 issue. When I remove an item from wishlist, and go back to any other page on the site, the item shows up again. So I can continue to remove it as many times as I want, it will still not go away. Only way to get rid of it, is to log out, close the webbrowser and start over again. Is this the way it should be?? You can watch it at www.barnebutikk.no - PS! norwegian only
  12. I have installed this contribution and it works fine. But there is one thing which needs to be looked into. When a customer recieves the e-mail, he/she can click the link and come to activation page. So far so good. But it is possible to click the same link many timea and every time you can "activate" your account as if it was first time. What we need is a kind of setup which checks for if the account has been activated allready, and if so then turn customer to login page, instead of activation page. As I am a newbee to php, hope someone can look into it. You can see this code in action at my website. Note: Website is in norwegian only.
  13. Zahoor

    Request Product Reviews

    Hello, thanks for a great contribution. I have one problem. I recieved the mail, but the link pointing to product is not clickable, so I have to copy and paste it in the browser to get to that page. Have any idea how it could be fixed?
  14. Zahoor

    Wishlist 3.0 Support Thread

    Thanks man! You fixed my problem!
  15. One of the things is now fixed, namely position of VAT-No and so on, but I have still trouble showing alle the digits of my ordernumber. Pasted below is the code from my pdfinvoice.php where it draws order number. As you can see I have chaged it to the format which I am using else where on my site. Please advise how to display this also in pdfinvoice.php. I tried to SetFont to 6, but I still see only 5 digits of total 16. I have made a link to another pdf created using pdf-software to show how I want the pdfinvoice to look in the order-number area. //Draw Order Number Text $pdf->SetFont(PDF_INV_CORE_FONT,'B',6); $pdf->Text(10,113, tep_html_entity_decode(PRINT_INVOICE_ORDERNR) . [b](int)tep_trans_id($order->info['date_purchased'], $HTTP_GET_VARS['order_id'])[/b]); PDF Invoice - Order No, as I want it to look Hope you can help solve this.
×