illegalife Posted January 29, 2011 Posted January 29, 2011 Okay so my PHP knowledge is not good enough to do this but It's good enough to know that it cant be too hard ;] Okay so think of the item names as Donator Packs. When you click "Kup Wszystko" it takes you to an actual paypal page. All I need is the list of items and their quantity to be sent to my e-mail along with the paid receipt from the client. So instead of "website.com|DP|1|userid" I would have a whole list of what they bought. I also can't figure out how to delete the items from inventory once purchesed on paypal... Will pay for this waiting to hear your offers. Quote
bineye Posted February 9, 2011 Posted February 9, 2011 I don't fully understand what you need. Is it: *the player purchases more than one item at once? *OR all of their past purchases? and also, what do you mean delete from inventory. What is put in inventory that they haven't bought? Quote
rulerofzu Posted February 9, 2011 Posted February 9, 2011 You will need to adjust the donator page For single item then its easier. For example: Do a mysql query selecting the item table which is to be purchased grab the result $db->fetch_row.... $r['itmname'] <--- depending on your query for pulling the item details from the database Change your hidden field for the item_name being sent to paypal for example this should work but not tested... <input type="hidden" name="item_name" value="'.$domain.'|'.$r['itmname'].'|1|'.$userid.'"> If your doing more than one item then you will need to do do a for each running through the items ordered and then use the output of that instead of the $r['itmname'] 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.