Saffron07 Posted September 30, 2008 Share Posted September 30, 2008 Hi I have a question about after an order is completed on my site with the shopping cart.The transaction goes through fine to Paypal but I need to know how to find out what item the customer purchased and the amount of items purchased off the site.I have only six items for sale on the site but they all are different items.I need to specify the items in the transaction details. Paypal answered; This can be easily done by making sure your shopping cart is passing a value for "item_name" which matches the name of the item being purchased. I did a test on your site, and can see that the cart is sending the following line of code through for all orders: <input type="hidden" name="item_name" value="The Canadian Wood Floor Store"> You will need to adjust the code of your shopping cart (or adjust the item name as it is defined within your administration console) to send the proper values for "item_name". You may need to pose your question on the osCommerce forums if you are unsure of how to do this, as we do not have access to their internal code (it being a third-party cart). Does anyone know how to adjust the code? Thank you Link to comment Share on other sites More sharing options...
Saffron07 Posted September 30, 2008 Author Share Posted September 30, 2008 Hi I have a question about after an order is completed on my site with the shopping cart.The transaction goes through fine to Paypal but I need to know how to find out what item the customer purchased and the amount of items purchased off the site.I have only six items for sale on the site but they all are different items.I need to specify the items in the transaction details. Paypal answered; This can be easily done by making sure your shopping cart is passing a value for "item_name" which matches the name of the item being purchased. I did a test on your site, and can see that the cart is sending the following line of code through for all orders: <input type="hidden" name="item_name" value="The Canadian Wood Floor Store"> You will need to adjust the code of your shopping cart (or adjust the item name as it is defined within your administration console) to send the proper values for "item_name", and description. You may need to pose your question on the osCommerce forums if you are unsure of how to do this, as we do not have access to their internal code (it being a third-party cart). I think this is in the checkout_confirmation.php file. I am putting some of the code here to see if someone can help edit the code so Paypal gets all information on the order placed. // load the selected payment module require(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment($payment); require(DIR_WS_CLASSES . 'order.php'); $order = new order; $payment_modules->update_status(); if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); } if (is_array($payment_modules->modules)) { $payment_modules->pre_confirmation_check(); } Thanks to anyone who can help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.