Jump to content
MakeWebGames

Recommended Posts

Posted

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 ;]

2eqfh46.png

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.

  • 2 weeks later...
Posted

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?

Posted

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']

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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