Below is my draft of the installation file
*********************************************
All Credit goes to Chritian at Hockrockhosting.com
and to
PiLLaO/reflex-ocasion
*********************************************
As always backup your database and files
*********************************************
This add on is intending to provide users of v2.31 and paypal standard with a more complete description of any sales which have taken place..
At present v2.3.1 only passes to PayPal standard, the details of who has been paid, the total goods quantity, shipping and total price.
I can not gaurantee that this will show show any more than 3 lines on your primary e-mail addess, as this is eactly what it shows my Just Host e-mail account, however I have opted for a second e-mail to be directed to our Microsoft Live e-mail account which shows full details of the order.
So just try it and see if works for you
As always backup your database and files:
************************************************************************
Instructions to manually alfter yor files
************************************************************************
There are no files to upload, just modifiications of 2 files, I suggest you make a copy of both files by adding "bak" just before the .php of each of these so that at least you original files are retained.
*************************************************************************
Files to alter
catalog/includes/modules/payment/paypal_standard.php
catalog/checkout_confirmation.php
*************************************************************************
So here are the alterations to make
1- Open catalog/includes/modules/payment/paypal_standard.php
Find:
-----
'item_name' => STORE_NAME,
Replace with this:
------------------
'item_name' => $_SESSION['FixOrder'],
2- Open catalog/checkout_confirmation.php
(2A)
Find:
-----
require('includes/application_top.php');
Add after:
----------
$_SESSION['FixOrder'] = "";
(2B)
Find: (it should be in standard v2.3.1. install around line 159)
-----
<?php
} else {
?>
<tr>
<td class="main" colspan="3"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
</tr>
<?php
}
Add after:
----------
$_SESSION['FixOrder'] = $_SESSION['FixOrder'] . $order->products[$i]['name'] . " x " . $order->products[$i]['qty'] . " ";
(2C)
Find:
-----
if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
}
}
Replace with this:
------------------
if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
$_SESSION['FixOrder'] = $_SESSION['FixOrder'] . "(". $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] .")";
}
}
$_SESSION['FixOrder'] = $_SESSION['FixOrder'] ." | ";
************************************************************************
That's all
************************************************************************
Thanks ken
Edited by kenkja, 08 July 2012 - 07:53 PM.









