Jump to content

Twizted

Members
  • Content count

    39
  • Joined

  • Last visited

  1. Twizted

    Fancier Invoice & Packingslip v1.0

    If I had some of those lables I could rearrange the info no problem.. would just need paper for testing and layout measurements
  2. Twizted

    Fancier Invoice & Packingslip v1.0

    You could append comments just before you print the invoice and put the shipping date there and the comments will be added to the bottom with the current date...
  3. Twizted

    [Contribution]Paypal IPN - Devosc

    nvm.... I found it :-"
  4. Twizted

    Fancier Invoice & Packingslip v1.0

    UGH.. LoL... Yes I posted it in the wrong thread.. DOH!... Sorry... lol This is for Email_Subject_OrderNumber_Status.zip :-"
  5. Twizted

    Fancier Invoice & Packingslip v1.0

    Just found a compatability issue with Paypal Shopping Cart IPN 3.x from devosc.... When a payment is made at checkout with this contrib installed it apparently bypasses the normal Checkout_Process.php section for e-mail sending and uses another fiel fromt he contrib located in "includes\modules\payment\paypal\classes\osC\Order.class.php I have included the lines in question below Approx Line 255 includes\modules\payment\paypal\classes\osC\Order.class.php: tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Change to this Approx Line 255 includes\modules\payment\paypal\classes\osC\Order.class.php: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' .EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Approx Line 259 includes\modules\payment\paypal\classes\osC\Order.class.php: tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Change to this Approx Line 259 includes\modules\payment\paypal\classes\osC\Order.class.php: tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' .EMAIL_TEXT_SUBJECT_2, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); This only applies if you have PayPal_Shopping_Cart_IPN installed by:devosc
  6. Twizted

    Fancier Invoice & Packingslip v1.0

    LoL.... What about little ol' me... :P j/k.....
  7. Twizted

    Fancier Invoice & Packingslip v1.0

    Very nice work... I like the fact that your still maintaining your work and striving to improve upon it... I dont see how I missed that... but I did... it worked... I tried everything last night.. nesting tables within tables lol... nothing worked... but... thank you.. :) here is my take on this contrib and how I modified it to suit my taste..... Click to Enlarge
  8. Twizted

    Fancier Invoice & Packingslip v1.0

    not sure what I am looking for... because ... The code you quote is exactly the same as mine... I have not edited the code around there at all.. and its the same in the latest release I downloaded from the contrib area.... here is the code from the file itself.. beginning to finish (this is the one I have only slightly modified.... <?php /* $Id: invoice.php,v 2.0 2005/03/12 00:37:30 PopTheTop 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_CLASSES . 'currencies.php'); $currencies = new currencies(); $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); include(DIR_WS_CLASSES . 'order.php'); $order = new order($oID); $date = date('M d, Y'); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <title><?php echo STORE_NAME; ?> <?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_CURRENT_YEAR; ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <!-- body_text //--> <center> <table border="0" width="98%" cellspacing="0" cellpadding="2" style="background-image: url(/admin/images/neo_2_BG.jpg); background-repeat: no-repeat; background-position: 50% 50%"> <tr> <td align="left"><!--<img src="/images/neo_2.jpg" border="0" width="206" height="200" alt=""> //--><span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="3" COLOR="#000000"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span></td> <TD ALIGN="right" VALIGN="top"><FONT FACE="Verdana" SIZE="2" COLOR="#000000"><strong><?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo INVOICE_TEXT_CURRENT_YEAR; ?><?php echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?><BR><?php echo $date; ?></strong></font></TD> </tr> <tr> <td colspan="2"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <TD ALIGN="right" COLSPAN="2"> </TD> </tr> <tr> <TD> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="4"> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10%"><hr size="2"></td> <td align="center" class="pageHeading"><em><b><?php echo INVOICE_TEXT_INVOICE; ?></b></em></td> <td width="100%"><hr size="2"></td> </tr> </table> </td> </tr> <tr> <td colspan="4"><?php echo tep_draw_separator('pixel_trans.gif', '100', '5'); ?></td> </tr> <tr> <td width="3"> </td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="11"><img src="../images/borders/maingrey_01.gif" width="11" height="16" alt=""></td> <td background="../images/borders/maingrey_02.gif"><img src="../images/borders/maingrey_02.gif" width="24" height="16" alt="" ></td> <td width="19"><img src="../images/borders/maingrey_03.gif" width="19" height="16" alt=""></td> </tr> <tr> <td background="../images/borders/maingrey_04.gif"><img src="../images/borders/maingrey_04.gif" width="11" height="21" alt=""></td> <td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="main"> <tr> <td align="left" valign="top"><b><?php echo ENTRY_SOLD_TO; ?></b></td> </tr> <tr> <td> <?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td> <?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br> '); ?></td> </tr> <tr> <td> <?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td> <?php echo $order->customer['telephone']; ?></td> </tr> <tr> <td> <?php echo $order->customer['email_address']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '7'); ?></td> </tr> </table> </td> <td background="../images/borders/maingrey_06.gif"><img src="../images/borders/maingrey_06.gif" width="19" height="21" alt=""></td> </tr> <tr> <td><img src="../images/borders/maingrey_07.gif" width="11" height="18" alt=""></td> <td background="../images/borders/maingrey_08.gif"><img src="../images/borders/maingrey_08.gif" width="24" height="18" alt=""></td> <td><img src="../images/borders/maingrey_09.gif" width="19" height="18" alt=""></td> </tr> </table> </td> <td width="45"> </td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="11"><img src="../images/borders/mainwhite_01.gif" width="11" height="16" alt=""></td> <td background="../images/borders/mainwhite_02.gif"><img src="../images/borders/mainwhite_02.gif" width="24" height="16" alt=""></td> <td width="19"><img src="../images/borders/mainwhite_03.gif" width="19" height="16" alt=""></td> </tr> <tr> <td background="../images/borders/mainwhite_04.gif"><img src="../images/borders/mainwhite_04.gif" width="11" height="21" alt=""></td> <td align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td align="left" valign="top"><b><?php echo ENTRY_SHIP_TO; ?></b></td> </tr> <tr> <td> <?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td> <?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br> '); ?></td> </tr> <tr> <td> <?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '7'); ?></td> </tr> </table> </td> <td background="../images/borders/mainwhite_06.gif"><img src="../images/borders/mainwhite_06.gif" width="19" height="21" alt=""></td> </tr> <tr> <td><img src="../images/borders/mainwhite_07.gif" width="11" height="18" alt=""></td> <td background="../images/borders/mainwhite_08.gif"><img src="../images/borders/mainwhite_08.gif" width="24" height="18" alt=""></td> <td><img src="../images/borders/mainwhite_09.gif" width="19" height="18" alt=""></td> </tr> </table> </td> </tr> </table> </TD> </tr> <tr> <TD COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '100', '15'); ?></td> </tr> <tr> <TD COLSPAN="2"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="9"> </td> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="11"><img src="../images/borders/maingrey_01.gif" width="11" height="16" alt=""></td> <td background="../images/borders/maingrey_02.gif"><img src="../images/borders/maingrey_02.gif" width="24" height="16" alt="" ></td> <td width="19"><img src="../images/borders/maingrey_03.gif" width="19" height="16" alt=""></td> </tr> <tr> <td background="../images/borders/maingrey_04.gif"><img src="../images/borders/maingrey_04.gif" width="11" height="21" alt=""></td> <td align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="33%"> <b><?php echo INVOICE_TEXT_ORDER; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_COLON; ?></b> <?php echo tep_db_input($oID); ?></td> <td width="33%"> <b><?php echo INVOICE_TEXT_DATE_OF_ORDER; ?><?php echo INVOICE_TEXT_COLON; ?> </b><?php echo tep_date_short($order->info['date_purchased']); ?></td> <td> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '7'); ?></td> </tr> </table> </td> <td background="../images/borders/maingrey_06.gif"><img src="../images/borders/maingrey_06.gif" width="19" height="21" alt=""></td> </tr> <tr> <td><img src="../images/borders/maingrey_07.gif" width="11" height="18" alt=""></td> <td background="../images/borders/maingrey_08.gif"><img src="../images/borders/maingrey_08.gif" width="24" height="18" alt=""></td> <td><img src="../images/borders/maingrey_09.gif" width="19" height="18" alt=""></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <TD COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?></td> </tr> <tr> <TD COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <TD COLSPAN="2"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td> </tr> <?php for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) { for ($j = 0; $j < $k; $j++) { echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')'; echo '</i></small></nobr>'; } } echo ' </td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n"; echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n"; echo ' </tr>' . "\n"; } ?> <tr> <td align="right" colspan="5"> <table border="0" cellspacing="0" cellpadding="2"> <?php for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table> </td> </tr> </table></td> </tr> </table> <!-- ORDER COMMENTS CODE STARTS HERE //--> <?php $orders_status_history_query = tep_db_query("select * from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added"); if (tep_db_num_rows($orders_status_history_query)) { $has_comments = false; echo ' <br><br>'; echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0">'; echo ' <tr>'; echo ' <td width="9"> </td>'; echo ' <td>'; echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0">'; echo ' <tr>'; echo ' <td width="11"><img src="../images/borders/maingrey_01.gif" width="11" height="16" alt=""></td>'; echo ' <td background="../images/borders/maingrey_02.gif"><img src="../images/borders/maingrey_02.gif" width="24" height="16" alt="" ></td>'; echo ' <td width="19"><img src="../images/borders/maingrey_03.gif" width="19" height="16" alt=""></td>'; echo ' </tr>'; echo ' <tr>'; echo ' <td background="../images/borders/maingrey_04.gif"><img src="../images/borders/maingrey_04.gif" width="11" height="21" alt=""></td>'; echo ' <td align="center">'; echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">'; echo ' <tr>'; echo ' <td width="95%"> <b>' . TABLE_HEADING_COMMENTS . '</b><br><br></td>'; echo ' </tr>'; while ($orders_comments = tep_db_fetch_array($orders_status_history_query)) { if (tep_not_null($orders_comments['comments'])) { $has_comments = true; // Not Null = Has Comments if (tep_not_null($orders_comments['comments'])) { $sInfo = new objectInfo($orders_comments); echo ' <tr>'; echo ' <td align="center" width="95%">'; echo ' <table width="95%" border="0" cellpadding="0" cellspacing="0">'; echo ' <tr>'; echo ' <td width="95%" class="smallText">'; echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">'; echo ' <tr>'; echo ' <td width="150" align="left" valign="top" class="smallText"><strong><u>' . TABLE_HEADING_DATE_ADDED . '</u></strong></td>'; echo ' <td align="left" valign="top" class="smallText"><strong><u>' . TABLE_HEADING_COMMENT_LEFT . '</u></strong></td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo ' <tr>'; echo ' <td align="center" width="95%">'; echo ' <table width="95%" border="0" cellpadding="0" cellspacing="0">'; echo ' <tr>'; echo ' <td width="95%" class="smallText">'; echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">'; echo ' <tr>'; echo ' <td width="150" align="left" valign="top" class="smallText">' . tep_date_short($sInfo->date_added) . '</td>'; echo ' <td align="left" valign="top" class="smallText">' . nl2br(tep_db_output($orders_comments['comments'])) . '<br><br></td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; } } } if ($has_comments == false) { echo ' <tr>'; echo ' <td align="center" width="95%">'; echo ' <table width="95%" border="0" cellpadding="0" cellspacing="0">'; echo ' <tr>'; echo ' <td width="95%" class="smallText">'; echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">'; echo ' <tr>'; echo ' <td width="100%" align="left" valign="top" class="smallText">' . INVOICE_TEXT_NO_COMMENT . '</td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; } echo ' <tr>'; echo ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '7') . '</td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' <td background="../images/borders/maingrey_06.gif"><img src="../images/borders/maingrey_06.gif" width="19" height="21" alt=""></td>'; echo ' </tr>'; echo ' <tr>'; echo ' <td><img src="../images/borders/maingrey_07.gif" width="11" height="18" alt=""></td>'; echo ' <td background="../images/borders/maingrey_08.gif"><img src="../images/borders/maingrey_08.gif" width="24" height="18" alt=""></td>'; echo ' <td><img src="../images/borders/maingrey_09.gif" width="19" height="18" alt=""></td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo ' </table>'; } ?> <!-- ORDER COMMENTS CODE ENDS HERE //--> <br><br> <CENTER><span class="smallText"><FONT FACE="Verdana" COLOR="#000000"><strong>Thank you for shopping at<BR>DragonModz.net<BR>http://www.dragonmodz.net</strong></font></span></CENTER> <br><br> <!-- body_text_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  9. Twizted

    Fancier Invoice & Packingslip v1.0

    This may of maynot have been covered but I couldnt read all the pages as my eyes hurt from trying to fix this... I have installed this and from the get go with original files the order totals area is being centered somehow... I have tried and tried until my eyes are crossed to fix it.. I know it has to be something simple but what gives!!! here is the screenie http://www.dragonmodz.net/~twiz_files/invoice1.jpg Please help....
  10. Twizted

    STS and DHTML Categories Support

    I am using this.. Just installed it actually... You can see it at http://www.dragonmodz.net But... I am wanting to put a bullet beside the catagories (Like my Information Box)... how would this be done? I have looked and looked at the code.. and I cant figure it out lol... Please advise.. ;) Thanks
  11. Twizted

    [Contribution]Paypal IPN - Devosc

    After much trouble trying to install ver 3.1.5 all of yesterday with no luck... I was contacted by a Freelancer (Alpha Ray) who offered to build a package (for a price) on a new MS2.2 set of files with the PayPal Shopping CArt IPN from devosc installed on it.. and it worked beautifully..... Great Contrib!! Much thanks to devosc and Alpha Ray
  12. Twizted

    Force USPS Priority on Items

    UGH.... I am not that versed in this and have no idea how to do what you just said to do :blink: .... I was hoping that someone knew a contribution that I hadnt found yet... I am in the process of looking but have yet to find anything.
  13. I am looking for a way to setup my shop so that I can offer first class but setup some products to cause the shipping module to Force the user to use priority mail (for larger items for example) by not showing the first class option.. Is this possible and if so, How? Thanks :blink:
  14. what's your code around these lines ? You must have a simple php syntax error. Didier. Sorry for the late reply but I have not been on a PC that I could chk my mail from in a week or so... anyway.. he is a snippit around that line.. funny thing is that file only has 557 lines.. <?php include(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> ? ?</table></td> ?</tr> </table> <!-- body_eof //--> <!-- footer //--> <?php include(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> **EDIT** BTW I did chk for white space at the bottom of the file... nada..
  15. I have ran into a problem in create_account.php where I get the error Parse error: parse error, unexpected $ in /home/dragon26/public_html/shop/create_account.php on line 558 This is the only contrib I have installed that involves this file... Can someone please help me to understand the issue here? :blink:
×