Quote Originally Posted by xtreme
Hello,

When processing orders via Paypal I recieve payment. The customer gets 2 emails 1 from paypal, 1 from my store confirming the order, and in my admin area shows the paypal order The only problem is when the customer sends payment through paypal my invoices are a little messed up.

Item Amount:
$0.22 USD
Shipping:
$0.00 USD
Handling:
$0.00 USD
Quantity:
1
Item Title:
Xtreme Surf and Sport
Item Number:
1

Both the Item number and the Item title are incorrect. The Item title shows up as my store name and not the item(s) purchased. And the item number does not correspond with the item title which is also wrong. How do I get my paypal invoices to display what has been purchased?
Perhaps this will shed some light on things. I see this question come up several times concerning item numbers and item title for PayPal payments. When multiple items are purchased, you can only pass the amount of the purchase and shipping if required. PayPal will figure the total. So multiple item amounts can not be passed to PayPal's IPN.

There is a somewhat alternative to this. Here is what I've done to make customer's happy. Remember to backup your files before making changes!

In the /includes/modules/payment/paypal.php file, around line 186, find the following lines:

zen_draw_hidden_field('item_name', 'STORE_NAME') .
zen_draw_hidden_field('item_number', '1') .

Then just change the first line to display your Store Name plus the word puchase on it and comment out the item_number line. See below example.

zen_draw_hidden_field('item_name', 'Xtreme Surf and Sport Purchase') .
// zen_draw_hidden_field('item_number', '1') .

What this does is show on PayPal for item, "Xtreme Surf and Sport Purchase" and also does not show any item number so the customer is not confused.

To prepare the customer for this I have put a "Important Note" at the bottom of my /includes/templates/template_default/templates/tpl_checkout_confirmation_default.php file. Note that if you have a custom template that this file may be in a different folder.

At the bottom of tpl_checkout_confirmation_default.php, just put the following and you can change the wording to your liking.

<br><br><br>
<div class="alert"><b>IMPORTANT NOTE: Upon confirming order, you will be taken to
PayPal for your secure payment. PayPal will list this as a payment to us for a
Quantity of 1 and will give you a total purchase price. Once you have finished your completed payment, please return to our site to complete the order. Once this has been done, you will be sent a detailed receipt of your order. Remember that unless you click "Return to Complete Order" after paying, your order may not be shipped.</b></div><br><br>

Remember this is at the very end of the file tpl_checkout_confirmation_default.php after everything else in the code. I made it RED with the alert class from the css file but you can make it any color you want. Red seems to get attention though.

Hope that helps a lot of people because this is a very easy workaround to the PayPal Item display problem.