Jump to content

alsmith

Members
  • Content count

    143
  • Joined

  • Last visited

Posts posted by alsmith


  1. I added a link, (it is not the cleanest code, but it works) to allow me to update the invoices using this contribution.

     

    Edit the orders.php file.

    find:

    ]

    $contents[] = array('align' => 'center', 'text' => '<a href="javascript:popupWindo
    
    w('' .  (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_INVOICE) . '?' . (tep_get_a
    
    ll_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '')">' . te
    
    p_image_button('button_invoice.gif', IMAGE_ORDERs_INVOICE) . '</a><a href="javascr
    
    ipt:popupWindow('' .  (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_PACKINGSLIP)
    
    . '?' . (tep_get_all_get_params(array('oID')) . 'oID=' . $oInfo->orders_id) . '')
    
    ">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERs_PACKINGSLIP) . '</a>
    
    ');

     

    I use this: Just creates the link.

    $contents[] = array('align' => 'center', 'text' => '<a href="javascript:po
    
    pupWindow('' .  (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_INVOICE) . '?' . (t
    
    ep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '')
    
    ">' . tep_image_button('button_invoice.gif', IMAGE_ORDERs_INVOICE) . '</a><a href=
    
    "javascript:popupWindow('' .  (HTTP_SERVER . DIR_WS_ADMIN . FILENAME_ORDERS_PACKI
    
    NGSLIP) . '?' . (tep_get_all_get_params(array('oID')) . 'oID=' . $oInfo->orders_id
    
    ) . '')">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERs_PACKINGSLIP)
    
    . '</a>' .
    
    '<br><a href="edit_orders.php?oID=' . $oInfo->orders_id  . '">Edit the Invoice</a>
    
    ');

     

    I took the '); at the end of the line and inserted

    ' . '<br><a href="edit_orders.php?oID=' . $oInfo->orders_id . '">Edit the Invoice</a>

     

    This created the link Edit the Invoice just below the buttons.


  2. If you are talking about the email you recieve when you send newsletters.

     

    edit the newsletters.php file in catalog/admin/includes/modules/newsletters/

     

    around line 65. look for $mimemessage->send.

     

    I use

    $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['cus
    
           tomers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this
    
           ->title, "MIME-Version: 1.0n" .  "Content-type: text/html; charset=iso-88
    
           59-1");

     

    to make mine send out in HTML format.

     

    I tried everything to change the $mimemessage - new (line 62) to use the MIME-Version: 1.0 n portion of my fix, but no luck.


  3. I have been working on a PayPal Subscription module.

     

    I have it working but am having problems when I turn the PayPal module back on.

     

    The selection is now available in the admin section and is also available on the checkout.

     

    Once I get to the confirmation I notice that the Payment Method is PayPal and not my PayPal Subscriptions.

     

    Any clues here.

     

    -Al


  4. Open the checkout_paypalipn.php, find the line with

    tep_redirect("https://www.paypal.com/cgi-bin/webscr?

    around line 281.

     

    Here is what I did until I can work out the

    p3=1&t3=Y&src=1&sra=1&

     

    change

    change cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick&

    to

    subscriptions/p3=1&t3=Y&src=1&sra=1&

     

    Now if someone would like to help with that part.

     

    -Al

×