Drupal 和 Ubercart - 添加客户可以在线支付的订单? 无需客户手动将其放入购物车即可对客户订单进行计费?

发布于 2024-07-25 20:36:45 字数 360 浏览 4 评论 0原文

我正在配置一个租赁网站来使用 Drupal 和 Ubercart 管理房地产。

该网站需要接受租金付款,此外,还需要允许管理员向某些人添加额外的账单,用于费用和某些其他类型的事情。 例如,如果他们在墙上打了一个大洞,并且必须付费,或者类似的事情。

问题是,订单创建似乎不允许我将该商品添加到他们的购物车,或者给他们任何选项来查看待处理余额并对其进行付款。

我错过了什么吗? 有什么方法可以向某人开账单并让他们以与结账相同的方式支付账单吗?

我可以看到这种功能的其他用途,例如建立一个网站来销售服务(其价格不固定),以及能够向客户开具发票,然后让他们通过该网站结帐。

谢谢! 我真的需要一些帮助!

I am configuring a rental website to manage real estate property using Drupal and Ubercart.

This site will need to accept rental payments, and IN ADDITION, will need to allow the admin to add extra billing to certain people, for fees, and certain other kinds of things. If they for example, put a huge hole in a wall, and have to pay, or something like that.

The problem is that order creation does not seem to allow me to add that item to their cart, or give them any option to view the pending balance and make a payment on it.

Am I missing something? Is there any way to bill someone and let them pay that bill in the same way they check out?

I could see additional uses for this kind of functionality, in setting up a site to sell services, the price of which is not fixed, and being able to bill customers with an invoice and then let them checkout through the site.

THANKS! I really need some help on this one!

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

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

发布评论

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

评论(5

岛徒 2024-08-01 20:36:46

对于 hack uc_cart_checkout 您需要:

  1. 购物车中有 1 个或多个商品,
  2. $_SESSION['cart_order'] 中传递管理订单的 ID,
  3. 订单必须具有状态 ' in_checkout'
  4. 订单必须在过去 30 分钟内修改
  5. $_SESSION['uc_cart_order_rebuild'] 必须为空

为了防止订单被修改,我将客户锁定在结账页面。 为此,当我填写购物车订单时,我将 $_SESSION['uc_pay_admin_order_cart_loaded'] 设置为 true,如果 arg 2 不是“结账”,则取消设置并清空购物车。

对于开发来说,将 uc_cart_links_add_show 激活 uc_cart_link 调试为 true 非常有用。

For hack uc_cart_checkout you need:

  1. have 1 or more item in the cart
  2. pass the id of the admin order in $_SESSION['cart_order']
  3. the order must have the status 'in_checkout'
  4. the order must have modified in last 30min
  5. the $_SESSION['uc_cart_order_rebuild'] must be empty

To prevent the modification of the order, i lock the customer in the checkout page. For that i set $_SESSION['uc_pay_admin_order_cart_loaded'] to true when i fill the cart order and unset this and empty the cart if the arg 2 is not 'checkout'.

For development, it's useful to activate the uc_cart_link debug with uc_cart_links_add_show to true.

痴骨ら 2024-08-01 20:36:45

我在“创建订单”方面遇到了同样的问题。 我正在考虑的一种可能的解决方法是专门为该用户创建一款产品。 该产品可能需要成为分配给用户的新内容类型(通过用户引用或通过设置节点作者)。

这种特殊产品可以通过块提供给用户。

I'm running into the same problem with 'create order'. One possible workaround i'm looking at is to create a product especially for this user. This product will probably need to be a new content type that'll be assigned to the user (either by user reference or by setting the node author).

This special product can be made available to the user via a block.

故人的歌 2024-08-01 20:36:45

你知道,实际上我们正在研究同一件事。 我的想法是这样的:您正在做的事情不受支持

原因如下:您(和我)想要做的事情有一个不同的范式,超出了当前 Drupal 模块在支付方面处理的范围。 电子商务和 Ubercart 处理交易付款。 您为交付或下载的特定项目或服务付费。

租金不是以交易为基础,而是以账户为基础。 据我所知,Drupal 没有任何模块来处理基于帐户的计费所附带的不同工作流程。

You know, we are looking at the same thing, actually. Here is what I think: what you are doing is unsupported.

Here's why: there is a different paradigm for what you (and I) are wanting to do that goes beyond what current Drupal modules handle in regards to making payments. e-Commerce and Ubercart handle payments for transactions. You are paying them for a specific item or service that is delivered or downloaded.

Rent is done not on a transactional basis, but on an account basis. And to my knowledge, Drupal doesn't have any module that handles the different workflow that comes with account-based billing.

青衫负雪 2024-08-01 20:36:45

我想做同样的事情——创建客户结账订单。 还没有找到最好的方法 - 但有几件事可能会对你的情况有所帮助 -

  1. 购物车链接。 购物车链接模块允许您创建一个链接,将商品添加到购物车,并包含属性。 您可以创建一个链接供客户关注,他们最终会得到一个购物车,其中包含链接中设置的每个产品和属性,然后继续进行正常结帐。

但是,我陷入困境,因为我想添加文本属性,并且还没有弄清楚如何为客户获取自定义文本 - 您可以选择属性的选项,但不能选择任意文本。

  1. uc_recurring 可能会满足您持续计费的需求。 它将按照指定的时间间隔创建包含单个重复产品的新订单。 这绝对是可以做到的——尽管只支持少数支付网关。

  2. 创建订单 - 您可以通过管理后端执行此操作,并以管理员身份接收付款。 客户也可以查看订单 - 但我没有找到如何让他们继续结帐(我希望​​他们查看并接受条款...)

干杯,
约翰

I'm looking to do the same thing -- create an order for customer checkout. Haven't figured out the best approach to this--but there are several things that might help your situation--

  1. Cart Links. The Cart Links module allows you to create a link that adds items to a cart, complete with attributes. You can create a link for your customer to follow, and they'll end up with a cart with each product and attribute as set in your link, and then proceed through a normal checkout.

However, I'm stuck because I want to add a text attribute, and haven't figured out how to get custom text in for a customer--you can select an option for an attribute, but not arbitrary text.

  1. uc_recurring probably takes care of your need for ongoing billing. It will create a new order with a single recurring product at a specified interval. That can definitely be done--though there's only support for a handful of payment gateways.

  2. Create an order -- you can do this through the admin back end, and receive payment as an admin. Customers can view the order, too--but I'm not finding how I can have them proceed through the checkout (where I want them to view and accept terms...)

Cheers,
John

后知后觉 2024-08-01 20:36:45

我认为解决方案是使用 UC Invoice Pay 模块。
https://drupal.org/project/uc_invoicepay

不幸的是,安装该模块后,我没有任何反应,所以我开了一张票(https://drupal.org/node/2104367
如果该模块有效,那么它应该完全符合您的要求。

I think a solution would be to use the UC Invoice Pay module.
https://drupal.org/project/uc_invoicepay

unfortunatly, upon installing that module, nothing happens for me, so I opened a ticket (https://drupal.org/node/2104367)
If that module works, then it should do exactly what you're looking for.

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