将每位顾客的产品数量限制为1 [英] Limit product quantity to 1 per customer in magento

查看:78
本文介绍了将每位顾客的产品数量限制为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将客户每天购买的产品数量限制为1个.我们将要达成诸如交易和日间交易等目标客户.我们不希望有人大量购买.有人可以指导我这样做的一般方法是什么吗?谢谢.

I need to limit the quantity of a product purchased by a customer to 1 per day. We are going to have something like deal and day and targeting consumers. We do not want some one to buy high quantities. Could some one guide me as to what the general approach should be to do this? Thanks.

我注意到有一个表sales_flat_order_item包含一个订单的products_id,该表与sales_flat_order的连接应该为我提供客户下达的订单的product_id.如何直接访问此表数据并以magento方式执行联接操作?我需要创建一个新模块吗?或修改现有模块?

I noticed that there is a table sales_flat_order_item which contains products_id for an order, a join of this table with sales_flat_order should give me product_id for the orders placed by the customer. How do i access this table data directly and perform the join operation the magento way? Do i need to create a new module? or modify a existing module?

推荐答案

您可以为此创建一张优惠券.保留产品原价,然后将优惠券发放给目标客户.确保将其设置为仅适用于一项",并且只能使用一次.

You could just create a coupon/coupons for this. Leave the product at the original price and hand out a coupon to the targeted customers. Make sure that you set it to "only applies to 1 item" and can only be used once.

关于, 肯尼

这篇关于将每位顾客的产品数量限制为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆