Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can't show the logo and image in the order e-mail


Recommended Posts

Posted

This is my change before install PayPal_Shopping_Cart_IPN_v3.1.5

 

Use MIME HTML When Sending Emails "ture"

 

1. includes\classes\order.php

 

find

'name' => $products[$i]['name'],

Underneath place

'image' => $products[$i]['image'],

 

2. checkout_confirmation.php

 

find

<td class="main" colspan="2"><?php echo '<b>' . HEADING_PRODUCTS

Replace with

<td class="main" colspan="3"><?php echo '' . HEADING_PRODUCTS

 

find

<td class="main" colspan="3">

Replace with

<td class="main" colspan="4">

 

find

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

echo ' <tr>' . "\n" .

Underneath place

' <td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . $order->products[$i]['image'], $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' </td>' . "\n" .

 

3. checkout_process.php

find

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

Underneath place

$products_ordered .= tep_image(HTTP_SERVER.DIR_WS_HTTP_CATALOG.DIR_WS_IMAGES . $order->products[$i]['image'], $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT). "\n\n";

 

find

EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .

Replace with

EMAIL_TEXT_INVOICE_URL . ' ' . "<a href=\"".tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) ."\">".tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) ."</a>". "\n" .

 

find

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Above place

$email_order ="<html><body><img src=\"" . HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES. "oscommerce.gif\"><p><font face=\"Verdana, Arial, Helvetica\" size=\"2\">" . $email_order . "</body></html>";

 

Then the order e-mail can show your logo and the image of the product that the buyers purchased.

 

But after I install the IPN , the logo and image only can show if the buyers choose the payment way is by cash.

If paid by paypal, just the basic e-mail.

 

Can anyone help me ?

Thanks.

Posted

Sorry, replace the question .

 

This is my change before install PayPal_Shopping_Cart_IPN_v3.1.5

 

Use MIME HTML When Sending Emails "ture"

 

1. includes\classes\order.php

 

find

 'name' => $products[$i]['name'],

Underneath place

'image' => $products[$i]['image'],

 

2. checkout_confirmation.php

 

2a find

<td class="main" colspan="2"><?php echo '<b>' . HEADING_PRODUCTS

Replace with

<td class="main" colspan="3"><?php echo '' . HEADING_PRODUCTS

 

2b find

<td class="main" colspan="3">

Replace with

<td class="main" colspan="4">

 

2c find

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { 
echo '		  <tr>' . "\n" .

Underneath place

			<td class="main"  valign="top">' . tep_image(DIR_WS_IMAGES . $order->products[$i]['image'], $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' </td>' . "\n" .

 

3. checkout_process.php

find

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

Underneath place

$products_ordered .= tep_image(HTTP_SERVER.DIR_WS_HTTP_CATALOG.DIR_WS_IMAGES . $order->products[$i]['image'], $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT). "\n\n";

 

3a. find

EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .

Replace with

EMAIL_TEXT_INVOICE_URL . ' ' . "<a href=\"".tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) ."\">".tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) ."</a>". "\n" .

 

3c. find

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Above place

$email_order ="<html><body><img src=\"" . HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES. "oscommerce.gif\"><p><font face=\"Verdana, Arial, Helvetica\" size=\"2\">" . $email_order . "</body></html>";

 

Then the order e-mail can show your logo and the image of the product that the buyers purchased.

 

But after I install the IPN , the logo and image only can show if the buyers choose the payment way is by cash.

If paid by paypal, just the basic e-mail.

 

Can anyone help me ?

Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...