销售商品和跟踪库存的最简单方法

发布于 2024-07-21 12:34:12 字数 317 浏览 4 评论 0原文

在我的网站上,我出售独特的商品。 我对其进行了编程,以便在销售页面上,用户可以选择任意数量的这些商品,并计算成本。 关键是这些东西我都只有一件。 因此,我需要购物车系统不允许付款,除非可用。

我一直在寻找一种好的快速/简单/便宜的解决方案,但找不到。 我不指望这个网站能赚很多钱(交易也就几块钱),所以我不想需要ssl证书。

据我所知,不需要 ssl 证书的唯一方法是使用 paypal 或 google checkout。 然而,我认为没有办法使用这些服务并使贝宝的服务器运行脚本来检查网站上有多少可用服务。 有什么解决办法吗?

谢谢

on my website I sell unique items. I have programmed it so that on the selling page, users can select any amount of these items, and it calculates the cost. The key is that I only have 1 of each of these items. So I need the shopping cart system to not allow the payment to go through unless it is available.

I've been searching for a good quick/easy/cheap solution and can't find one. I don't expect this site to make a lot of money (the transactions are a few bucks), so I didn't want to need a ssl certificate.

The only way I know of not needing an ssl certificate would be to use paypal or google checkout. However, I do not think there is a way of using these services and making paypal's server run a script to check how many are available on the site. Any solution?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

宁愿没拥抱 2024-07-28 12:34:13

如果您能提供更多有关如何实施购物卡的信息,其他人会更容易提供帮助! 如果您正在使用任何电子商务解决方案,那么它应该已经存在于跟踪库存部分中。 但是,如果您已经手动实现了购物车,为什么不添加一点代码来先检查库存状态,然后再让客户结帐呢?

If you could provide a little more information about how you have implemented ur shopping card, it would have been more easier for other to assist! If you are using any ecommerce solution then it should be there already in the track inventory section. But Provided that you have implemented d shopping cart manually, why don't you add little bit of codes that checks the inventory status first before letting your customers check out?

來不及說愛妳 2024-07-28 12:34:13

如果您使用 PayPal 网站付款标准(使用购物车而不是“立即购买”按钮),那么您可以使用 IPN 或 PDT(请参阅 paypal 文档 此处)让 PayPal 回电告知您付款状态。

然后,工作流程将是在将商品添加到购物车时将状态设置为保留,然后等待 IPN/PDT 调用返回付款状态,并将商品标记为已售出。

您仍然需要检查并重置以提供任何已保留超过 2 小时的项目。 (您可以在向用户提供页面之前执行此操作,以便他们拥有最新的可用性,并且您不需要 cron 作业或长时间运行的进程)

If you use PayPal Website Payments Standard (using a cart rather than 'Buy Now' Buttons) then you could use IPN or PDT (see the paypal docs here) to get PayPal to call back to you with the status of the payment.

The work flow would then be to set status to reserved when the item is added to the cart, and then wait for the IPN/PDT call to come back with the payment status, and mark the item as sold.

You would still need to check and reset to available any item that had been reserved for longer than say 2 Hours. (You could do this before serving a page to a user so that they have the latest availability and you don't need a cron job or long running process)

只等公子 2024-07-28 12:34:12

我想得更多了,我认为问题在于,一旦用户进入paypal支付屏幕,我就无法控制。 我想我可以做一些事情,比如他们点击“立即购买”链接,一个 php 脚本将其更新为已售出,然后他们进入 paypal 屏幕,但随后他们可能不会继续购买......

I was thinking about it more, and I think the problem is that once the user gets to the paypal payment screen, I have no control. I guess I could do something like they click the buy it now link, a php script updates it to sold, then they go to the paypal screen, but then they might not continue the purchase...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文