Jump to content

E-Commerce Solution


Skor

Recommended Posts

I just this week launched a site to sell my wife's fused glass art. It's got a MySQL back end to drive the images and descriptions. The next logical step is to add ecommerce. Each item is one-off so what I really need is some sort of inventory control. What I do now is have a single character status field that would need to be changed when an item is sold.

Question: Since I already have a backend database, am I better doing the Paypal IPN integration or using one of the script packages offered by my provider -- Cube Cart, OS Commerce or Zen Cart?

If I use one of the scripts above, how does that affect my current database which houses the inventory?

Are they mutually exclusive?

If I use IPN all I need the program I create to do, is change the status to "S" once a sale has been completed. How hard is IPN to setup?

Thanks


--------------------------------------------------------------------------------
Skor
Link to comment
Share on other sites

once you've got the basics down, and the basic scripts to handle IPN, it's really really not hard at all. I spend hours sussing it out, yet for the code I was left with left me thinking "they should have just told me that in the first place!!!"

One of my old posts here was about paypal and IPN, and included the scripts i used - modified a bit from the paypal developer site. Unfortunately I cannot find it (maybe an admin can help here? it was quite a while back). If not, i'll try dig up the stuff. There's one page in particular on the paypal dev site that literally has all the info you need in one summary. Again, if I manage to dig up the link, i'll pass it on.
Link to comment
Share on other sites

this should help you, as it's where i picked up the code i based mine on originally:
http://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/ipn-codesamples-pop-outside

this would code in the return file (ie, the one you tell paypal to return back to once a customer has paid) and is basically responsible for posting back the info to paypal to make sure all is in check. there are a few variables you need to make sure are in your <form> code. i cant remember the ins and outs, but the following is very similar to what i use:

[code]
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_xclick" />
  <input type="hidden" name="business" value="paypayemail@whatever.com" />
  <input type="hidden" name="item_name" value="item description goes here" />
  <input type="hidden" name="currency_code" value="GBP" />
  <input type="hidden" name="amount" value="10.00" />
  <input type="hidden" name="no_shipping" value="1" />
  <input type="hidden" name="return" value="http://www.mysite.com/paid.php" />
  <input type="hidden" name="custom" value="user id or anything can go here - anything you like" />
  <input type="hidden" name="rm" value="2" />

  <input type="image" src="/images/paypal/x-click-but5.gif" name="submit" alt="" />
</form>
[/code]

hope that helps
cheers
Mark
Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.