Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product name/number in paypal payment notification email


Recommended Posts

Posted

i am using the default paypal payment modul coming with OSC, has not made any chance so far. basically it works, buyer can pay and i can receive payment, but the problem is that the payment notification emails sent to me does not include the product name, it only includes the site name, therefore, i will not know what product the buyer paid for. can anyone help me on how to change/make the "Item/Product Name" filed work?

 

example email information:

 

 

Total Amount: $22.02 USD

Currency: U.S. Dollars

Transaction ID: 6YR61252T1594782W

Quantity: 1

Item/Product Name: Five Star [this is the filed i have problem, it does not show the product name, how do make that??]

Buyer: someone

Message: hello

  • 4 weeks later...
Posted
please anyone help? thanks

 

try this:

 

includes/modules/payment/paypal.php

 

in function process_button(), just before $process_button_string = .....

 

add:

$xx = '';

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

$xx .= $order->products[$i]['qty'] . 'x' . ($order->products[$i]['model']) . ', ';

}

$xx .= ' ship via ' . $order->info['shipping_method'];

 

this builds a string with quantity and products, followed by the shipping method/

 

Then in the $process_button_string = .... for the 'item_name' field set it to $xx

 

feel free to use more meaningful variable names! :-) And remember BACKUP BACKUP BACKUP before doing this..

 

Troy

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...