everbeta Posted March 20, 2007 Posted March 20, 2007 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 Quote
NewtonTroy Posted April 17, 2007 Posted April 17, 2007 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 Quote
Recommended Posts
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.